From 9dae1f96a16a2cf7e1932cc77d6cf486eebfaf88f40c8353f0c11b08e5c63a3e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 11 Nov 2024 21:06:27 +0000 Subject: [PATCH] - update to 0.9: * This release mainly deals with packaging simplifications: two dependencies ("six" and "hkdf") are removed. * The "cryptography" library takes the place of "hkdf" for key derivation. * There is no longer a vendored version of "six" (nor internal use of it, thanks a-dieste). * The "versioneer" library is updated to 0.29. - drop support-python-312.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spake2?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-spake2.changes | 36 ++++++++++++++++++++++++ python-spake2.spec | 60 ++++++++++++++++++++++++++++++++++++++++ spake2-0.8.tar.gz | 3 ++ spake2-0.9.tar.gz | 3 ++ support-python-312.patch | 25 +++++++++++++++++ 7 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-spake2.changes create mode 100644 python-spake2.spec create mode 100644 spake2-0.8.tar.gz create mode 100644 spake2-0.9.tar.gz create mode 100644 support-python-312.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-spake2.changes b/python-spake2.changes new file mode 100644 index 0000000..df3559b --- /dev/null +++ b/python-spake2.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Mon Nov 11 21:05:45 UTC 2024 - Dirk Müller + +- update to 0.9: + * This release mainly deals with packaging simplifications: two + dependencies ("six" and "hkdf") are removed. + * The "cryptography" library takes the place of "hkdf" for key + derivation. + * There is no longer a vendored version of "six" (nor internal + use of it, thanks a-dieste). + * The "versioneer" library is updated to 0.29. +- drop support-python-312.patch (upstream) + +------------------------------------------------------------------- +Tue Feb 20 01:20:49 UTC 2024 - Steve Kowalik + +- Add patch support-python-312.patch: + * Support Python 3.12 changes. +- Switch to pyproject and autosetup macros. + +------------------------------------------------------------------- +Tue Sep 19 11:12:39 UTC 2023 - Ondřej Súkup + +- Fix missing dep on hkdf +- enable tests + +------------------------------------------------------------------- +Tue Dec 4 12:54:31 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Mar 2 22:01:11 UTC 2018 - avvissu@yandex.by + +- Initial package + diff --git a/python-spake2.spec b/python-spake2.spec new file mode 100644 index 0000000..176acb5 --- /dev/null +++ b/python-spake2.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-spake2 +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-spake2 +Version: 0.9 +Release: 0 +Summary: Pure-Python SPAKE2 +License: MIT +URL: http://github.com/warner/python-spake2 +Source: https://files.pythonhosted.org/packages/source/s/spake2/spake2-%{version}.tar.gz +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module hkdf} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-cryptography +Requires: python-hkdf +BuildArch: noarch +%python_subpackages + +%description +SPAKE2 password-authenticated key exchange. + +%prep +%autosetup -p1 -n spake2-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%{python_sitelib}/spake2 +%{python_sitelib}/spake2-%{version}.dist-info + +%changelog diff --git a/spake2-0.8.tar.gz b/spake2-0.8.tar.gz new file mode 100644 index 0000000..ca235cd --- /dev/null +++ b/spake2-0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4 +size 58088 diff --git a/spake2-0.9.tar.gz b/spake2-0.9.tar.gz new file mode 100644 index 0000000..3047618 --- /dev/null +++ b/spake2-0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:421fc4a8d5ac395af7af0206ffd9e6cdf188c105cb1b883d9d683312bb5a9334 +size 55092 diff --git a/support-python-312.patch b/support-python-312.patch new file mode 100644 index 0000000..b63c602 --- /dev/null +++ b/support-python-312.patch @@ -0,0 +1,25 @@ +From 1b04d33106b105207c97c64b2589c45790720b0b Mon Sep 17 00:00:00 2001 +From: Thomas Klausner +Date: Wed, 25 Oct 2023 12:32:02 +0200 +Subject: [PATCH] Fix build with Python 3.12. + +--- + versioneer.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/versioneer.py b/versioneer.py +index 64fea1c..3aa5da3 100644 +--- a/versioneer.py ++++ b/versioneer.py +@@ -339,9 +339,9 @@ def get_config_from_root(root): + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + setup_cfg = os.path.join(root, "setup.cfg") +- parser = configparser.SafeConfigParser() ++ parser = configparser.ConfigParser() + with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser.read_file(f) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name):