Skip to content

Commit bc700d4

Browse files
authored
Merge pull request #7 from oslokommune/make-publish
Add Makefile publish rule
2 parents 27f7e00 + e49845f commit bc700d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ upgrade-deps: $(BUILD_VENV)/bin/pip-compile
4444
build: $(BUILD_VENV)/bin/wheel $(BUILD_VENV)/bin/twine
4545
$(BUILD_PY) setup.py sdist bdist_wheel
4646

47+
.PHONY: publish
48+
publish:
49+
username=$$(gopass show dataplatform/websites/pypi.org/origo-dataplatform username) &&\
50+
password=$$(gopass show --password dataplatform/websites/pypi.org/origo-dataplatform) &&\
51+
python -m twine upload -u $$username -p $$password dist/*
52+
4753
###
4854
# Python build dependencies
4955
##

0 commit comments

Comments
 (0)