From c01beb74030e603df2e6c54aa970f838ba8a8474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Wed, 29 Oct 2025 12:07:41 -0400 Subject: [PATCH 1/3] [GEOPY-2547] make sure to keep _version.py in packaging --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 9791643..4cfa088 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,7 @@ include = [ { path = "README.rst" }, { path = "THIRD_PARTY_SOFTWARE.rst" }, { path = "docs/**/THIRD_PARTY_SOFTWARE.rst" }, + { path = "omf/_version.py", format = ["sdist", "wheel"] }, ] version = "0.0.0.dev0" From 9487a0edf91c8cab99889049921cac0a5203022b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Wed, 29 Oct 2025 12:09:16 -0400 Subject: [PATCH 2/3] [GEOPY-2547] no need to explicitly include README.rst: already captured as project readme file --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4cfa088..7bc6667 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,6 @@ include = [ { path = "COPYING" }, { path = "COPYING.LESSER" }, { path = "LICENSE" }, - { path = "README.rst" }, { path = "THIRD_PARTY_SOFTWARE.rst" }, { path = "docs/**/THIRD_PARTY_SOFTWARE.rst" }, { path = "omf/_version.py", format = ["sdist", "wheel"] }, From 83af625f1d988b7c46df2a7ab600789b47c96b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Wed, 29 Oct 2025 12:09:44 -0400 Subject: [PATCH 3/3] [GEOPY-2547] use project.license-files to publish license files and related then poetry.include is not needed for those --- pyproject.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7bc6667..d17a7ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,10 @@ name = "mira-omf" requires-python = ">=3.10,<4.0" description = "API Library for Open Mining Format" license = "MIT" +license-files = [ + "LICENSE", + "THIRD_PARTY_SOFTWARE.rst", +] keywords = ["geology", "geophysics", "earth sciences"] readme = "README.rst" dynamic = ["version", "dependencies", "classifiers"] @@ -55,11 +59,6 @@ packages = [ ] include = [ - { path = "COPYING" }, - { path = "COPYING.LESSER" }, - { path = "LICENSE" }, - { path = "THIRD_PARTY_SOFTWARE.rst" }, - { path = "docs/**/THIRD_PARTY_SOFTWARE.rst" }, { path = "omf/_version.py", format = ["sdist", "wheel"] }, ] version = "0.0.0.dev0"