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)
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.7
|
||||
python: 3.9
|
||||
dist: xenial
|
||||
sudo: true
|
||||
env:
|
||||
@ -21,11 +21,6 @@ matrix:
|
||||
- source env/bin/activate
|
||||
|
||||
# Mock tests (with mock API)
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.5
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.6
|
||||
@ -45,6 +40,13 @@ matrix:
|
||||
sudo: true
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
- os: linux
|
||||
language: python
|
||||
dist: xenial
|
||||
python: 3.9
|
||||
sudo: true
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
|
||||
|
||||
# Install tests
|
||||
@ -58,7 +60,7 @@ matrix:
|
||||
language: python
|
||||
dist: xenial
|
||||
sudo: true
|
||||
python: 3.8
|
||||
python: 3.9
|
||||
env:
|
||||
- TO_TEST=INSTALL
|
||||
if: type = cron
|
||||
|
@ -24,4 +24,4 @@ certifi
|
||||
# (also remove in setup.py)
|
||||
ddt==1.3.1
|
||||
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,
|
||||
|
||||
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
|
||||
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
|
||||
extras_require={'autocompletion': ['argcomplete'],
|
||||
},
|
||||
|
||||
python_requires='>=3.6',
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: Science/Research',
|
||||
],
|
||||
|
||||
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'
|
||||
zip_safe=False,
|
||||
|
Loading…
x
Reference in New Issue
Block a user