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

Set up deploy/stage branch for ubuntu 22.04 upgrade #659

Merged
merged 38 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
72a30dc
Add the crontab file to the activate script
amstilp Jul 11, 2024
cf3ca63
Merge pull request #636 from UW-GAC/maint/add-cron-file-to-deploy-scr…
amstilp Jul 11, 2024
73e9598
Bump types-requests from 2.32.0.20240622 to 2.32.0.20240712
dependabot[bot] Jul 14, 2024
e7adce6
Bump django-debug-toolbar from 4.4.5 to 4.4.6
dependabot[bot] Jul 14, 2024
4da0e45
Bump ruff from 0.5.1 to 0.5.2
dependabot[bot] Jul 14, 2024
8711f4d
Merge dependabot/pip/ruff-0.5.2 into combined-prs-branch
github-actions[bot] Jul 15, 2024
72031b2
Merge dependabot/pip/django-debug-toolbar-4.4.6 into combined-prs-branch
github-actions[bot] Jul 15, 2024
4f29960
Merge dependabot/pip/types-requests-2.32.0.20240712 into combined-prs…
github-actions[bot] Jul 15, 2024
6660bc6
Merge branch 'main' into combined-prs-branch
github-actions[bot] Jul 15, 2024
85b9625
Bump github/combine-prs from 5.0.0 to 5.1.0
dependabot[bot] Jul 21, 2024
bf667a6
Bump mypy from 1.10.1 to 1.11.0
dependabot[bot] Jul 21, 2024
6e23fa1
Bump pytest from 8.2.2 to 8.3.1
dependabot[bot] Jul 21, 2024
5ca90a8
Bump sqlparse from 0.5.0 to 0.5.1
dependabot[bot] Jul 21, 2024
698ce16
Bump django-crispy-forms from 2.2 to 2.3
dependabot[bot] Jul 21, 2024
08b23ff
Merge dependabot/pip/django-crispy-forms-2.3 into combined-prs-branch
github-actions[bot] Jul 22, 2024
f007f33
Merge dependabot/pip/sqlparse-0.5.1 into combined-prs-branch
github-actions[bot] Jul 22, 2024
a8ac3aa
Merge dependabot/pip/pytest-8.3.1 into combined-prs-branch
github-actions[bot] Jul 22, 2024
28bc3c8
Merge dependabot/pip/mypy-1.11.0 into combined-prs-branch
github-actions[bot] Jul 22, 2024
5e931dc
Merge dependabot/github_actions/github/combine-prs-5.1.0 into combine…
github-actions[bot] Jul 22, 2024
d73ce34
Merge branch 'main' into combined-prs-branch
github-actions[bot] Jul 22, 2024
6611e9c
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 22, 2024
dbe6a06
Merge pull request #641 from UW-GAC/combined-prs-branch
amstilp Jul 22, 2024
335d32d
Bump ruff from 0.5.1 to 0.5.4
dependabot[bot] Jul 22, 2024
98cf7de
Merge pull request #647 from UW-GAC/dependabot/pip/ruff-0.5.4
amstilp Jul 22, 2024
bafc72c
Merge pull request #642 from UW-GAC/pre-commit-ci-update-config
amstilp Jul 22, 2024
d9b76d5
Bump zipp version in requirements file
amstilp Jul 22, 2024
f4c377f
Compile requirements files
amstilp Jul 22, 2024
1751d23
Merge pull request #650 from UW-GAC/pip-tools/update-requirements-fil…
amstilp Jul 22, 2024
01910c6
Merge pull request #649 from UW-GAC/maint/security/zipp-3.19.1
amstilp Jul 22, 2024
eaff2eb
Bump certifi version number in requirements
amstilp Jul 22, 2024
c4586f9
Remove temporary security update pinned versions
amstilp Jul 22, 2024
135c218
Compile requirements files
amstilp Jul 22, 2024
3ab5900
Merge pull request #652 from UW-GAC/pip-tools/update-requirements-fil…
amstilp Jul 22, 2024
8e81772
Merge pull request #651 from UW-GAC/maint/security/certifi-2024.07.04
amstilp Jul 22, 2024
05f210f
Update CI to run python3.10 and MariaDb 10.6
amstilp Jul 23, 2024
a327202
Compile requirements files
amstilp Jul 23, 2024
3d598fd
Merge pull request #654 from UW-GAC/pip-tools/update-requirements-fil…
amstilp Jul 23, 2024
33d11cf
Merge pull request #653 from UW-GAC/maint/ubuntu-22.04
amstilp Jul 30, 2024
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
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
backend: ["sqlite", "mariadb"]
mariadb-version: ["10.4"]
mariadb-version: ["10.6"]
include:
- python-version: "3.10" # Future ubuntu 22.04 upgrade.
backend: "mariadb"
mariadb-version: "10.6"
pip-recompile: true
- python-version: 3.12 # Future ubuntu 24.04.01 upgrade.
backend: "mariadb"
mariadb-version: "10.11"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: combine-prs
id: combine-prs
uses: github/combine-prs@v5.0.0
uses: github/combine-prs@v5.1.0
with:
labels: combined-pr # Optional: add a label to the combined PR
ci_required: true # require all checks to pass before combining
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.10"

