Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 5a8844e

Browse files
committed
added github signing commands to Makefile
1 parent 82b5cb7 commit 5a8844e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ docs/_build/
5252

5353
# PyBuilder
5454
target/
55+
56+
# Signing
57+
tarball/

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PANDOC = pandoc
44
PYLINT = pylint
55

66
EMAIL = "mahtin@mahtin.com"
7+
EMAIL = "martin@cloudflare.com"
78
NAME = "cloudflare"
89

910
all: README.rst CHANGELOG.md build
@@ -60,6 +61,18 @@ showtag: sdist
6061
tag: sdist
6162
@ v=`ls -r dist | head -1 | sed -e 's/cloudflare-\([0-9.]*\)\.tar.*/\1/'` ; echo "\tDIST VERSION =" $$v ; (git tag | fgrep -q "$$v") || git tag "$$v"
6263

64+
sign:
65+
v=`ls -r dist | head -1 | sed -e 's/cloudflare-\([0-9.]*\)\.tar.*/\1/'` ; echo "\tDIST VERSION =" $$v ; \
66+
v="2.6.5" ; \
67+
mkdir -p tarball ; \
68+
rm -f tarball/$$v.tar.gz.asc tarball/$$v.zip.asc ; \
69+
curl -sS -o tarball/$$v.tar.gz https://codeload.github.com/cloudflare/python-cloudflare/tar.gz/$$v ; \
70+
curl -sS -o tarball/$$v.zip https://codeload.github.com/cloudflare/python-cloudflare/zip/$$v ; \
71+
gpg --default-key ${EMAIL} --armor --detach-sign tarball/$$v.tar.gz ; \
72+
gpg --default-key ${EMAIL} --armor --detach-sign tarball/$$v.zip ; \
73+
ls -l tarball/$$v.tar.gz tarball/$$v.zip ; \
74+
ls -l tarball/$$v.tar.gz.asc tarball/$$v.zip.asc ;
75+
6376
lint:
6477
$(PYLINT) CloudFlare cli4
6578

@@ -69,4 +82,5 @@ clean:
6982
mkdir build dist
7083
$(PYTHON) setup.py -q clean
7184
rm -rf ${NAME}.egg-info
85+
rm -rf tarball
7286

0 commit comments

Comments
 (0)