From abf146494b40d0f03f86d1dfff2c154da692d74df8d888f99350d73f004d5f35 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Nov 2025 08:10:29 +0000 Subject: [PATCH] - update to serpent-1.42: * added test-requirements.txt - Update to version 1.41 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=23 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-serpent.changes | 69 ++++++++++++++++++++++++++++++++++++++++++ python-serpent.spec | 66 ++++++++++++++++++++++++++++++++++++++++ serpent-1.41.tar.gz | 3 ++ serpent-1.42.tar.gz | 3 ++ 6 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-serpent.changes create mode 100644 python-serpent.spec create mode 100644 serpent-1.41.tar.gz create mode 100644 serpent-1.42.tar.gz 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-serpent.changes b/python-serpent.changes new file mode 100644 index 0000000..3d57358 --- /dev/null +++ b/python-serpent.changes @@ -0,0 +1,69 @@ +------------------------------------------------------------------- +Mon Nov 10 08:10:19 UTC 2025 - Dirk Müller + +- update to serpent-1.42: + * added test-requirements.txt + +------------------------------------------------------------------- +Thu Jun 12 10:46:13 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sun Jun 11 13:53:35 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Oct 7 15:25:30 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.41 + * support for python up to 3.11 added (__getstate__ behavior change) + * replaced travis CI by Github actions + * drop python 3.5 support + +------------------------------------------------------------------- +Wed Mar 18 13:31:41 UTC 2020 - pgajdos@suse.com + +- version update to 1.30.2 + * upstream does not support python 2 anymore + * no changelog found + +------------------------------------------------------------------- +Sat Mar 14 07:12:14 UTC 2020 - Tomáš Chvátal + +- Fix building without python2 + +------------------------------------------------------------------- +Tue Apr 2 06:58:58 UTC 2019 - pgajdos@suse.com + +- version update to 1.28 + * the souce dist archive now contains the unit tests as well +- run the testsuite + +------------------------------------------------------------------- +Wed Mar 6 09:33:03 UTC 2019 - Tomáš Chvátal + +- Update to 1.27: + * fixed serialization of unicode elements in dicts and sets (this was a regression on Python 2.x) + * support for enum34 backport library for enums in older python versions. + * Some small tweaks and attempt to fix an inconsistently running unit test + * LICENSE file included in release. + +------------------------------------------------------------------- +Tue Dec 4 12:54:10 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu May 24 17:44:22 UTC 2018 - toddrme2178@gmail.com + +- Update to 1.24 + * fix Python 3.7 deprecation warnings about + importing ABC types from collections vs collections.abc +- spec file cleanups + +------------------------------------------------------------------- +Wed Nov 8 21:01:14 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-serpent.spec b/python-serpent.spec new file mode 100644 index 0000000..db9c891 --- /dev/null +++ b/python-serpent.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-serpent +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-serpent +Version: 1.42 +Release: 0 +Summary: Serialization based on astliteral_eval +License: MIT +URL: https://github.com/irmen/Serpent +Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytz} +# /SECTION +%python_subpackages + +%description +Serpent is a simple serialization library based on ast.literal_eval. + +Because it only serializes literals and recreates the objects using ast.literal_eval(), +the serialized data is safe to transport to other machines (over the network for instance) +and de-serialize it there. + +%prep +%setup -q -n serpent-%{version} + +%build +%pyproject_wheel + +%check +%pytest + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%{python_sitelib}/serpent.py +%pycache_only %{python_sitelib}/__pycache__/serpent* +%{python_sitelib}/serpent-%{version}*-info + +%changelog diff --git a/serpent-1.41.tar.gz b/serpent-1.41.tar.gz new file mode 100644 index 0000000..f607c4e --- /dev/null +++ b/serpent-1.41.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0407035fe3c6644387d48cff1467d5aa9feff814d07372b78677ed0ee3ed7095 +size 88927 diff --git a/serpent-1.42.tar.gz b/serpent-1.42.tar.gz new file mode 100644 index 0000000..93c3916 --- /dev/null +++ b/serpent-1.42.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ea082b01f8ba07ecd74e34a9118ac4521bc4594938d912b808c89f1da425506 +size 90352