build: add pyproject.toml for packaging
This commit is contained in:
57
pyproject.toml
Normal file
57
pyproject.toml
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ['hatchling >= 1', 'hatch-tryton']
|
||||||
|
build-backend = 'hatchling.build'
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = 'trytondo_sale_printer'
|
||||||
|
dynamic = ['version', 'dependencies', 'optional-dependencies', 'authors', 'readme']
|
||||||
|
requires-python = '>=3.10'
|
||||||
|
maintainers = [
|
||||||
|
{name = "OneCluster", email = "info@onecluster.org"},
|
||||||
|
]
|
||||||
|
description = "Adds receipt printers (USB or network) to point of sale shops"
|
||||||
|
license = 'GPL-3.0-or-later'
|
||||||
|
license-files = ['LICENSE', 'icons/LICENSE', 'COPYRIGHT']
|
||||||
|
keywords = ["tryton", "sale", "point of sale", "printer", "receipt"]
|
||||||
|
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_printer = 'trytond.modules.sale_printer'
|
||||||
|
|
||||||
|
[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_printer"
|
||||||
|
|
||||||
|
[tool.hatch.metadata.hooks.tryton]
|
||||||
|
copyright = 'COPYRIGHT'
|
||||||
|
readme = 'README.rst'
|
||||||
|
|
||||||
|
[tool.hatch.metadata.hooks.tryton.tryton-optional-dependencies]
|
||||||
|
test = ['proteus']
|
||||||
Reference in New Issue
Block a user