File tree 2 files changed +3
-60
lines changed
2 files changed +3
-60
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
AUTHOR_EMAIL = "[email protected] "
27
27
URL = "http://github.com/pymc-devs/pymc"
28
28
LICENSE = "Apache License, Version 2.0"
29
- NIGHLTY = "BUILD_PYMC_NIGHTLY" in os .environ
30
29
31
30
classifiers = [
32
31
"Development Status :: 5 - Production/Stable" ,
56
55
test_reqs = ["pytest" , "pytest-cov" ]
57
56
58
57
59
- def get_distname (nightly_build = False ):
60
- distname = "pymc"
61
- if nightly_build :
62
- distname = f"{ distname } -nightly"
63
-
64
- return distname
65
-
66
-
67
- def get_version (nightly_build = False ):
58
+ def get_version ():
68
59
version_file = join ("pymc" , "__init__.py" )
69
60
lines = open (version_file ).readlines ()
70
61
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
@@ -73,19 +64,15 @@ def get_version(nightly_build=False):
73
64
if mo :
74
65
version = mo .group (1 )
75
66
76
- if nightly_build :
77
- suffix = datetime .now (timezone .utc ).strftime (r".dev%Y%m%d" )
78
- version = f"{ version } { suffix } "
79
-
80
67
return version
81
68
82
69
raise RuntimeError (f"Unable to find version in { version_file } ." )
83
70
84
71
85
72
if __name__ == "__main__" :
86
73
setup (
87
- name = get_distname ( NIGHLTY ) ,
88
- version = get_version (NIGHLTY ),
74
+ name = "pymc" ,
75
+ version = get_version (),
89
76
maintainer = AUTHOR ,
90
77
maintainer_email = AUTHOR_EMAIL ,
91
78
description = DESCRIPTION ,
You can’t perform that action at this time.
0 commit comments