Skip to content

Commit

Permalink
Fix package dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Apr 21, 2018
1 parent 4b446cf commit 2918fe3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def need_pytest():
def get_release_command_class():
try:
from releasecmd import ReleaseCommand
except ModuleNotFoundError:
except ImportError:
return {}

return {"release": ReleaseCommand}


with io.open(os.path.join(MODULE_NAME, "__version__.py"), encoding=ENCODING) as f:
with open(os.path.join(MODULE_NAME, "__version__.py")) as f:
exec(f.read(), pkg_info)

with io.open("README.rst", encoding=ENCODING) as f:
Expand All @@ -53,7 +53,7 @@ def get_release_command_class():
docs_requires = [line.strip() for line in f if line.strip()]


SETUPTOOLS_REQUIRES = ["setuptools>=20.2.2"]
SETUPTOOLS_REQUIRES = ["setuptools>=38.3.0"]
PYTEST_RUNNER_REQUIRES = ["pytest-runner"] if need_pytest() else []
cmdclass = {}
cmdclass.update(get_release_command_class())
Expand Down Expand Up @@ -82,6 +82,7 @@ def get_release_command_class():
setup_requires=SETUPTOOLS_REQUIRES + PYTEST_RUNNER_REQUIRES,
tests_require=tests_requires,
extras_require={
"build": "wheel",
"docs": docs_requires,
"release": "releasecmd>=0.0.3",
"test": tests_requires,
Expand Down

0 comments on commit 2918fe3

Please sign in to comment.