Skip to content

Commit

Permalink
installation: upper pin on celery
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Sep 28, 2020
1 parent d6e9ed9 commit b7f4f7c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
4 changes: 1 addition & 3 deletions pytest.ini
Expand Up @@ -7,7 +7,5 @@
# 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
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_celery --cov-report=term-missing
testpaths = docs 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
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -19,3 +19,6 @@ universal = 1

[pydocstyle]
add_ignore = D401

[pycodestyle]
exclude = docs/conf.py
24 changes: 12 additions & 12 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 @@ -43,13 +43,13 @@

install_requires = [
'Flask-CeleryExt>=0.3.4',
'redis>=2.10.0',
'msgpack>=0.6.2',
# Celery 4.3 does not work with msgpack due to v4.3 introducing a
# 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',
'invenio-base>=1.2.2',
'celery>=4.2.1,!=4.3,<5',
'invenio-base>=1.2.3',
'msgpack>=0.6.2',
'redis>=2.10.0',
]

packages = find_packages()
Expand Down

0 comments on commit b7f4f7c

Please sign in to comment.