Skip to content

Commit

Permalink
Merge pull request certbot#2434 from letsencrypt/autopeep
Browse files Browse the repository at this point in the history
release.sh: autopin letsencrypt-auto autopeep autohashes
  • Loading branch information
bmw committed Feb 29, 2016
2 parents c6859a3 + 3b0a95f commit 328cea7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
11 changes: 7 additions & 4 deletions letsencrypt-auto-source/pieces/letsencrypt-auto-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ zope.event==4.1.0
# sha256: sJyMHUezUxxADgGVaX8UFKYyId5u9HhZik8UYPfZo5I
zope.interface==4.1.3

# sha256: uDndLZwRfHAUMMFJlWkYpCOphjtIsJyQ4wpgE-fS9E8
# sha256: j4MIDaoknQNsvM-4rlzG_wB7iNbZN1ITca-r57Gbrbw
mock==1.0.1

# THE LINES BELOW ARE EDITED BY THE RELEASE SCRIPT;
# ADD ALL DEPENDENCIES ABOVE

# sha256: ilvjjTWOS86xchl0WBZ0YOAw_0rmqdnjNsxb1hq2RD8
# sha256: T37KMj0TnsuvHIzCCmoww2fpfpOBTj7cd4NAqucXcpw
acme==0.4.0
Expand All @@ -208,7 +215,3 @@ letsencrypt==0.4.0
# sha256: D3YDaVFjLsMSEfjI5B5D5tn5FeWUtNHYXCObw3ih2tg
# sha256: VTgvsePYGRmI4IOSAnxoYFHd8KciD73bxIuIHtbVFd8
letsencrypt-apache==0.4.0

# sha256: uDndLZwRfHAUMMFJlWkYpCOphjtIsJyQ4wpgE-fS9E8
# sha256: j4MIDaoknQNsvM-4rlzG_wB7iNbZN1ITca-r57Gbrbw
mock==1.0.1
17 changes: 17 additions & 0 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,23 @@ for module in letsencrypt $subpkgs_modules ; do
done
deactivate

# pin peep hashes of the things we just built
for pkg in acme letsencrypt letsencrypt-apache ; do
echo
letsencrypt-auto-source/pieces/peep.py hash dist."$version/$pkg"/*.{whl,gz}
echo $pkg==$version
done > /tmp/hashes.$$

if ! wc -l /tmp/hashes.$$ | grep -qE "^\s*12 " ; then
echo Unexpected peep hash output
exit 1
fi

# perform hideous surgery on requirements.txt...
head -n -12 letsencrypt-auto-source/pieces/letsencrypt-auto-requirements.txt > /tmp/req.$$
cat /tmp/hashes.$$ >> /tmp/req.$$
cp /tmp/req.$$ letsencrypt-auto-source/pieces/letsencrypt-auto-requirements.txt

# ensure we have the latest built version of leauto
letsencrypt-auto-source/build.py

Expand Down

0 comments on commit 328cea7

Please sign in to comment.