Skip to content

Commit cb4a962

Browse files
committed
chore: publish wheels in addition to sdist
1 parent 6de9a5b commit cb4a962

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ docs:
3838
.PHONY: build-test
3939
build-test:
4040
rm -rf venv
41+
uvx --from build pyproject-build
4142
python3 -m venv venv
4243
. venv/bin/activate
43-
python3 setup.py sdist
44-
pip install ./dist/juju-${VERSION}.tar.gz
44+
pip install dist/juju-${VERSION}.tar.gz
4545
python3 -c "from juju.controller import Controller"
46-
rm ./dist/juju-${VERSION}.tar.gz
46+
rm dist/juju-${VERSION}.tar.gz dist/juju-${VERSION}-*.whl
4747

4848
.PHONY: release
4949
release:
5050
git fetch --tags
51-
rm dist/*.tar.gz || true
52-
$(PY) setup.py sdist
53-
$(BIN)/twine check dist/*
54-
$(BIN)/twine upload --repository juju dist/*
51+
rm dist/*.tar.gz dist/*.whl || true
52+
uvx --from build pyproject-build
53+
uvx twine check dist/*
54+
uvx twine upload --repository juju dist/*
5555
git tag ${VERSION}
5656
git push --tags
5757

0 commit comments

Comments
 (0)