Skip to content

Commit

Permalink
Add support for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Dec 3, 2022
1 parent 3643a65 commit f3a7046
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.10
python-version: 3.7
- run: pip install build setuptools wheel
- run: python -m build --sdist --wheel --no-isolation
- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, macOS-10.15, windows-2019 ]
python: [ '3.7', '3.8', '3.9', '3.10' ]
os: [ ubuntu-20.04 ]
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
variant: [ "py", "py-images" ]
include:
- os: macOS-10.15
python: "3.10"
variant: py-images
- os: windows-2019
python: "3.10"
variant: py-images
- os: windows-2019
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ python-barcode
There are no external dependencies when generating SVG files.
Pillow is required for generating images (e.g.: PNGs).

Support Python 3.7 to 3.10.
Support Python 3.7 to 3.11.

.. image:: example-ean13.png
:target: https://github.com/WhyNotHugo/python-barcode
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ unreleased
~~~~~~~~~~

* **Breaking** Dropped support for Python 3.6.
* Added support for Python 3.11.

v0.14.0
~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Multimedia :: Graphics",
"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
@@ -1,5 +1,5 @@
[tox]
envlist = {py37,py38,py39,py310}{,-images}
envlist = {py37,py38,py39,py310,py311}{,-images}
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit f3a7046

Please sign in to comment.