From d0d3f03ae447b4d788de984e85972ac6cfc4b7f2 Mon Sep 17 00:00:00 2001 From: aserrador Date: Wed, 12 Aug 2026 21:29:43 -0500 Subject: [PATCH] build: add pyproject.toml for packaging --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f6f70e4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ['hatchling >= 1', 'hatch-tryton'] +build-backend = 'hatchling.build' + +[project] +name = 'trytondo_sale_payment' +dynamic = ['version', 'dependencies', 'optional-dependencies', 'authors', 'readme'] +requires-python = '>=3.10' +maintainers = [ + {name = "OneCluster", email = "info@onecluster.org"}, + ] +description = "Handles payments, payment devices and statements for sales" +license = 'GPL-3.0-or-later' +license-files = ['LICENSE', 'icons/LICENSE', 'COPYRIGHT'] +keywords = ["tryton", "sale", "payment", "statement", "device"] +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_payment = 'trytond.modules.sale_payment' + +[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_payment" + +[tool.hatch.metadata.hooks.tryton] +dependencies = [ + 'python-sql >= 1.4', + ] +copyright = 'COPYRIGHT' +readme = 'README.rst' + +[tool.hatch.metadata.hooks.tryton.tryton-optional-dependencies] +test = ['proteus']