From 47f94cc50e307f965610d62b50509920ca603353 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 28 Sep 2021 17:42:09 -0700 Subject: [PATCH] use build module with both sdist and wheel packages --- requirements-dev.txt | 1 + script/release | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 83c5c5f..59041bb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ +build==0.7.0 coverage mock nose diff --git a/script/release b/script/release index f2c90bf..975aac2 100755 --- a/script/release +++ b/script/release @@ -21,7 +21,7 @@ VERSION="$(grep __VERSION__ "$ROOT/octodns/__init__.py" | sed -e "s/.* = '//" -e git tag -s "v$VERSION" -m "Release $VERSION" git push origin "v$VERSION" echo "Tagged and pushed v$VERSION" -python setup.py sdist -twine check dist/*$VERSION.tar.gz -twine upload dist/*$VERSION.tar.gz +python -m build --sdist --wheel +twine check dist/*$VERSION.tar.gz dist/*$VERSION*.whl +twine upload dist/*$VERSION.tar.gz dist/*$VERSION*.whl echo "Uploaded $VERSION"