Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check and fix dev dependencies #4326

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: Check deps

on:
pull_request:
paths:
- setup.py
- requirements.txt
- dev-requirements.txt
- docs/requirements.txt
- .github/workflows/dependencies.yml
push:

env:
DEBIAN_FRONTEND: noninteractive

jobs:
quality:
name: Checking dependency graph
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04']
python-version: ['3.8']
runs-on: 'ubuntu-latest'

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GHA_PAT }}

- name: Set up Python
uses: ./.github/actions/python-cache-requirements
Expand Down Expand Up @@ -53,4 +52,6 @@ jobs:
run: |
echo "Dependency file(s) changed: ${{ steps.verify-changed-files.outputs.changed_files }}"
git diff
core.setFailed('Please add your new dependencies in setup.py and/or dev-requirements.in then run pip-compile to add them in requirements. (see docs/contribute/development)')

- name: "Commiting dependencies files"
uses: EndBug/add-and-commit@v9
26 changes: 13 additions & 13 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
#
asgiref==3.8.1
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# django
backports-zoneinfo==0.2.1 ; python_version < "3.10"
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# django
build==1.0.0
build==1.2.2.post1
# via pip-tools
click==8.1.3
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# pip-tools
coverage==7.6.1
# via -r dev-requirements.in
django==4.2.16
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# django-debug-toolbar
# django-extensions
django-debug-toolbar==4.3.0
Expand All @@ -39,17 +39,17 @@ freezegun==1.5.1
# via -r dev-requirements.in
importlib-metadata==6.8.0
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# build
lxml==4.9.3
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# -r dev-requirements.in
mccabe==0.7.0
# via flake8
packaging==24.0
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# build
pip-tools==7.4.1
# via -r dev-requirements.in
Expand All @@ -63,16 +63,16 @@ pyproject-hooks==1.0.0
# pip-tools
python-dateutil==2.9.0.post0
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# faker
# freezegun
six==1.16.0
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# python-dateutil
sqlparse==0.5.1
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# django
# django-debug-toolbar
tblib==3.0.0
Expand All @@ -84,14 +84,14 @@ tomli==2.0.1
# pyproject-hooks
typing-extensions==4.12.2
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# asgiref
# faker
wheel==0.41.2
# via pip-tools
zipp==3.20.2
# via
# -c requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down
28 changes: 14 additions & 14 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,60 @@ babel==2.15.0
# sphinx-intl
certifi==2024.8.30
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# requests
charset-normalizer==3.3.2
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# requests
click==8.1.3
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx-intl
colorama==0.4.6
# via sphinx-autobuild
docutils==0.20.1
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx
# sphinx-rtd-theme
idna==3.7
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# requests
imagesize==1.4.1
# via sphinx
importlib-metadata==6.8.0
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx
jinja2==3.1.4
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx
livereload==2.6.3
# via sphinx-autobuild
markupsafe==2.1.5
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# jinja2
packaging==24.0
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx
pygments==2.18.0
# via sphinx
pytz==2023.3.post1
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# babel
requests==2.32.3
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# sphinx
six==1.16.0
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# livereload
snowballstemmer==2.2.0
# via sphinx
Expand Down Expand Up @@ -100,11 +100,11 @@ tornado==6.4
# via livereload
urllib3==2.2.2
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# requests
zipp==3.20.2
# via
# -c docs/../requirements.txt
# -c /home/runner/work/Geotrek-admin/Geotrek-admin/requirements.txt
# importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down