Skip to content

Commit

Permalink
make test time dependency resolved automatically from pkg/test_requir…
Browse files Browse the repository at this point in the history
…ements.txt
  • Loading branch information
ssato committed Mar 15, 2015
1 parent ce8e97f commit eea0eef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ class RpmCommand(SrpmCommand):
"Topic :: Utilities",
"License :: OSI Approved :: MIT License"]

TESTS_REQ = [l.rstrip() for l in open("pkg/test_requirements.txt").readlines()
if l and not l.startswith('#')]


setup(name=PACKAGE,
version=VERSION,
Expand All @@ -100,7 +103,7 @@ class RpmCommand(SrpmCommand):
license="MIT",
url="https://github.com/ssato/python-anyconfig",
classifiers=_CLASSIFIERS,
tests_require=['nose>=1.0', 'pep8', 'pylint', 'flake8'],
tests_require=TESTS_REQ,
packages=find_packages(),
include_package_data=True,
cmdclass={
Expand Down

0 comments on commit eea0eef

Please sign in to comment.