Skip to content

Commit 4cd0d65

Browse files
petercorkeclaude
andcommitted
Remove obsolete twine-upload Makefile target
make pypi (build + twine upload + tag + push) is superseded by .github/workflows/publish.yml's trusted-publish-on-release flow. Updated the help text accordingly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent e7961e1 commit 4cd0d65

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ help:
99
@echo " make docs - build Sphinx documentation"
1010
@echo " make docupdate - upload Sphinx documentation to GitHub pages"
1111
@echo " make dist - build dist files"
12-
@echo " make upload - upload to PyPI"
1312
@echo " make clean - remove dist and docs build files"
13+
@echo " (PyPI publish is via GitHub Releases, see .github/workflows/publish.yml)"
1414
@echo " make help - this message$(BLACK)"
1515

1616
test:
@@ -34,17 +34,6 @@ dist: .FORCE
3434
#$(MAKE) test
3535
python -m build
3636

37-
pypi: .FORCE
38-
validate-pyproject pyproject.toml
39-
@if ! git diff --quiet || ! git diff --cached --quiet; then \
40-
echo "Error: uncommitted changes present, aborting upload"; exit 1; \
41-
fi
42-
$(eval VERSION := $(shell grep '^version' pyproject.toml | sed 's/version = "\(.*\)"/\1/'))
43-
python -m build
44-
twine upload dist/*
45-
git tag v$(VERSION)
46-
git push origin v$(VERSION)
47-
4837
clean: .FORCE
4938
(cd docs; make clean)
5039
-rm -r *.egg-info

0 commit comments

Comments
 (0)