Skip to content

Commit

Permalink
Adding instructions on contribution. Making requirements automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Jul 24, 2016
1 parent b3e38d8 commit ea6f385
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Install via `pip`:

----------

Please feel free to fork the project and open pull-requests, or
raise an issue via Github if any bugs are encountered or
features requests thought up.

### Update History

Expand Down
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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},
)

0 comments on commit ea6f385

Please sign in to comment.