Skip to content

Commit

Permalink
tests: upgrade pytest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Sep 25, 2020
1 parent 5422038 commit 8bc3c5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
5 changes: 2 additions & 3 deletions pytest.ini
Expand Up @@ -7,7 +7,6 @@
# under the terms of the MIT License; see LICENSE file for more details.

[pytest]
pep8ignore = docs/conf.py ALL
addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_celery --cov-report=term-missing
testpaths = docs tests invenio_celery
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_celery --cov-report=term-missing
testpaths = tests invenio_celery
filterwarnings = ignore::pytest.PytestDeprecationWarning
3 changes: 0 additions & 3 deletions run-tests.sh
Expand Up @@ -7,9 +7,6 @@
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


pydocstyle invenio_celery tests && \
isort invenio_celery tests --check-only --diff && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test
18 changes: 9 additions & 9 deletions setup.py
Expand Up @@ -16,19 +16,19 @@
history = open('CHANGES.rst').read()

tests_require = [
'check-manifest>=0.25',
'coverage>=4.0',
'isort>=4.2.2',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=3.8.0,<5.0.0',
'pytest-invenio>=1.3.4',
# TODO: Remove all lines below with pytest-invenio v1.4.0:
"pytest-cov>=2.10.1",
"pytest-isort>=1.2.0",
"pytest-pycodestyle>=2.2.0",
"pytest-pydocstyle>=2.2.0",
"pytest>=6,<7",
]

extras_require = {
'docs': [
"Sphinx>=1.4.2",
"Sphinx>=3",
],
'tests': tests_require,
}
Expand All @@ -49,7 +49,7 @@
# property "date_done" as a datetime object which msgpack cannot
# serialize/deserialize - see https://github.com/celery/celery/pull/5606
'celery>=4.2.1,!=4.3,<5',
'invenio-base>=1.2.2',
'invenio-base>=1.2.3',
]

packages = find_packages()
Expand Down

0 comments on commit 8bc3c5b

Please sign in to comment.