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:
parent
77a812c566
commit
6d86cfe16b
1 changed files with 202 additions and 0 deletions
18
noxfile.py
18
noxfile.py
|
|
@ -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".
|
||||
|
|
|
|||
Loading…
Reference in a new issue