# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1706609638 -3600 # Tue Jan 30 11:13:58 2024 +0100 # Branch 16.0 # Node ID bcbd8542b1d4a3f6d155b20611f05be80e79b925 # Parent 84f1eaf4d83aa8abf82ad6e9f56df893a4aecfc0 🚑 Loosen up python version Build with hatchling diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -1,10 +1,15 @@ Changelog ========= +16.0.1.0.1 +---------- + +Loosen up python version. + 16.0.1.0.0 ---------- -* Port to 16.0 +Port to 16.0 15.0.1.0.1 ---------- diff --git a/__manifest__.py b/__manifest__.py --- a/__manifest__.py +++ b/__manifest__.py @@ -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/", diff --git a/pyproject.toml b/pyproject.toml --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,16 @@ [project] -# TEMPLATE update this value 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", + "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,29 +18,51 @@ dependencies = ["odoo==16.0.*", "PyICU"] [project.optional-dependencies] -doc = ["sphinx", "sphinx-odoo-autodoc"] +doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"] 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] -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" +] -[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" +] -[tool.setuptools.package-data] -"*" = ["*"] +[tool.hatch.build.targets.wheel.sources] +"" = "odoo/addons/icuformat" -[tool.setuptools_scm] +[tool.hatch.version] +source = "vcs" [tool.black] -target = 3.10 +target-version = ["py310", "py311"] +required-version = "22" [tool.isort] py_version = 310