Merge pull request #245 from pubs/fix/broken-tests-on-macos-jenkins

Add pytest to test requirements as none optional.
main
Olivier Mangin 4 years ago committed by GitHub
commit d3b6654fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:
@ -23,25 +23,27 @@ matrix:
# Mock tests (with mock API) # Mock tests (with mock API)
- os: linux - os: linux
language: python language: python
python: 3.5 python: 3.6
env: env:
- TO_TEST=TEST_MOCK - TO_TEST=TEST_MOCK
- os: linux - os: linux
language: python language: python
python: 3.6 dist: xenial
python: 3.7
sudo: true
env: env:
- TO_TEST=TEST_MOCK - TO_TEST=TEST_MOCK
- os: linux - os: linux
language: python language: python
dist: xenial dist: xenial
python: 3.7 python: 3.8
sudo: true sudo: true
env: env:
- TO_TEST=TEST_MOCK - TO_TEST=TEST_MOCK
- os: linux - os: linux
language: python language: python
dist: xenial dist: xenial
python: 3.8 python: 3.9
sudo: true sudo: true
env: env:
- TO_TEST=TEST_MOCK - TO_TEST=TEST_MOCK
@ -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

@ -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…
Cancel
Save