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

Minor renovations #220

Merged
merged 6 commits into from
Nov 28, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-22.04
name: Publish package on PyPI
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.7
- run: pip install build setuptools wheel build setuptools_scm
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
python: [ '3.8', '3.9', '3.10', '3.11' ]
os: [ ubuntu-22.04 ]
python: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
variant: [ "py", "py-images" ]
include:
- os: macOS-11
python: "3.10"
- os: macOS-12
python: "3.12"
variant: py-images
- os: windows-2019
python: "3.10"
- os: windows-2022
python: "3.12"
variant: py-images
- os: windows-2019
- os: windows-2022
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: |
pyproject.toml
setup.py
- name: Install test dependency
run: pip install tox
- name: Run tests
Expand Down
13 changes: 5 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/psf/black
rev: "23.7.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.5.1'
rev: 'v1.7.1'
hooks:
- id: mypy
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.287'
rev: 'v0.1.6'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/netromdk/vermin
rev: v1.5.2
rev: v1.6.0
hooks:
- id: vermin
args: ['-t=3.8-', '--violations']
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
python-barcode
==============

.. image:: https://action-badges.now.sh/WhyNotHugo/python-barcode
.. image:: https://github.com/WhyNotHugo/python-barcode/actions/workflows/tests.yml/badge.svg
:target: https://github.com/WhyNotHugo/python-barcode/actions
:alt: CI status

Expand All @@ -26,7 +26,7 @@ python-barcode
There are no external dependencies when generating SVG files.
Pillow is required for generating images (e.g.: PNGs).

Support Python 3.8 to 3.11.
Support Python 3.8 to 3.12.

.. image:: example-ean13.png
:target: https://github.com/WhyNotHugo/python-barcode
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
write_to = "barcode/version.py"
version_scheme = "post-release"

[tool.black]
target-version = ['py38']

[tool.ruff]
select = [
"F",
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
Loading