Skip to content

Commit

Permalink
[REMOVED] Support for Python 3.8 and Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Jun 16, 2024
1 parent bc22c99 commit 7a47ddc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# https://endoflife.date/nodejs
node-version: '20' # [LTS] End of Life: 30 Apr 2026
- run: npm install

- name: Run Pre Commit Checks
Expand All @@ -52,11 +53,10 @@ jobs:
# Set Python versions to test against
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
# https://endoflife.date/python
- '3.10' # [EOL] End of Life: 31 Oct 2026
- '3.11' # [EOL] End of Life: 31 Dec 2027
- '3.12' # [EOL] End of Life: 31 Dec 2028
# MySQL versions to test against
database:
# https://endoflife.date/mysql
Expand Down Expand Up @@ -126,18 +126,20 @@ jobs:
)
)
&& (
matrix.python-version == '3.10'
matrix.python-version == '3.12'
&& matrix.database == 'mariadb:10.11'
)
}}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
# token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
# fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# Run PyPi Build Test
pypi-build-test:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ repos:
name: PyUpgrade
description: Upgrade syntax to newer versions of Python.
args:
- --py38-plus # Minimum required Python version for AA. Update as needed.
- --py310-plus # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
Expand Down Expand Up @@ -253,7 +253,7 @@ repos:
name: Black
description: Format Python code.
args:
- --target-version=py38 # Minimum required Python version for AA. Update as needed.
- --target-version=py310 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
Expand All @@ -264,7 +264,7 @@ repos:
additional_dependencies:
- black==24.4.2 # https://github.com/psf/black/releases/latest
args:
- --target-version=py38 # Minimum required Python version for AA. Update as needed.
- --target-version=py310 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
Expand Down Expand Up @@ -315,7 +315,7 @@ repos:
name: Pylint
description: Check for errors and code smells in Python code.
args:
- --py-version=3.8 # Minimum required Python version for AA. Update as needed.
- --py-version=3.10 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Section Order:
### Security
-->

### Removed

- Support for Python 3.8 and Python 3.9

## \[2.0.1\] - 2024-05-16

### Changed
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ license = { file = "LICENSE" }
authors = [
{ name = "Peter Pfeufer", email = "develop@ppfeufer.de" },
]
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
Expand All @@ -28,8 +28,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires =
tox>=4.2
env_list =
allianceauth-{latest, testing}
py{312, 311, 310, 39, 38}
py{312, 311, 310}
no_package = true
usedevelop = True

Expand Down

0 comments on commit 7a47ddc

Please sign in to comment.