Skip to content
Snippets Groups Projects

Make the module buildable (with hatch)

Merged Vincent Hatakeyama requested to merge topic/15.0/packaging into branch/15.0
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 66
3
[project]
name = "odoo-addon-menuredir"
dynamic = ["version"]
readme = "README.rst"
requires-python = "~=3.9"
license = { file = "LICENSE", name = "GNU Affero General Public License v3" }
keywords = ["odoo"]
authors = [{ name = "XCG Consulting" }]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Odoo",
"Framework :: Odoo :: 15.0",
"License :: OSI Approved :: GNU Affero General Public License v3"
]
dependencies = ["odoo==15.0.*"]
[project.optional-dependencies]
doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"]
test = []
[project.urls]
repository = "https://orus.io/xcg/odoo-modules/menuredir"
changelog = "https://orus.io/xcg/odoo-modules/menuredir/-/blob/branch/15.0/NEWS.rst"
[build-system]
requires = ["hatchling >=1.19", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build]
exclude = [
"/doc/",
"/.editorconfig",
"/.eslintrc.yml",
"/.flake8",
"/.gitlab-ci.yml",
"/.hgignore",
"/.hgtags",
"/.prettierrc.yml",
"/.yamllint.yaml"
]
[tool.hatch.build.targets.wheel]
include = [
"*.csv",
"/i18n/",
"/static/",
"README.rst",
"*.xml",
"*.py",
"*.svg",
"*.png"
]
[tool.hatch.build.targets.wheel.sources]
"" = "odoo/addons/menuredir"
[tool.hatch.version]
source = "vcs"
[tool.black]
target-version = ["py39", "py310", "py311"]
required-version = "22"
[tool.isort]
py_version = 39
profile = "black"
@@ -12,6 +78,3 @@ sections = [
'FIRSTPARTY',
'LOCALFOLDER'
]
[tool.black]
target = 3.9
Loading