commit 84c8d164e5bc51fb4ba535739e8d00adb0c4f5a3f69d3916e4946d1ec06d8c57 Author: Markéta Machová Date: Thu Jun 12 11:59:44 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-signedjson?expand=0&rev=23 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/_service b/_service new file mode 100644 index 0000000..3bed435 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + python-signedjson + + @PARENT_TAG@ + v(.*) + git://github.com/matrix-org/python-signedjson.git + git + v1.1.0 + enable + okurz@suse.com + + + xz + *.tar + + + diff --git a/python-signedjson.changes b/python-signedjson.changes new file mode 100644 index 0000000..f6879e6 --- /dev/null +++ b/python-signedjson.changes @@ -0,0 +1,75 @@ +------------------------------------------------------------------- +Thu Jun 12 11:59:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sun Jun 11 14:08:47 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Feb 21 14:19:30 UTC 2023 - Matej Cepl + +- Clean up SPEC file + +------------------------------------------------------------------- +Wed Jun 8 11:08:12 UTC 2022 - Marcus Rueckert + +- reenable testsuite + +------------------------------------------------------------------- +Tue Jun 7 16:15:18 UTC 2022 - Marcus Rueckert + +- Update to version 1.1.4 + - Bugfixes + - Fix a bug introduced in signedjson 1.1.3 where signedjson + could not be imported due to an MRO resolution error. (#22) + - Do not require importlib_metadata on Python 3.8 and above. By + @MeggyCal. (#9) + - Internal Changes + - Configure @matrix-org/synapse-core to be the code owner for + the repository. (#11) + - Use assertEqual for Python 3.11. By @hugovk. (#17) + - Run linters (flake8, mypy, black, isort). (#20) + - Mark the package as containing type hints. (#20) +- drop no-importlib-on-py38.patch: + included in update + +------------------------------------------------------------------- +Sun Aug 16 20:48:03 UTC 2020 - John Vandenberg + +- Replace nose with pytest + +------------------------------------------------------------------- +Wed Apr 15 13:50:16 UTC 2020 - Marketa Calabkova + +- Update to version 1.1.1 + * Fix incorrect typing annotation for `decode_signing_key_base64`. + * Reinstate `decode_verify_key_base64` function which was erroneously removed in 1.1.0. +- Add no-importlib-on-py38.patch to fix build on Python 3.8 + +------------------------------------------------------------------- +Thu Feb 06 11:29:56 UTC 2020 - okurz@suse.com + +- Update to version 1.1.0: + * Add type definitions to make it easier to use static type + checkers. + * Remove unused `decode_verify_key_base64` method. + + +------------------------------------------------------------------- +Tue Dec 18 23:29:30 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Tue Dec 4 12:54:19 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com + +- Initial submission + diff --git a/python-signedjson.spec b/python-signedjson.spec new file mode 100644 index 0000000..f85491c --- /dev/null +++ b/python-signedjson.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-signedjson +# +# Copyright (c) 2025 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/ +# + + +%global modname signedjson +%bcond_without python2 +%{?sle15_python_module_pythons} +Name: python-%{modname} +Version: 1.1.4 +Release: 0 +Summary: Python module to sign JSON with Ed25519 signatures +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/matrix-org/%{name} +Source0: https://files.pythonhosted.org/packages/source/s/signedjson/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-PyNaCl >= 0.3.0 +Requires: python-canonicaljson >= 1.0.0 +Requires: python-importlib-metadata +Requires: python-typing_extensions >= 3.5 +Requires: python-unpaddedbase64 >= 1.0.1 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module PyNaCl >= 0.3.0} +BuildRequires: %{python_module canonicaljson >= 1.0.0} +BuildRequires: %{python_module importlib-metadata} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing_extensions >= 3.5} +BuildRequires: %{python_module unpaddedbase64 >= 1.0.1} +# /SECTION +%if %{with python2} +BuildRequires: python2-typing >= 3.5 +%endif +%ifpython2 +Requires: python-typing >= 3.5 +%endif +%python_subpackages + +%description +Features: + +* More than one entity can sign the same object. +* Each entity can sign the object with more than one key making it easier to + rotate keys +* ED25519 can be replaced with a different algorithm. +* Unprotected data can be added to the object under the "unsigned" key. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/signedjson +%{python_sitelib}/signedjson-%{version}*-info + +%changelog diff --git a/signedjson-1.1.4.tar.gz b/signedjson-1.1.4.tar.gz new file mode 100644 index 0000000..76c6cd5 --- /dev/null +++ b/signedjson-1.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd91c56af53f169ef032c62e9c4a3292dc158866933318d0592e3462db3d6492 +size 13565