Skip to content

Commit

Permalink
build: downgrade Python version from 3.12 to 3.10 across all workflow…
Browse files Browse the repository at this point in the history
…s and project configuration files

The Python version was downgraded from 3.12 to 3.10 in all GitHub workflows, the Sourcery configuration file, and the project's pyproject.toml file. This was done to ensure compatibility with certain dependencies that do not yet support Python 3.12. The .python-version file was also deleted as it is no longer needed.
  • Loading branch information
mauvehed committed May 27, 2024
1 parent 1f09392 commit 02e9089
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.10'

- name: Install Poetry
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.10'

- name: Install Poetry
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

2 changes: 1 addition & 1 deletion .sourcery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rule_settings:
- refactoring
- suggestion
- comment
python_version: '3.12' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
python_version: '3.10' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.

github:
labels:
Expand Down
250 changes: 192 additions & 58 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/mauvehed/yourIP"
homepage = "https://yourIP.app/"

[tool.poetry.dependencies]
python = "^3.12"
python = "^3.10"
Flask = "3.0.3"
gunicorn = "^22.0.0"
markupsafe = "^2.1.5"
Expand Down

0 comments on commit 02e9089

Please sign in to comment.