From 48bb78435fd942ec006124a2d5c11e2ff1f6fd2b Mon Sep 17 00:00:00 2001 From: Yuchen Jin Date: Wed, 14 Feb 2024 09:24:52 -0600 Subject: [PATCH] 1.1.2 5. Find a way to include `tests.version` in `sdist` but exclude all `tests` codes in `wheel`. --- CHANGELOG.md | 1 + MANIFEST.in | 1 + setup.cfg | 2 +- version/__init__.py => tests/version.py | 0 4 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in rename version/__init__.py => tests/version.py (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9140c49..950f82a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ #### :wrench: Fix 1. Fix: Remove an unexpected in-release package `version` which should only appear during the package building. +2. Find a way to include `tests.version` in `sdist` but exclude all `tests` codes in `wheel`. #### :floppy_disk: Change diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..16b52e4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include tests/*.py diff --git a/setup.cfg b/setup.cfg index b896725..701892a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = syncstream -version = attr: version.__version__ +version = attr: tests.version.__version__ description = A python tool for synchronize the messages from different threads, processes or hosts. long_description = file: README.md long_description_content_type = text/markdown diff --git a/version/__init__.py b/tests/version.py similarity index 100% rename from version/__init__.py rename to tests/version.py