Skip to content
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
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
cache: pip
cache-dependency-path: |
pyproject.toml
setup.py
- name: Install test dependency
run: pip install tox
- name: Run tests
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
---------

v0.16.1
~~~~~~~
* Switch from ``setup.py`` to ``pyproject.toml``. Only affects how installation
from source is performed, and has no runtime impact.

v0.16.0
~~~~~~~

Expand Down
47 changes: 46 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
requires = ["setuptools>=61", "wheel", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "python-barcode"
description = "Create standard barcodes with Python. No external modules needed. (optional Pillow support included)."
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "Hugo Osvaldo Barrera et al", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
]
dynamic = ["version"]

[project.optional-dependencies]
images = ["pillow"]

[project.scripts]
python-barcode = "barcode.pybarcode:main"

[project.urls]
documentation = "https://python-barcode.readthedocs.io/"
repository = "https://github.com/WhyNotHugo/python-barcode"
issues = "https://github.com/WhyNotHugo/python-barcode/issues"
funding= "https://whynothugo.nl/sponsor/"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
exclude = ["tests"]

[tool.setuptools_scm]
write_to = "barcode/version.py"
Expand Down
39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

Loading