Skip to content

Commit

Permalink
TST Fix requirements install for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Dec 16, 2020
1 parent ecb13de commit 3cd3ed4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Expand Up @@ -28,6 +28,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Test with pytest
run: |
pytest
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
six
redis
8 changes: 6 additions & 2 deletions setup.py
Expand Up @@ -35,6 +35,9 @@
exec(compile(open('jug/jug_version.py').read(), 'jug/jug_version.py', 'exec'))
long_description = open('README.rst').read()

install_requires = open('requirements.txt').read()
tests_require = open('test-requirements.txt').read()

classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand All @@ -56,7 +59,7 @@
]

setuptools.setup(name = 'Jug',
version = __version__,
version = __version__, # noqa: F821
description = 'A Task Based Parallelization Framework',
long_description = long_description,
author = 'Luis Pedro Coelho',
Expand All @@ -72,7 +75,8 @@
],
},
scripts = ['bin/jug-execute'],
install_requires=['six', 'redis'],
install_requires = install_requires,
tests_require = tests_require,
)


2 changes: 2 additions & 0 deletions test-requirements.txt
@@ -0,0 +1,2 @@
numpy
pyyaml

0 comments on commit 3cd3ed4

Please sign in to comment.