Skip to content

Commit 0fc84ad

Browse files
theorashidtwiecki
authored andcommitted
undoing my hard work
1 parent 371e944 commit 0fc84ad

File tree

2 files changed

+3
-60
lines changed

2 files changed

+3
-60
lines changed

.github/workflows/nightly.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
AUTHOR_EMAIL = "[email protected]"
2727
URL = "http://github.com/pymc-devs/pymc"
2828
LICENSE = "Apache License, Version 2.0"
29-
NIGHLTY = "BUILD_PYMC_NIGHTLY" in os.environ
3029

3130
classifiers = [
3231
"Development Status :: 5 - Production/Stable",
@@ -56,15 +55,7 @@
5655
test_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

8572
if __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,

0 commit comments

Comments
 (0)