build: add pyproject.toml for packaging

This commit is contained in:
2026-08-12 21:29:43 -05:00
parent c7efae9297
commit 436bc2b23f

62
pyproject.toml Normal file
View File

@@ -0,0 +1,62 @@
[build-system]
requires = ['hatchling >= 1', 'hatch-tryton']
build-backend = 'hatchling.build'
[project]
name = 'trytondo_sale_fast_food'
dynamic = ['version', 'dependencies', 'optional-dependencies', 'authors', 'readme']
requires-python = '>=3.10'
maintainers = [
{name = "OneCluster", email = "info@onecluster.org"},
]
description = "Fast food point of sale management (products, sales and closing reports)"
license = 'GPL-3.0-or-later'
license-files = ['LICENSE', 'icons/LICENSE', 'COPYRIGHT']
keywords = ["tryton", "sale", "point of sale", "fast food", "restaurant"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Tryton",
"Topic :: Office/Business",
"Topic :: Office/Business :: Financial :: Point-Of-Sale",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.entry-points.'trytond.modules']
sale_fast_food = 'trytond.modules.sale_fast_food'
[project.urls]
homepage = "https://www.onecluster.org/"
documentation = "https://docs.tryton.org/"
forum = "https://www.tryton.org/forum"
issues = "https://bugs.tryton.org/tryton"
funding = "https://www.tryton.org/donate"
[tool.hatch.build]
include = [
'**/tryton.cfg',
'**/*.py',
'**/*.xml',
'view/**/*.xml',
'locale/**/*.po',
'**/*.fodt',
'icons/**/*.svg',
'tests/**/*.rst',
'tests/**/*.json',
]
exclude = ['doc']
[tool.hatch.build.targets.wheel.sources]
"" = "trytond/modules/sale_fast_food"
[tool.hatch.metadata.hooks.tryton]
dependencies = [
'python-sql >= 1.4',
'qrcode',
'requests',
]
copyright = 'COPYRIGHT'
readme = 'README.rst'
[tool.hatch.metadata.hooks.tryton.tryton-optional-dependencies]
test = ['proteus']