Skip to content

Commit 65f72fa

Browse files
committed
Merge pull request #431 from basho/fixes/lrb/gh-429-restore-sdist-release
Add target to release a source distribution to pypi
2 parents c4c17da + f1228a7 commit 65f72fa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ pb_compile: pb_clean
1111
@protoc -Iriak_pb/src --python_out=riak/pb riak_pb/src/*.proto
1212
@python setup.py build_messages
1313

14-
release:
14+
release_sdist:
15+
ifeq ($(RELEASE_GPG_KEYNAME),)
16+
$(error RELEASE_GPG_KEYNAME must be set to build a release and deploy this package)
17+
else
18+
@echo "==> Python (sdist release)"
19+
@python setup.py sdist upload -s -i $(RELEASE_GPG_KEYNAME)
20+
endif
21+
22+
release: release_sdist
1523
ifeq ($(RELEASE_GPG_KEYNAME),)
1624
$(error RELEASE_GPG_KEYNAME must be set to build a release and deploy this package)
1725
else

0 commit comments

Comments
 (0)