Skip to content

Commit

Permalink
global: upgrade to pytest-invenio 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Oct 19, 2020
1 parent 0323f77 commit 701740b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
5 changes: 3 additions & 2 deletions pytest.ini
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# 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.

[pytest]
addopts = --pep8 --ignore=docs --cov=invenio_previewer --cov-report=term-missing
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_previewer --cov-report=term-missing
testpaths = docs tests invenio_previewer
15 changes: 7 additions & 8 deletions run-tests.sh
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# 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_previewer && \
isort -rc -c -df **/*.py && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test && \
sphinx-build -qnNW -b doctest docs docs/_build/doctest
python -m check_manifest --ignore ".travis-*" && \
python -m sphinx.cmd.build -qnNW docs docs/_build/html && \
python -m pytest
python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest
tests_exit_code=$?
exit "$tests_exit_code"
5 changes: 4 additions & 1 deletion setup.cfg
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# 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.
Expand Down Expand Up @@ -35,6 +35,9 @@ output-dir = invenio_previewer/translations/
[pydocstyle]
add_ignore = D401

[pycodestyle]
exclude = docs/conf.py

[update_catalog]
input-file = invenio_previewer/translations/messages.pot
output-dir = invenio_previewer/translations/
15 changes: 4 additions & 11 deletions setup.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# 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.
Expand All @@ -17,16 +17,10 @@
history = open('CHANGES.rst').read()

tests_require = [
'check-manifest>=0.25',
'coverage>=4.5.3',
'invenio-config>=1.0.2',
'invenio-db[versioning]>=1.0.2',
'isort>=4.3.4',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
'pytest-cov>=2.7.1',
'pytest-pep8>=1.0.6',
'pytest>=4.6.4,<5.0.0',
'pytest-invenio>=1.4.0',
]

extras_require = {
Expand All @@ -45,13 +39,12 @@
extras_require['all'].extend(reqs)

setup_requires = [
'Babel>=1.3',
'pytest-runner>=2.6.2',
'Babel>=2.8',
]

install_requires = [
'cchardet>=1.0.0',
'invenio-assets>=1.1.2',
'invenio-assets>=1.1.2,<1.2.0',
'invenio-base>=1.2.2',
'invenio-formatter>=1.0.2',
'invenio-i18n>=1.2.0',
Expand Down

0 comments on commit 701740b

Please sign in to comment.