Skip to content

Commit

Permalink
Change Pypi publish script to use API token
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Nov 26, 2023
1 parent 8c95d3c commit 498c5fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ release_py: pre
.PHONY: publish_py
publish_py: test_py
docker pull quay.io/pypa/manylinux2014_x86_64
docker run -it --rm -v $(shell pwd):/raptorq-ro:ro quay.io/pypa/manylinux2014_x86_64 /raptorq-ro/py_publish.sh
@MATURIN_PYPI_TOKEN=$(shell cat ~/.pypi/raptorq_token) docker run -it --rm -e "MATURIN_PYPI_TOKEN" -v $(shell pwd):/raptorq-ro:ro quay.io/pypa/manylinux2014_x86_64 /raptorq-ro/py_publish.sh

.PHONY: install_py
install_py: pre
Expand Down
2 changes: 1 addition & 1 deletion py_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ source /tmp/venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install 'maturin>=1.0,<2.0'

python3 -m maturin publish
python3 -m maturin publish --username __token__

0 comments on commit 498c5fb

Please sign in to comment.