- name: Update requirements files
uses: UW-GAC/pip-tools-actions/update-requirements-files@v0.1
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.1
rev: v0.5.4
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 2 additions & 0 deletions gregor-apps-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export DJANGO_SITE_DIR=/var/www/django/gregor_apps/
export DJANGO_SITE_USER=gregorweb
export DJANGO_SETTINGS_MODULE=config.settings.apps
export DJANGO_WSGI_FILE=config/gregor_apps_wsgi.py
export DJANGO_CRONTAB=gregor_apps.cron
export GAC_ENV=gregor_apps

cd $DJANGO_SITE_DIR
. venv/bin/activate
2 changes: 2 additions & 0 deletions gregor-apps-dev-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export DJANGO_SITE_DIR=/var/www/django/gregor_apps_dev/
export DJANGO_SITE_USER=gregorweb
export DJANGO_SETTINGS_MODULE=config.settings.apps_dev
export DJANGO_WSGI_FILE=config/apps_dev_wsgi.py
export DJANGO_CRONTAB=gregor_apps_dev.cron
export GAC_ENV=gregor_apps_dev

cd $DJANGO_SITE_DIR
. venv/bin/activate
30 changes: 6 additions & 24 deletions requirements/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements/dev-requirements.in
Expand All @@ -18,11 +18,7 @@ babel==2.14.0
# via sphinx
backcall==0.2.0
# via ipython
backports-zoneinfo==0.2.1
# via
# -c requirements/requirements.txt
# django
certifi==2023.7.22
certifi==2024.7.4
# via
# -c requirements/requirements.txt
# -c requirements/test-requirements.txt
Expand Down Expand Up @@ -50,7 +46,7 @@ django==4.2.14
# django-debug-toolbar
# django-stubs
# django-stubs-ext
django-debug-toolbar==4.4.5
django-debug-toolbar==4.4.6
# via -r requirements/dev-requirements.in
django-stubs==4.2.7
# via -r requirements/dev-requirements.in
Expand All @@ -71,10 +67,6 @@ idna==3.7
# requests
imagesize==1.4.1
# via sphinx
importlib-metadata==6.8.0
# via
# -c requirements/requirements.txt
# sphinx
ipdb==0.13.13
# via -r requirements/dev-requirements.in
ipython==8.12.3
Expand All @@ -95,7 +87,7 @@ matplotlib-inline==0.1.6
# via ipython
mccabe==0.7.0
# via pylint
mypy==1.10.1
mypy==1.11.0
# via -r requirements/dev-requirements.in
mypy-extensions==1.0.0
# via mypy
Expand Down Expand Up @@ -136,10 +128,6 @@ pylint-django==2.5.5
# via -r requirements/dev-requirements.in
pylint-plugin-utils==0.8.2
# via pylint-django
pytz==2023.4
# via
# -c requirements/requirements.txt
# babel
pyyaml==6.0.1
# via
# -c requirements/test-requirements.txt
Expand All @@ -149,7 +137,7 @@ requests==2.32.3
# -c requirements/requirements.txt
# -c requirements/test-requirements.txt
# sphinx
ruff==0.5.1
ruff==0.5.4
# via -r requirements/dev-requirements.in
six==1.16.0
# via
Expand Down Expand Up @@ -177,7 +165,7 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sqlparse==0.5.0
sqlparse==0.5.1
# via
# -c requirements/requirements.txt
# django
Expand Down Expand Up @@ -212,9 +200,7 @@ typing-extensions==4.8.0
# astroid
# django-stubs
# django-stubs-ext
# ipython
# mypy
# pylint
urllib3==2.2.2
# via
# -c requirements/requirements.txt
Expand All @@ -226,10 +212,6 @@ wcwidth==0.2.13
# via prompt-toolkit
werkzeug==3.0.3
# via -r requirements/dev-requirements.in
zipp==3.17.0
# via
# -c requirements/requirements.txt
# importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools
7 changes: 0 additions & 7 deletions requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ mysqlclient # https://github.com/PyMySQL/mysqlclient
# See issue https://github.com/jazzband/django-simple-history/issues/1255
asgiref>=3.6

