Skip to content

Commit

Permalink
dependencies: fix sphinx version
Browse files Browse the repository at this point in the history
* Updates setup.cfg.
* Fixes docs compatibilty problem with Sphinx>=5.0.0.

Co-Authored-by: Lauren-D <laurent.dubois@itld-solutions.be>
  • Loading branch information
lauren-d committed Aug 30, 2022
1 parent 3146cfb commit 8239212
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 681 deletions.
6 changes: 6 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2

build:
os: "ubuntu-20.04"
tools:
python: "3.9"
11 changes: 2 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

"""Sphinx configuration."""

from __future__ import print_function

from invenio_sip2 import __version__

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -55,18 +51,15 @@
#
# The short X.Y version.

# Get the version string. Cannot be done with import!
version = __version__

# The full version, including alpha/beta/rc tags.
release = version
release = '0.6.14'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down
2 changes: 1 addition & 1 deletion invenio_sip2/records/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def get_current_patron_session(self):
def clear_patron_session(self):
"""Shortcut to library name."""
with contextlib.suppress(KeyError):
del(self['patron_session'])
del (self['patron_session'])

@property
def last_response_message(self):
Expand Down
1 change: 0 additions & 1 deletion invenio_sip2/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
This file is imported by ``invenio_sip2.__init__``,
and parsed by ``setup.py``.
"""

__version__ = '0.6.14'
793 changes: 127 additions & 666 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ mock = "^4.0.3"
[tool.poetry.dev-dependencies]
pytest-invenio=">=1.4.0,<1.5.0"
autoflake = ">=1.3.1"
Sphinx = "^4.5.0"
Sphinx = ">=4.5.0"

[build-system]
requires = ["setuptools", "wheel", "babel>2.8"]
build-backend = "setuptools.build_meta"
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.plugins."invenio_base.apps"]
invenio_sip2 = "invenio_sip2:InvenioSIP2"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ tests =
pydocstyle>=5.0.0
pytest-invenio>=1.4.0,<1.4.1
invenio-db[postgresql,mysql,versioning]>=1.0.9,<2.0.0
Sphinx==^4.5.0
sphinx>=4.5

[options.entry_points]
invenio_base.apps =
Expand Down

0 comments on commit 8239212

Please sign in to comment.