From 2d569283b3b4ee22000eb395605adbfc8ec3c6a72a56d84ca3caee4c838475ce Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:51 +0000 Subject: [PATCH] Accepting request 611994 from devel:languages:python:misc Serialization based on astliteral_eval OBS-URL: https://build.opensuse.org/request/show/611994 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + LICENSE | 21 +++++++++++++++ python-serpent.changes | 12 +++++++++ python-serpent.spec | 58 ++++++++++++++++++++++++++++++++++++++++++ serpent-1.24.tar.gz | 3 +++ 6 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 python-serpent.changes create mode 100644 python-serpent.spec create mode 100644 serpent-1.24.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/LICENSE b/LICENSE new file mode 100644 index 0000000..e824615 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) by Irmen de Jong + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-serpent.changes b/python-serpent.changes new file mode 100644 index 0000000..ce5155d --- /dev/null +++ b/python-serpent.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +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..5b821a1 --- /dev/null +++ b/python-serpent.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-serpent +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-serpent +Version: 1.24 +Release: 0 +License: MIT +Summary: Serialization based on astliteral_eval +Url: https://github.com/irmen/Serpent +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz +Source10: https://raw.githubusercontent.com/irmen/Serpent/%{version}/LICENSE +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch + +%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} +cp %{SOURCE10} . + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/serpent-1.24.tar.gz b/serpent-1.24.tar.gz new file mode 100644 index 0000000..f7a2c94 --- /dev/null +++ b/serpent-1.24.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6855483d95a03b6aee358363684cd38a3a670240da5bc6da4253079cb07b8df +size 10821