Skip to content

Commit cf965ab

Browse files
author
Luke Bakken
committed
Allow setting PYPI_REPOSITORY for testing purposes
1 parent d3b43e6 commit cf965ab

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Makefile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ PROJDIR = $(realpath $(CURDIR))
1919
TOOLS_DIR = $(PROJDIR)/tools/devrel
2020
CA_DIR = $(PROJDIR)/tools/test-ca
2121

22+
PYPI_REPOSITORY ?= pypi
23+
2224
.PHONY: lint
2325
lint:
2426
./.runner lint
@@ -58,25 +60,25 @@ endif
5860
@python -c 'import pypandoc'
5961
@echo "==> Python tagging version $(VERSION)"
6062
@./build/publish $(VERSION) validate
61-
@git tag --sign -a "$(VERSION)" -m "riak-python-client $(VERSION)" --local-user "$(RELEASE_GPG_KEYNAME)"
62-
@git push --tags
63-
@echo "==> Python (sdist release)"
64-
@python setup.py sdist upload --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
63+
@echo "==> pypi repository: $(PYPI_REPOSITORY)"
64+
@echo "==> Python (sdist)"
65+
@python setup.py sdist upload --repository $(PYPI_REPOSITORY) --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
6566
@./build/publish $(VERSION)
6667

6768
.PHONY: release
6869
release: release_sdist
6970
ifeq ($(RELEASE_GPG_KEYNAME),)
7071
$(error RELEASE_GPG_KEYNAME must be set to build a release and deploy this package)
7172
endif
72-
@echo "==> Python 2.7 (release)"
73-
@python2.7 setup.py build --build-base=py-build/2.7 bdist_egg upload --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
74-
@echo "==> Python 3.3 (release)"
75-
@python3.3 setup.py build --build-base=py-build/3.3 bdist_egg upload --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
76-
@echo "==> Python 3.4 (release)"
77-
@python3.4 setup.py build --build-base=py-build/3.4 bdist_egg upload --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
78-
@echo "==> Python 3.5 (release)"
79-
@python3.5 setup.py build --build-base=py-build/3.5 bdist_egg upload --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
73+
@echo "==> pypi repository: $(PYPI_REPOSITORY)"
74+
@echo "==> Python 2.7 (bdist_egg)"
75+
@python2.7 setup.py build --build-base=py-build/2.7 bdist_egg upload --repository $(PYPI_REPOSITORY) --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
76+
@echo "==> Python 3.3 (bdist_egg)"
77+
@python3.3 setup.py build --build-base=py-build/3.3 bdist_egg upload --repository $(PYPI_REPOSITORY) --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
78+
@echo "==> Python 3.4 (bdist_egg)"
79+
@python3.4 setup.py build --build-base=py-build/3.4 bdist_egg upload --repository $(PYPI_REPOSITORY) --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
80+
@echo "==> Python 3.5 (bdist_egg)"
81+
@python3.5 setup.py build --build-base=py-build/3.5 bdist_egg upload --repository $(PYPI_REPOSITORY) --show-response --sign --identity $(RELEASE_GPG_KEYNAME)
8082

8183
.PHONY: unit-test
8284
unit-test:

0 commit comments

Comments
 (0)