Skip to content

Commit 1fe84c3

Browse files
committed
2 parents ccd4b37 + 04b89a1 commit 1fe84c3

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

plasma/version.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import re
2+
3+
__version__ = "0.1.0"
4+
5+
version = __version__
6+
7+
version_info = tuple(re.split(r"[-\.]", __version__))
8+
9+
specification = ".".join(version_info[:2])
10+
11+
def compatible(serializedVersion):
12+
selfMajor, selfMinor = map(int, version_info[:2])
13+
otherMajor, otherMinor = map(int, re.split(r"[-\.]", serializedVersion)[:2])
14+
if selfMajor >= otherMajor:
15+
return True
16+
elif selfMinor >= otherMinor:
17+
return True
18+
else:
19+
return False

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import sys
22
from setuptools import setup, find_packages
33

4-
#import plasma.version
4+
import plasma.version
55

66
setup(name = "plasma",
7-
version = "0.1.0",
7+
version = plasma.version.__version__,
88
packages = find_packages(),
99
#scripts = [""],
1010
description = "PPPL deep learning package.",
1111
long_description = """Add description here""",
12-
author = "Julian Kates-Harbeck, PPPL authors",
13-
#author_email = "",
12+
author = "Julian Kates-Harbeck, Alexey Svyatkovskiy",
13+
author_email = "jkatesharbeck@g.harvard.edu",
1414
maintainer = "Alexey Svyatkovskiy",
1515
maintainer_email = "alexeys@princeton.edu",
1616
#url = "http://",

0 commit comments

Comments
 (0)