File tree Expand file tree Collapse file tree 2 files changed +3
-60
lines changed Expand file tree Collapse file tree 2 files changed +3
-60
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626AUTHOR_EMAIL = "[email protected] " 2727URL = "http://github.com/pymc-devs/pymc"
2828LICENSE = "Apache License, Version 2.0"
29- NIGHLTY = "BUILD_PYMC_NIGHTLY" in os .environ
3029
3130classifiers = [
3231 "Development Status :: 5 - Production/Stable" ,
5655test_reqs = ["pytest" , "pytest-cov" ]
5756
5857
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 ():
6859 version_file = join ("pymc" , "__init__.py" )
6960 lines = open (version_file ).readlines ()
7061 version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
@@ -73,19 +64,15 @@ def get_version(nightly_build=False):
7364 if mo :
7465 version = mo .group (1 )
7566
76- if nightly_build :
77- suffix = datetime .now (timezone .utc ).strftime (r".dev%Y%m%d" )
78- version = f"{ version } { suffix } "
79-
8067 return version
8168
8269 raise RuntimeError (f"Unable to find version in { version_file } ." )
8370
8471
8572if __name__ == "__main__" :
8673 setup (
87- name = get_distname ( NIGHLTY ) ,
88- version = get_version (NIGHLTY ),
74+ name = "pymc" ,
75+ version = get_version (),
8976 maintainer = AUTHOR ,
9077 maintainer_email = AUTHOR_EMAIL ,
9178 description = DESCRIPTION ,
You can’t perform that action at this time.
0 commit comments