build: add pyproject metadata for setuptools packaging

This commit is contained in:
dev 2026-02-18 10:35:00 +00:00
parent cceef88bef
commit 5663920481

34
pyproject.toml Normal file
View file

@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "scanslicer"
version = "1.0.0"
description = "Detect, straighten and save photos from a flatbed scanner source image"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = { text = "GPLv3" }
authors = [
{ name = "macrodev", email = "macron.dev@proton.me" }
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"Pillow",
"opencv-python",
"numpy",
"PySide6",
]
[project.scripts]
scanslicer = "scanslicer.entry:main"
[tool.setuptools]
packages = ["scanslicer"]
include-package-data = true