From 01f9eedb25f71a2fffeab3ccfc260cdf940c2955 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 27 Dec 2022 10:56:32 +0200 Subject: [PATCH 1/3] Replace setuptools with hatchling --- pyproject.toml | 16 ++++++---------- setup.py | 5 ----- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 3d7347e..a7196d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] -build-backend = "setuptools.build_meta" +build-backend = "hatchling.build" requires = [ - "setuptools>=61.2", - "setuptools_scm[toml]>=6.2", + "hatch-vcs", + "hatchling", ] [project] @@ -62,6 +62,9 @@ target_version = ["py37"] [tool.hatch] version.source = "vcs" +[tool.hatch.version.raw-options] +local_scheme = "no-local-version" + [tool.isort] profile = "black" @@ -70,10 +73,3 @@ convention = "google" [tool.pytest.ini_options] addopts = "--color=yes" - -[tool.setuptools.packages.find] -where = ["src"] -namespaces = false - -[tool.setuptools_scm] -local_scheme = "no-local-version" diff --git a/setup.py b/setup.py deleted file mode 100644 index f0e2d5b..0000000 --- a/setup.py +++ /dev/null @@ -1,5 +0,0 @@ -from setuptools import setup - -setup( - setup_requires=["setuptools_scm"], -) From 0792c1572df75c8e4a496d20213782aaf69f61c6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 30 Dec 2022 19:59:17 +0200 Subject: [PATCH 2/3] Include .mo files --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a7196d4..47a8eff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,11 @@ target_version = ["py37"] [tool.hatch] version.source = "vcs" +[tool.hatch.build] +include = [ + "src/humanize/locale/**/*.mo", +] + [tool.hatch.version.raw-options] local_scheme = "no-local-version" From 83d4d7ab52ec3ec91983a9ecba2b55bccb26b966 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 15 Jan 2023 13:56:41 +0200 Subject: [PATCH 3/3] Include translations as artifacts --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 47a8eff..9534d32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,8 +63,8 @@ target_version = ["py37"] version.source = "vcs" [tool.hatch.build] -include = [ - "src/humanize/locale/**/*.mo", +artifacts = [ + "*.mo", ] [tool.hatch.version.raw-options]