Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.13, drop Python 3.8, update tool versions #68

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.12
- python-version: 3.13
env:
TOXENV: pylint
- python-version: 3.12
- python-version: 3.13
env:
TOXENV: typing
- python-version: 3.12
- python-version: 3.13
env:
TOXENV: twinecheck

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: 3.13

- name: Build
run: |
pip install --upgrade build twine
python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
password: ${{ secrets.PYPI_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
env:
TOXENV: py
- python-version: 3.9
- python-version: "3.9"
env:
TOXENV: py
- python-version: "3.10"
Expand All @@ -22,9 +20,9 @@ jobs:
- python-version: "3.12"
env:
TOXENV: py
- python-version: pypy3.9
- python-version: "3.13"
env:
TOXENV: pypy
TOXENV: py
- python-version: pypy3.10
env:
TOXENV: pypy
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
rev: 1.7.10
hooks:
- id: bandit
args: [-r, -c, .bandit.yml]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/psf/black.git
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"queuelib": ["py.typed"],
},
platforms=["Any"],
python_requires=">=3.8",
python_requires=">=3.9",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ commands =
basepython = python3
deps =
{[testenv]deps}
pylint==3.1.0
pylint==3.3.1
commands =
pylint {posargs:queuelib setup.py}

[testenv:typing]
basepython = python3
deps =
mypy==1.10.0
pytest==8.2.0
mypy==1.11.2
pytest==8.3.3
commands =
mypy --strict {posargs:queuelib}

[testenv:twinecheck]
basepython = python3
deps =
twine==5.0.0
build==1.2.1
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*
Expand Down