Skip to content

Commit

Permalink
project: update dependencies
Browse files Browse the repository at this point in the history
* Bumps dependencies.
* Allows python versions 3.9 - 3.12

Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
rerowep committed Feb 19, 2025
1 parent 24135fb commit 1641eca
Show file tree
Hide file tree
Showing 51 changed files with 3,963 additions and 3,450 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ known_first_party = rero_ils
multi_line_output = 2
default_section = THIRDPARTY
skip = .eggs
# Needed for isort since version 4.3.10
reverse_relative = true

# RST files (used by sphinx)
[*.rst]
Expand Down
28 changes: 2 additions & 26 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.9", "3.10", "3.11", "3.12"]
requirements-level: [min, pypi]
cache-service: [redis]
# services: [release, devel]
Expand Down Expand Up @@ -62,19 +62,16 @@ jobs:
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2

- name: Install dependencies
run: |
docker --version
docker-compose --version
poetry install
- name: Run tests
Expand All @@ -93,24 +90,3 @@ jobs:
pip install --upgrade coveralls
coveralls
# coveralls:
# needs: [python-tests]
# runs-on: ubuntu-latest
# steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
#
# - name: Set up Python 3.6
# uses: actions/setup-python@v2
# with:
# python-version: 3.6
#
# - name: Finished
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_PARALLEL_FINISHED: true
# run: |
# pip install --upgrade coveralls
# coveralls --finish
109 changes: 58 additions & 51 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,41 @@

# Do not warn on external images.
import os
import sys

suppress_warnings = ['image.nonlocal_uri']
sys.path.insert(0, os.path.abspath(".."))

suppress_warnings = ["image.nonlocal_uri"]

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"

# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# General information about the project.
project = u'Invenio-SIP2'
copyright = u'2019, UCLouvain'
author = u'UCLouvain'
project = "Invenio-SIP2"
copyright = "2019, UCLouvain"
author = "UCLouvain"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -55,11 +58,11 @@

# Get the version string. Cannot be done with import!
module_data = {}
with open(os.path.join(os.path.dirname(__file__), '..',
'invenio_sip2', 'version.py'),
'rt') as file:
with open(
os.path.join(os.path.dirname(__file__), "..", "invenio_sip2", "version.py"), "rt"
) as file:
exec(file.read(), module_data)
version = module_data['__version__']
version = module_data["__version__"]
# The full version, including alpha/beta/rc tags.
release = version

Expand All @@ -68,7 +71,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = 'en'
language = "en"

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -96,7 +99,7 @@
# show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
Expand All @@ -109,20 +112,19 @@


# -- Options for HTML output ----------------------------------------------
html_theme = 'alabaster'
html_theme = "alabaster"

html_theme_options = {
'description': 'Library Selfcheck SIP2 module for invenio',
'github_user': 'inveniosoftware-contrib',
'github_repo': 'invenio-sip2',
'github_button': False,
'github_banner': True,
'show_powered_by': False,
'extra_nav_links': {
'invenio-sip2@GitHub':
'https://github.com/inveniosoftware-contrib/invenio-sip2',
'invenio-sip2@PyPI': 'https://pypi.python.org/pypi/invenio-sip2/',
}
"description": "Library Selfcheck SIP2 module for invenio",
"github_user": "inveniosoftware-contrib",
"github_repo": "invenio-sip2",
"github_button": False,
"github_banner": True,
"show_powered_by": False,
"extra_nav_links": {
"invenio-sip2@GitHub": "https://github.com/inveniosoftware-contrib/invenio-sip2",
"invenio-sip2@PyPI": "https://pypi.python.org/pypi/invenio-sip2/",
},
}

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down Expand Up @@ -172,12 +174,12 @@

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**': [
'about.html',
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
"**": [
"about.html",
"navigation.html",
"relations.html",
"searchbox.html",
"donate.html",
]
}

Expand Down Expand Up @@ -226,20 +228,17 @@
# html_search_scorer = 'scorer.js'

# Output file base name for HTML help builder.
htmlhelp_basename = 'invenio-sip2_namedoc'
htmlhelp_basename = "invenio-sip2_namedoc"

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
# 'preamble': '',

# Latex figure (float) alignment
# 'figure_align': 'htbp',
}
Expand All @@ -248,8 +247,13 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'invenio-sip2.tex', u'invenio-sip2 Documentation',
u'UCLouvain', 'manual'),
(
master_doc,
"invenio-sip2.tex",
"invenio-sip2 Documentation",
"UCLouvain",
"manual",
),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -277,10 +281,7 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'invenio-sip2', u'invenio-sip2 Documentation',
[author], 1)
]
man_pages = [(master_doc, "invenio-sip2", "invenio-sip2 Documentation", [author], 1)]

# If true, show URL addresses after external links.
# man_show_urls = False
Expand All @@ -292,9 +293,15 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'invenio-sip2', u'Invenio-SIP2 Documentation',
author, 'invenio-sip2', 'Library Selfcheck SIP2 module for invenio',
'Miscellaneous'),
(
master_doc,
"invenio-sip2",
"Invenio-SIP2 Documentation",
author,
"invenio-sip2",
"Library Selfcheck SIP2 module for invenio",
"Miscellaneous",
),
]

# Documents to append as an appendix to all manuals.
Expand All @@ -312,10 +319,10 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/', None),
"python": ("https://docs.python.org/", None),
# TODO: Configure external documentation references, eg:
# 'Flask-Admin': ('https://flask-admin.readthedocs.io/en/latest/', None),
}

# Autodoc configuraton.
autoclass_content = 'both'
autoclass_content = "both"
7 changes: 1 addition & 6 deletions invenio_sip2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,4 @@

datastore = LocalProxy(lambda: current_sip2.datastore)

__all__ = (
'__version__',
'current_datastore',
'current_sip2',
'InvenioSIP2'
)
__all__ = ("__version__", "current_datastore", "current_sip2", "InvenioSIP2")
22 changes: 18 additions & 4 deletions invenio_sip2/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,24 @@

"""Invenio-SIP2 actions module."""

from invenio_sip2.actions.actions import AutomatedCirculationSystemStatus, \
BlockPatron, Checkin, Checkout, EndPatronSession, FeePaid, Hold, \
ItemInformation, ItemStatusUpdate, PatronEnable, PatronInformation, \
PatronStatus, Renew, RenewAll, RequestResend, SelfCheckLogin
from invenio_sip2.actions.actions import (
AutomatedCirculationSystemStatus,
BlockPatron,
Checkin,
Checkout,
EndPatronSession,
FeePaid,
Hold,
ItemInformation,
ItemStatusUpdate,
PatronEnable,
PatronInformation,
PatronStatus,
Renew,
RenewAll,
RequestResend,
SelfCheckLogin,
)

__all__ = (
AutomatedCirculationSystemStatus,
Expand Down
Loading

0 comments on commit 1641eca

Please sign in to comment.