Skip to content
Snippets Groups Projects
Commit bcbd8542b1d4 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: Loosen up python version

Build with hatchling
parent 84f1eaf4d83a
No related branches found
No related tags found
No related merge requests found
Pipeline #76544 passed
Changelog
=========
16.0.1.0.1
----------
Loosen up python version.
16.0.1.0.0
----------
......@@ -4,7 +9,7 @@
16.0.1.0.0
----------
* Port to 16.0
Port to 16.0
15.0.1.0.1
----------
......
......@@ -21,7 +21,7 @@
{
"name": "ICU Format",
"summary": "Format message using ICU",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"category": "Technical",
"author": "XCG Consulting",
"website": "https://orbeet.io/",
......
[project]
# TEMPLATE update this value
name = "odoo-addon-icuformat"
dynamic = ["version"]
readme = "README.rst"
......@@ -3,10 +2,10 @@
name = "odoo-addon-icuformat"
dynamic = ["version"]
readme = "README.rst"
requires-python = "~=3.10.0"
requires-python = "~=3.10"
license = { file = "LICENSE", name = "GNU Affero General Public License v3" }
keywords = ["odoo"]
authors = [{ name = "XCG Consulting" }]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
......@@ -7,9 +6,11 @@
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.10",
"Programming Language :: Python :: 3.11",
"Framework :: Odoo",
"Framework :: Odoo :: 16.0",
"License :: OSI Approved :: GNU Affero General Public License v3"
......@@ -17,7 +18,7 @@
dependencies = ["odoo==16.0.*", "PyICU"]
[project.optional-dependencies]
doc = ["sphinx", "sphinx-odoo-autodoc"]
doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"]
test = []
[project.urls]
......@@ -21,8 +22,7 @@
test = []
[project.urls]
# TEMPLATE update these values
repository = "https://orus.io/xcg/template/icuformat"
changelog = "https://orus.io/xcg/template/icuformat/-/blob/branch/16.0/NEWS.rst"
[build-system]
......@@ -25,7 +25,20 @@
repository = "https://orus.io/xcg/template/icuformat"
changelog = "https://orus.io/xcg/template/icuformat/-/blob/branch/16.0/NEWS.rst"
[build-system]
requires = ["setuptools >=64.0.0", "wheel", "setuptools_scm[toml] >=6.2"]
build-backend = "setuptools.build_meta"
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"
]
......@@ -31,5 +44,13 @@
[tool.setuptools]
# When using this template, update this value
package-dir = { "odoo.addons.icuformat" = "." }
[tool.hatch.build.targets.wheel]
include = [
"*.csv",
"/i18n/",
"/static/",
"README.rst",
"*.xml",
"*.py",
"*.svg",
"*.png"
]
......@@ -35,4 +56,4 @@
[tool.setuptools.package-data]
"*" = ["*"]
[tool.hatch.build.targets.wheel.sources]
"" = "odoo/addons/icuformat"
......@@ -38,4 +59,5 @@
[tool.setuptools_scm]
[tool.hatch.version]
source = "vcs"
[tool.black]
......@@ -40,6 +62,7 @@
[tool.black]
target = 3.10
target-version = ["py310", "py311"]
required-version = "22"
[tool.isort]
py_version = 310
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment