@@ -19,6 +19,8 @@ PROJDIR = $(realpath $(CURDIR))
19
19
TOOLS_DIR = $(PROJDIR ) /tools/devrel
20
20
CA_DIR = $(PROJDIR ) /tools/test-ca
21
21
22
+ PYPI_REPOSITORY ?= pypi
23
+
22
24
.PHONY : lint
23
25
lint :
24
26
./.runner lint
@@ -58,25 +60,25 @@ endif
58
60
@python -c 'import pypandoc'
59
61
@echo "==> Python tagging version $(VERSION)"
60
62
@./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)
65
66
@./build/publish $(VERSION)
66
67
67
68
.PHONY : release
68
69
release : release_sdist
69
70
ifeq ($(RELEASE_GPG_KEYNAME ) ,)
70
71
$(error RELEASE_GPG_KEYNAME must be set to build a release and deploy this package)
71
72
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)
80
82
81
83
.PHONY : unit-test
82
84
unit-test :
0 commit comments