Merge pull request #245 from pubs/fix/broken-tests-on-macos-jenkins
Add pytest to test requirements as none optional.
This commit is contained in:
commit
d3b6654fd1
16
.travis.yml
16
.travis.yml
@ -5,7 +5,7 @@ matrix:
|
|||||||
# Full tests (with online API)
|
# Full tests (with online API)
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.7
|
python: 3.9
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: true
|
sudo: true
|
||||||
env:
|
env:
|
||||||
@ -21,11 +21,6 @@ matrix:
|
|||||||
- source env/bin/activate
|
- source env/bin/activate
|
||||||
|
|
||||||
# Mock tests (with mock API)
|
# Mock tests (with mock API)
|
||||||
- os: linux
|
|
||||||
language: python
|
|
||||||
python: 3.5
|
|
||||||
env:
|
|
||||||
- TO_TEST=TEST_MOCK
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.6
|
python: 3.6
|
||||||
@ -45,6 +40,13 @@ matrix:
|
|||||||
sudo: true
|
sudo: true
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST_MOCK
|
- TO_TEST=TEST_MOCK
|
||||||
|
- os: linux
|
||||||
|
language: python
|
||||||
|
dist: xenial
|
||||||
|
python: 3.9
|
||||||
|
sudo: true
|
||||||
|
env:
|
||||||
|
- TO_TEST=TEST_MOCK
|
||||||
|
|
||||||
|
|
||||||
# Install tests
|
# Install tests
|
||||||
@ -58,7 +60,7 @@ matrix:
|
|||||||
language: python
|
language: python
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: true
|
sudo: true
|
||||||
python: 3.8
|
python: 3.9
|
||||||
env:
|
env:
|
||||||
- TO_TEST=INSTALL
|
- TO_TEST=INSTALL
|
||||||
if: type = cron
|
if: type = cron
|
||||||
|
@ -24,4 +24,4 @@ certifi
|
|||||||
# (also remove in setup.py)
|
# (also remove in setup.py)
|
||||||
ddt==1.3.1
|
ddt==1.3.1
|
||||||
mock
|
mock
|
||||||
pytest # optional (python setup.py test works without it), but possible nonetheless
|
pytest
|
||||||
|
5
setup.py
5
setup.py
@ -45,23 +45,22 @@ setup(
|
|||||||
},
|
},
|
||||||
|
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|
||||||
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
|
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
|
||||||
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
|
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
|
||||||
extras_require={'autocompletion': ['argcomplete'],
|
extras_require={'autocompletion': ['argcomplete'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
python_requires='>=3.6',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
||||||
'Programming Language :: Python :: 2.7',
|
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'Intended Audience :: Science/Research',
|
'Intended Audience :: Science/Research',
|
||||||
],
|
],
|
||||||
|
|
||||||
test_suite='tests',
|
test_suite='tests',
|
||||||
tests_require=['pyfakefs>=3.4', 'mock', 'ddt==1.3.1', 'certifi'],
|
tests_require=['pyfakefs>=3.4', 'mock', 'ddt==1.3.1', 'certifi', 'pytest'],
|
||||||
|
|
||||||
# in order to avoid 'zipimport.ZipImportError: bad local file header'
|
# in order to avoid 'zipimport.ZipImportError: bad local file header'
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user