summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 12:38:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 12:38:46 +0000
commit9bf17aa9f67e0248701c64d40ceae0c6b1542b5a (patch)
treee0a89f05cc864216e5dfd9f0d42b1de9861c18eb
parent70aa7f32dc7aba91def22aa3d5f6bd6fff86cd03 (diff)
automatic import of python-rjmespath
-rw-r--r--.gitignore1
-rw-r--r--python-rjmespath.spec215
-rw-r--r--sources1
3 files changed, 217 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..51361f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rjmespath-0.2.6.tar.gz
diff --git a/python-rjmespath.spec b/python-rjmespath.spec
new file mode 100644
index 0000000..c7167fa
--- /dev/null
+++ b/python-rjmespath.spec
@@ -0,0 +1,215 @@
+%global _empty_manifest_terminate_build 0
+Name: python-rjmespath
+Version: 0.2.6
+Release: 1
+Summary: jmespath.rs Python binding
+License: MIT
+URL: https://pypi.org/project/rjmespath/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/df/59d7f14dc61800bfeaf6661474f45d47a2f3de804970f015cad838cd2800/rjmespath-0.2.6.tar.gz
+
+
+%description
+# rjmespath-py
+
+![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg)
+[![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath)
+
+[jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding.
+
+## Installation
+
+```bash
+pip install rjmespath
+```
+
+## Usage
+
+```python
+import rjmespath
+
+print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}'))
+```
+
+## Performance
+
+Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM)
+
+```python
+In [1]: import jmespath
+
+In [2]: import rjmespath
+
+In [3]: %timeit jmespath.compile('foo')
+436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [4]: %timeit rjmespath.compile('foo')
+354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}})
+2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
+
+In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')
+1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+```
+
+## License
+
+This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
+
+
+
+%package -n python3-rjmespath
+Summary: jmespath.rs Python binding
+Provides: python-rjmespath
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-rjmespath
+# rjmespath-py
+
+![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg)
+[![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath)
+
+[jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding.
+
+## Installation
+
+```bash
+pip install rjmespath
+```
+
+## Usage
+
+```python
+import rjmespath
+
+print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}'))
+```
+
+## Performance
+
+Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM)
+
+```python
+In [1]: import jmespath
+
+In [2]: import rjmespath
+
+In [3]: %timeit jmespath.compile('foo')
+436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [4]: %timeit rjmespath.compile('foo')
+354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}})
+2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
+
+In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')
+1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+```
+
+## License
+
+This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
+
+
+
+%package help
+Summary: Development documents and examples for rjmespath
+Provides: python3-rjmespath-doc
+%description help
+# rjmespath-py
+
+![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg)
+[![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath)
+
+[jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding.
+
+## Installation
+
+```bash
+pip install rjmespath
+```
+
+## Usage
+
+```python
+import rjmespath
+
+print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}'))
+```
+
+## Performance
+
+Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM)
+
+```python
+In [1]: import jmespath
+
+In [2]: import rjmespath
+
+In [3]: %timeit jmespath.compile('foo')
+436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [4]: %timeit rjmespath.compile('foo')
+354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+
+In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}})
+2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
+
+In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')
+1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
+```
+
+## License
+
+This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
+
+
+
+%prep
+%autosetup -n rjmespath-0.2.6
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-rjmespath -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6e9c097
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+02c9d9c7860557eaf6e1244b5227321b rjmespath-0.2.6.tar.gz