Add a "deps-upgrade-check" session ...

... to report the latest version on PyPI and the age of
every release pinned in uv.lock, using a stdlib-only script.
This commit is contained in:
Alexander Hess 2026-11-26 15:51:31 +01:00
commit 6d86cfe16b
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -105,6 +105,7 @@ SRC_LOCATIONS = (
'migrations/env.py',
'migrations/versions/',
'noxfile.py',
'scripts/',
PACKAGE_SOURCE_LOCATION,
PYTEST_LOCATION,
)
@ -403,6 +404,23 @@ def upgrade_dependencies(session: Session) -> None:
session.run('git', 'diff', '--stat', 'uv.lock', external=True)
@nox.session(name='deps-upgrade-check', python=MAIN_PYTHON)
def check_dependency_upgrades(session: Session) -> None:
"""Check the dependencies in uv.lock for upgrades.
This task checks if upgrades are available for the PyPI
packages pinned in the uv.lock file. Also, it obtains
information about the age of the pinned releases.
The output is written to ".cache/dependencies_checked.txt".
"""
do_not_accept_arguments(session)
start(session)
# The script only uses the standard library => Nothing to install
session.run('python', 'scripts/get_update_info_for_dependencies.py')
@nox.session(name='venv', python=MAIN_PYTHON, venv_backend='none')
def create_develop_environment(session: Session) -> None:
"""Set up the local develop environment in ".venv".