-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding instructions on contribution. Making requirements automatic
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ | |
# Synchronize version from code. | ||
version = re.findall(r"__version__ = \"(.*?)\"", open("chainconsumer/chain.py").read())[0] | ||
|
||
|
||
if "test" in sys.argv: | ||
version = "0.0.0" | ||
|
||
|
||
# Using framework from emcee. Pattern credit to Daniel Foreman-Mackey | ||
class PyTest(test): | ||
user_options = [("pytest-args=", "a", "Arguments to pass to py.test")] | ||
|
@@ -29,24 +29,26 @@ def run_tests(self): | |
errno = pytest.main(self.pytest_args) | ||
sys.exit(errno) | ||
|
||
with open("requirements.txt") as f: | ||
requirements = f.read().splitlines() | ||
|
||
setup(name="ChainConsumer", | ||
version=version, | ||
description="ChainConsumer", | ||
description="Consume chains and produce plots and tables", | ||
long_description="Package documentation: http://samreay.github.io/ChainConsumer", | ||
classifiers=["Development Status :: 4 - Beta", | ||
classifiers=["Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"Intended Audience :: Science/Research"], | ||
"Intended Audience :: Science/Research" | ||
"Operating System :: OS Independent"], | ||
packages=["chainconsumer"], | ||
include_package_data=True, | ||
url="http://github.com/samreay/ChainConsumer", | ||
author="Samuel Hinton", | ||
author_email="[email protected]", | ||
requires=['numpy', 'scipy', 'matplotlib', 'statsmodels'], | ||
requires=requirements, | ||
tests_require=["pytest","pytest-cov"], | ||
cmdclass={"test": PyTest}, | ||
) |