commit f4f4467f0d3dcacea33817377744549b91bae806944ccc920015629bb5b0bc84 Author: Tomáš Chvátal Date: Mon Dec 2 09:22:22 2019 +0000 Accepting request 752835 from home:mnhauke Initial package for python-jsonxs OBS-URL: https://build.opensuse.org/request/show/752835 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonxs?expand=0&rev=1 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/jsonxs-0.6.tar.gz b/jsonxs-0.6.tar.gz new file mode 100644 index 0000000..15c54af --- /dev/null +++ b/jsonxs-0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf36f451d1bac2839d67d5fb386911c2844debbafdb120c64471dd5312eafcfe +size 3572 diff --git a/python-jsonxs.changes b/python-jsonxs.changes new file mode 100644 index 0000000..67f9779 --- /dev/null +++ b/python-jsonxs.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Nov 24 17:32:52 UTC 2019 - mardnh@gmx.de + +- Initial package, version 0.6 diff --git a/python-jsonxs.spec b/python-jsonxs.spec new file mode 100644 index 0000000..29eddbd --- /dev/null +++ b/python-jsonxs.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-jsonxs +# +# Copyright (c) 2019 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-jsonxs +Version: 0.6 +Release: 0 +License: MIT +Summary: Get/set values in JSON and Python datastructures +Url: https://github.com/fboender/jsonxs +Group: Development/Languages/Python +#Git-Clone: https://github.com/fboender/jsonxs.git +Source: https://github.com/fboender/jsonxs/archive/v%{version}.tar.gz#/jsonxs-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildArch: noarch +%python_subpackages + +%description +JSONxs is a Python library that uses a path expression string to get and +set values in JSON and Python datastructures. It's slightly similar to +JSONPath, but supports only simpler expressions and allows +modifications. +JSONxs is safe to use with untrusted input. + +%prep +%setup -q -n jsonxs-%{version} +sed -i -e '/^#!\//, 1d' jsonxs/jsonxs.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec jsonxs/jsonxs.py -v + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog