Skip to content

Commit

Permalink
Updated publish and binary targets
Browse files Browse the repository at this point in the history
- Updated pushing to git in `publish`, previously the master branch
  wasn't being updated
- Updated pex command for creating Python 3 only binaries
  • Loading branch information
jake authored and jake committed Mar 22, 2022
1 parent fa60833 commit 361a310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test:

publish:
git tag -a v$(VERSION) -m 'version $(VERSION)'
git push --tags
git push --tags origin master
python setup.py sdist bdist_wheel
twine upload --repository-url https://upload.pypi.org/legacy/ --repository testpypi dist/internetarchive-$(VERSION).tar.gz

Expand All @@ -30,7 +30,7 @@ docs:
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/build/html/index.html.\n\033[0m"

binary:
pex . --python-shebang='/usr/bin/env python' --python python3 -e internetarchive.cli.ia:main -o ia-$(VERSION)-py3-none-any.pex -r pex-requirements.txt
pex . --python-shebang='/usr/bin/env python3' --python python3 -e internetarchive.cli.ia:main -o ia-$(VERSION)-py3-none-any.pex -r pex-requirements.txt

publish-binary:
./ia-$(VERSION)-py3-none-any.pex upload ia-pex ia-$(VERSION)-py3-none-any.pex --no-derive
Expand Down

0 comments on commit 361a310

Please sign in to comment.