Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Jul 3, 2024
1 parent 77d515e commit 1c64793
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 45 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ htmlcov:
pytest --cov=pdf417gen --cov-report=html

dist:
python setup.py sdist
python setup.py bdist_wheel
python -m build

clean:
rm -rf build dist *.egg-info MANIFEST htmlcov
Expand Down
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "pdf417gen"
authors = [{ name="Ivan Habunek", email="[email protected]" }]
description = "PDF417 2D barcode generator for Python"
keywords=["pdf417", "2d", "barcode", "generator"]
readme = "README.rst"
license = { file="LICENSE" }
requires-python = ">=3.6"
dynamic = ["version"]

classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Console",
]

dependencies = [
"Pillow>=3.3.0"
]

[tool.setuptools]
packages = [
"pdf417gen",
"pdf417gen.compaction"
]

[tool.setuptools_scm]

[project.optional-dependencies]
dev = [
"build",
"mock",
"pytest",
"pytest-cov",
"twine",
"vermin",
]

[project.urls]
"Homepage" = "https://github.com/ihabunek/pdf417-py/"

[project.scripts]
pdf417gen = "pdf417gen.console:main"

[tool.pyright]
include = ["pdf417gen"]
typeCheckingMode = "strict"

[tool.ruff]
line-length = 100
5 changes: 0 additions & 5 deletions requirements-dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

0 comments on commit 1c64793

Please sign in to comment.