-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
128d887
commit 3527c65
Showing
9 changed files
with
59 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
name = "orbit" | ||
__version__ = "1.1.4.2" | ||
from pathlib import Path | ||
|
||
about = {} | ||
here = Path(__file__).parent.resolve() | ||
|
||
with open(here / "__version__.py", "r") as f: | ||
exec(f.read(), about) | ||
__version__ = about["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.1.4.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ statsmodels>=0.11.1 | |
arviz | ||
cmdstanpy>=1.0.4 | ||
setuptools>=42 | ||
importlib_resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,17 +41,17 @@ def requirements(filename="requirements.txt"): | |
return f.readlines() | ||
|
||
|
||
class PyTestCommand(test_command): | ||
def finalize_options(self): | ||
test_command.finalize_options(self) | ||
self.test_args = ["-v"] # test args | ||
self.test_suite = True | ||
# class PyTestCommand(test_command): | ||
# def finalize_options(self): | ||
# test_command.finalize_options(self) | ||
# self.test_args = ["-v"] # test args | ||
# self.test_suite = True | ||
|
||
def run_tests(self): | ||
import pytest | ||
# def run_tests(self): | ||
# import pytest | ||
|
||
errcode = pytest.main(self.test_args) | ||
sys.exit(errcode) | ||
# errcode = pytest.main(self.test_args) | ||
# sys.exit(errcode) | ||
|
||
|
||
def build_stan_model(target_dir): | ||
|
@@ -148,8 +148,7 @@ def run(self): | |
target_dir = os.path.join(self.build_lib, MODEL_TARGET_DIR) | ||
self.mkpath(target_dir) | ||
|
||
print("Not a dry run, run with build, target_dir:") | ||
print("building with target_dir: {}".format(target_dir)) | ||
print("Not a dry run, run with build, target_dir: {}".format(target_dir)) | ||
|
||
build_stan_model(target_dir) | ||
|
||
|
@@ -182,8 +181,7 @@ def run(self): | |
target_dir = os.path.join(self.project_dir, MODEL_TARGET_DIR) | ||
self.mkpath(target_dir) | ||
|
||
print("Not a dry run, run with editable, target_dir:") | ||
print("building with target_dir: {}".format(target_dir)) | ||
print("Not a dry run, run with editable, target_dir: {}".format(target_dir)) | ||
|
||
build_stan_model(target_dir) | ||
|
||
|
@@ -200,7 +198,16 @@ def get_tag(self): | |
return "py3", "none", plat | ||
|
||
|
||
about = {} | ||
here = Path(__file__).parent.resolve() | ||
with open(here / "orbit" / "__version__.py", "r") as f: | ||
exec(f.read(), about) | ||
|
||
|
||
setup( | ||
version=about["__version__"], | ||
packages=find_packages(), | ||
name="orbit-ml", | ||
author="Edwin Ng, Zhishi Wang, Steve Yang, Yifeng Wu, Jing Pan", | ||
author_email="[email protected]", | ||
description=DESCRIPTION, | ||
|
@@ -211,23 +218,16 @@ def get_tag(self): | |
cmdclass={ | ||
"build_ext": BuildExtCommand, | ||
"build_py": BuildPyCommand, | ||
"editable_wheel": EditableWheel, | ||
"bdist_wheel": BDistWheelABINone, | ||
# "develop": DevelopCommand, | ||
"test": PyTestCommand, | ||
# "test": PyTestCommand, | ||
}, | ||
test_suite="orbit.tests", | ||
license="Apache License 2.0", | ||
long_description=read_long_description(), | ||
long_description_content_type="text/markdown", | ||
name="orbit-ml", | ||
packages=find_packages(), | ||
url="https://orbit-ml.readthedocs.io/en/stable/", | ||
# version=VERSION, # being maintained by source module | ||
ext_modules=[Extension("orbit.stan_compiled", [])], | ||
zip_safe=False, | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters