Skip to content

Commit

Permalink
Bump Python version to 3.12
Browse files Browse the repository at this point in the history
Production is actually already running on 3.12, but the CI and tools
keep using 3.10.

Centralize the Python version in .python-version, which is supported by
uv and Scalingo.
  • Loading branch information
francoisfreitag committed Jan 8, 2025
1 parent 6657411 commit e0708d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
env:
DJANGO_SETTINGS_MODULE: config.settings_test
PYTHONPATH: .
strategy:
matrix:
python-version: ["3.10"]
services:
postgres:
image: postgres:14-alpine
Expand All @@ -22,13 +19,14 @@ jobs:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 🌍 Install dependencies
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Setup virtual environment
run: |
pip install -r requirements.txt
uv venv venv
echo "venv/bin" >> $GITHUB_PATH
- name: 🌍 Install dependencies
run: uv pip sync requirements.txt
- name: 📄 Copy empty .env.test to .env
run: |
cp .env.test .env
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ target/
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prérequis

- Python 3.10
- Python [(version)](./python-version)
- Postgreql 14.x.

## Installer les pre-commit hooks
Expand Down

0 comments on commit e0708d8

Please sign in to comment.