Skip to content

Commit

Permalink
Add Python 3.12 to supported versions. (#142)
Browse files Browse the repository at this point in the history
* Add Python 3.12 to supported versions.

* Add setuptools to tox.ini deps.

* Actually run tests on 3.12.
  • Loading branch information
wRAR committed Oct 6, 2023
1 parent 43ef533 commit 8e7ad50
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .flake8
Expand Up @@ -2,7 +2,8 @@
max-line-length = 99
ignore =
W503
E266 # too many leading '#' for block comment
# too many leading '#' for block comment
E266
exclude =
.git
.tox
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/checks.yml
Expand Up @@ -7,30 +7,30 @@ jobs:
strategy:
matrix:
include:
- python-version: 3
- python-version: 3.12
env:
TOXENV: black
- python-version: 3
- python-version: 3.12
env:
TOXENV: flake8
- python-version: 3
- python-version: 3.12
env:
TOXENV: pylint
- python-version: 3
- python-version: 3.12
env:
TOXENV: security
- python-version: 3
- python-version: 3.12
env:
TOXENV: docs
- python-version: 3
- python-version: 3.12
env:
TOXENV: typing

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Expand Up @@ -7,12 +7,12 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3
python-version: 3.12

- name: Check Tag
id: check-release-tag
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -6,13 +6,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -41,5 +41,6 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
5 changes: 3 additions & 2 deletions tox.ini
Expand Up @@ -6,6 +6,7 @@ deps =
lxml>=4.4
pytest-cov>=2.8
pytest>=5.4
setuptools
sybil
commands =
pytest --cov=cssselect \
Expand All @@ -20,14 +21,14 @@ commands =

[testenv:flake8]
deps =
flake8==5.0.4
flake8==6.1.0
commands =
flake8 {posargs: cssselect setup.py tests docs/conf.py}

[testenv:pylint]
deps =
{[testenv]deps}
pylint==2.15.3
pylint==3.0.0
commands =
pylint {posargs: cssselect setup.py tests docs}

Expand Down

0 comments on commit 8e7ad50

Please sign in to comment.