Skip to content

Commit a13d32d

Browse files
authored
Merge pull request #22 from warner/cleanup-release
Release v0.9, and some associated tooling work
2 parents da68efa + 6c290b2 commit a13d32d

File tree

5 files changed

+68
-11
lines changed

5 files changed

+68
-11
lines changed

Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# How to Make a Release
2+
# ---------------------
3+
#
4+
# This file answers the question "how to make a release" hopefully
5+
# better than a document does (only meejah and warner may currently do
6+
# the "upload to PyPI" part anyway)
7+
#
8+
9+
default:
10+
echo "see Makefile"
11+
echo "Make a new tag, then 'make release'"
12+
echo "git tag
13+
14+
release:
15+
@echo "Is checkout clean?"
16+
git diff-files --quiet
17+
git diff-index --quiet --cached HEAD --
18+
19+
@echo "Install required build software"
20+
python3 -m pip install docutils
21+
22+
@echo "Test README"
23+
python3 setup.py check -s
24+
25+
@echo "Is GPG Agent running, and has key?"
26+
gpg --pinentry=loopback -u [email protected] --armor --clear-sign NEWS
27+
28+
@echo "Build and sign wheel"
29+
python3 setup.py bdist_wheel
30+
gpg --pinentry=loopback -u [email protected] --armor --detach-sign dist/spake2-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl
31+
ls dist/*`git describe --abbrev=0 | tail -c +2`*
32+
33+
@echo "Build and sign source-dist"
34+
python3 setup.py sdist
35+
gpg --pinentry=loopback -u [email protected] --armor --detach-sign dist/spake2-`git describe --abbrev=0 | tail -c +2`.tar.gz
36+
ls dist/*`git describe --abbrev=0 | tail -c +2`*
37+
38+
release-test:
39+
gpg --verify dist/spake2-`git describe --abbrev=0 | tail -c +2`.tar.gz.asc
40+
gpg --verify dist/spake2-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl.asc
41+
python -m venv test_spake2_venv
42+
test_spake2_venv/bin/pip install --upgrade pip
43+
test_spake2_venv/bin/pip install dist/spake2-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl
44+
test_spake2_venv/bin/python -c "import spake2"
45+
test_spake2_venv/bin/pip uninstall -y spake2
46+
test_spake2_venv/bin/pip install dist/spake2-`git describe --abbrev=0 | tail -c +2`.tar.gz
47+
test_spake2_venv/bin/python -c "import spake2"
48+
rm -rf test_spake2_venv
49+
50+
release-upload:
51+
twine upload --username __token__ --password `cat PRIVATE-release-token` dist/spake2-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl dist/spake2-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl.asc dist/spake2-`git describe --abbrev=0 | tail -c +2`.tar.gz dist/spake2-`git describe --abbrev=0 | tail -c +2`.tar.gz.asc
52+
mv dist/*-`git describe --abbrev=0 | tail -c +2`.tar.gz.asc signatures/
53+
mv dist/*-`git describe --abbrev=0 | tail -c +2`-py3-none-any.whl.asc signatures/
54+
git push origin-push `git describe --abbrev=0 | tail -c +2`

NEWS

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ User-Visible Changes in python-spake2
33

44
* Upcoming Release
55

6-
python-spake2 now depends on the "cryptography" library instead of
7-
"hkdf" for key-derivation.
6+
(Put notes about merged features here).
7+
8+
9+
* Release 0.9 (24-Sep-2024)
10+
11+
This release mainly deals with packaging simplifications: two dependencies ("six" and "hkdf") are removed.
12+
The "cryptography" library takes the place of "hkdf" for key derivation.
13+
14+
There is no longer a vendored version of "six" (nor internal use of it, thanks a-dieste).
15+
16+
The "versioneer" library is updated to 0.29.
17+
818

919
* Release 0.8 (14-Feb-2018)
1020

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Pure-Python SPAKE2
33

44
* License: MIT
5-
* Dependencies: hkdf
5+
* Dependencies: "cryptography" (for hkdf)
66
* Compatible With: Python 3.9, 3.10, 3.11, 3.12, PyPy3
77
* [![Build Status](https://travis-ci.org/warner/python-spake2.png?branch=master)](https://travis-ci.org/warner/python-spake2) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/j2q57qee3xwbqp5l/branch/master?svg=true)](https://ci.appveyor.com/project/warner/python-spake2) [![Coverage Status](https://coveralls.io/repos/warner/python-spake2/badge.svg)](https://coveralls.io/r/warner/python-spake2)
88

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[wheel]
2-
universal = 1
3-
41
# See the docstring in versioneer.py for instructions. Note that you must
52
# re-run 'versioneer.py setup' after changing this section, and commit the
63
# resulting files.

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ def abbrev(t):
7171
"Intended Audience :: Developers",
7272
"License :: OSI Approved :: MIT License",
7373
"Programming Language :: Python",
74-
"Programming Language :: Python :: 2.7",
75-
"Programming Language :: Python :: 3.3",
76-
"Programming Language :: Python :: 3.4",
77-
"Programming Language :: Python :: 3.5",
78-
"Programming Language :: Python :: 3.6",
74+
"Programming Language :: Python :: 3",
7975
"Topic :: Security :: Cryptography",
8076
],
8177
install_requires=["cryptography"],

0 commit comments

Comments
 (0)