Skip to content

Commit

Permalink
NEW: add Python 3.11 and 3.12, and remove 3.7 πŸ§‘β€πŸ’»
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Perestoronin committed Jan 25, 2024
1 parent 18088ef commit 612968f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Lint checks

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
name: Unit tests

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and other dependencies
run: pip install tox tox-docker wheel twine
run: pip install tox tox-docker wheel twine 'setuptools; python_version >= "3.12"'
- name: Run tests with Tox
# Run tox using the version of Python in `PATH`
run: tox -e py
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 120
target_version = ["py37", "py38", "py39", "py310"]
target_version = ["py38", "py39", "py310", "py311", "py312"]

[tool.isort]
combine_as_imports = true
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ flake8
mypy

# Distribution
setuptools; python_version >= "3.12"
twine
wheel

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
addopts = --tb=short

[tox]
envlist = py37,py38,py39,py310
envlist = py38,py39,py310,py311,py312
skipsdist = true

[testenv]
Expand Down

0 comments on commit 612968f

Please sign in to comment.