From cab6c3ee9bbcace8175c0f7711e4ebf4ad91efe8 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 22 Sep 2025 14:26:00 -0700 Subject: [PATCH] Include automated tests in the source dist tarball uploaded to PyPI (#1149). --- MANIFEST.in | 8 ++++++-- NEWS | 1 + scripts/release | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index fee8b6d7..9e0147f4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,6 @@ -include borgmatic/config/schema.yaml -graft sample/systemd +# This file only applies to the source dist tarball, not the built wheel. +graft docs +graft sample +graft scripts +graft tests +global-exclude *.py[co] diff --git a/NEWS b/NEWS index e689e71c..8ffa96d6 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 2.0.9.dev0 * #1149: Add support for Python 3.14. + * #1149: Include automated tests in the source dist tarball uploaded to PyPI. 2.0.8 * #1114: Document systemd configuration changes for the ZFS filesystem hook. diff --git a/scripts/release b/scripts/release index f84681db..cedafe15 100755 --- a/scripts/release +++ b/scripts/release @@ -33,7 +33,7 @@ git push github $version # Build borgmatic and publish to pypi. rm -fr dist -python3 -m build +uv build twine upload -r pypi --username __token__ dist/borgmatic-*.tar.gz twine upload -r pypi --username __token__ dist/borgmatic-*-py3-none-any.whl