# Temporary fixes to handle security vulnerabilities
certifi>=2023.7.22
pyjwt>=2.4.0
sqlparse>=0.4.4
idna>=3.7
urllib3>=2.2.2
requests>=2.32.0

# Dynamic settings
django-constance
Expand Down
35 changes: 9 additions & 26 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements/requirements.in
Expand All @@ -12,16 +12,12 @@ asgiref==3.8.1
# via
# -r requirements/requirements.in
# django
backports-zoneinfo==0.2.1
# via django
build==1.0.3
# via pip-tools
cachetools==5.3.2
# via google-auth
certifi==2023.7.22
# via
# -r requirements/requirements.in
# requests
certifi==2024.7.4
# via requests
cffi==1.16.0
# via
# argon2-cffi-bindings
Expand Down Expand Up @@ -61,7 +57,7 @@ django-autocomplete-light==3.11.0
# via django-anvil-consortium-manager
django-constance==3.1.0
# via -r requirements/requirements.in
django-crispy-forms==2.2
django-crispy-forms==2.3
# via
# -r requirements/requirements.in
# crispy-bootstrap5
Expand Down Expand Up @@ -97,11 +93,7 @@ fontawesomefree==6.5.1
google-auth==2.11.0
# via django-anvil-consortium-manager
idna==3.7
# via
# -r requirements/requirements.in
# requests
importlib-metadata==6.8.0
# via build
# via requests
mysqlclient==2.2.4
# via -r requirements/requirements.in
networkx==3.1
Expand Down Expand Up @@ -129,9 +121,7 @@ pyasn1-modules==0.3.0
pycparser==2.21
# via cffi
pyjwt[crypto]==2.8.0
# via
# -r requirements/requirements.in
# django-allauth
# via django-allauth
pyproject-hooks==1.0.0
# via
# build
Expand All @@ -146,7 +136,6 @@ pytz==2023.4
# django-dbbackup
requests==2.32.3
# via
# -r requirements/requirements.in
# django-allauth
# django-anvil-consortium-manager
# requests-oauthlib
Expand All @@ -156,10 +145,8 @@ rsa==4.9
# via google-auth
six==1.16.0
# via google-auth
sqlparse==0.5.0
# via
# -r requirements/requirements.in
# django
sqlparse==0.5.1
# via django
tenacity==8.2.3
# via plotly
tomli==2.0.1
Expand All @@ -170,15 +157,11 @@ tomli==2.0.1
typing-extensions==4.8.0
# via asgiref
urllib3==2.2.2
# via
# -r requirements/requirements.in
# requests
# via requests
wheel==0.42.0
# via pip-tools
whitenoise==6.7.0
# via -r requirements/requirements.in
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
9 changes: 4 additions & 5 deletions requirements/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements/test-requirements.in
#
certifi==2023.7.22
certifi==2024.7.4
# via
# -c requirements/requirements.txt
# requests
Expand Down Expand Up @@ -42,7 +42,7 @@ packaging==23.2
# pytest-sugar
pluggy==1.5.0
# via pytest
pytest==8.2.2
pytest==8.3.1
# via
# -r requirements/test-requirements.in
# pytest-cov
Expand Down Expand Up @@ -78,13 +78,12 @@ tomli==2.0.1
# -c requirements/requirements.txt
# coverage
# pytest
types-requests==2.32.0.20240622
types-requests==2.32.0.20240712
# via -r requirements/test-requirements.in
typing-extensions==4.8.0
# via
# -c requirements/requirements.txt
# django-test-migrations
# faker
urllib3==2.2.2
# via
# -c requirements/requirements.txt
Expand Down