From 2938a054aa9e49840c0196e5457ce10a5cf98000 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Mon, 20 Feb 2023 14:08:26 -0800 Subject: [PATCH 1/3] ship test data with sdist --- .gitignore | 1 + pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bb8d9e2b57..7a51026aaa 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ sourmash.egg-info *.so .coverage .pytest_cache +**/*.pyc .python-version src/sourmash/version.py *.DS_Store diff --git a/pyproject.toml b/pyproject.toml index e196af7be7..4ff64ca392 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,9 +137,12 @@ include = [ { path = "include/sourmash.h", format = ["sdist","wheel"] }, { path = "requirements.txt", format = ["sdist"] }, { path = "Cargo.*", format = ["sdist"] }, - { path = "tests/*.py", format = ["sdist"] }, + { path = "tests/**/*", format = ["sdist"] }, { path = "CITATION.cff", format = ["sdist", "wheel"] }, ] +exclude = [ + { path = "**/__pycache__/*", format = ["sdist", "wheel"] }, +] features = ["maturin"] locked = true From aeba6cea6c278de95c95a254fdaf51ebc67a7550 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Mon, 20 Feb 2023 14:09:52 -0800 Subject: [PATCH 2/3] remove copy step from release docs --- doc/release.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/release.md b/doc/release.md index 467d97eb99..d5f6215161 100644 --- a/doc/release.md +++ b/doc/release.md @@ -164,7 +164,6 @@ python -m pip install sourmash*tar.gz tar xzf sourmash-${new_version}.tar.gz cd sourmash-${new_version} python -m pip install -r requirements.txt -cp -a ../../sourmash/tests/test-data tests/ ## We don't ship the test data, so let's copy it here pytest && cargo test ``` From e0e22ddd361feace9f4f5c5409b91b402c136c0f Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Sat, 4 Mar 2023 17:35:31 -0800 Subject: [PATCH 3/3] add license file to sdist --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4ff64ca392..dc04e815f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,6 +139,7 @@ include = [ { path = "Cargo.*", format = ["sdist"] }, { path = "tests/**/*", format = ["sdist"] }, { path = "CITATION.cff", format = ["sdist", "wheel"] }, + { path = "LICENSE", format = ["sdist"] }, ] exclude = [ { path = "**/__pycache__/*", format = ["sdist", "wheel"] },