Browse Source

use build module with both sdist and wheel packages

pull/786/head
Ross McFarland 4 years ago
parent
commit
47f94cc50e
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
2 changed files with 4 additions and 3 deletions
  1. +1
    -0
      requirements-dev.txt
  2. +3
    -3
      script/release

+ 1
- 0
requirements-dev.txt View File

@ -1,3 +1,4 @@
build==0.7.0
coverage
mock
nose


+ 3
- 3
script/release View File

@ -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"

Loading…
Cancel
Save