diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:18:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:18:24 +0000 |
commit | 6132dfbd53a84207bb71acc46d91ca5b969652de (patch) | |
tree | 52a7182ec66bbca83a0e950d4bfac9a2a2375328 | |
parent | 415d6191465ba499f8e8f63665eacf8d98953f7d (diff) |
automatic import of python-pyqopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyq.spec | 312 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 314 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyq-5.0.0.tar.gz diff --git a/python-pyq.spec b/python-pyq.spec new file mode 100644 index 0000000..b1db817 --- /dev/null +++ b/python-pyq.spec @@ -0,0 +1,312 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyq +Version: 5.0.0 +Release: 1 +Summary: PyQ - Python for kdb+ +License: Apache License +URL: https://github.com/KxSystems/pyq +Source0: https://mirrors.aliyun.com/pypi/web/packages/c3/b7/04548473251855536103eb46df9dc09dc678ca7f9fe7648411de6adb7e65/pyq-5.0.0.tar.gz +BuildArch: noarch + + +%description +# PyQ - Python for kdb+ + +[](https://pypi.python.org/pypi/pyq) +[](https://travis-ci.org/KxSystems/pyq) +[](https://ci.appveyor.com/project/abalkin/pyq) + +[](https://lgtm.com/projects/g/KxSystems/pyq/alerts/) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:python) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:cpp) +[](https://codecov.io/gh/KxSystems/pyq) + +[PyQ][2] brings the [Python programming language][4] to the [kdb+ database][5]. +Part of the [_Fusion for kdb+_][6] interface collection. + +It allows developers to integrate Python and q codes seamlessly in one application. +This is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data. +In PyQ, Python and q objects live in the same memory space and share the same +data. + +Please [report issues][7] in this repository. + + +## Installation + +```bash +pip install pyq +``` + +See detailed [installation instructions][1]. + +## Usage + +For Python programmers: + +```bash +$ pyq +``` +```python +>>> from pyq import q +>>> 1 + q.til(10) +k('1 2 3 4 5 6 7 8 9 10') +``` + +or run your Python script as + +```bash +pyq [python options] python-script +``` + +For q programmers: + +```bash +$ q +``` +```q +q)p)from math import hypot / prefix python code with p) +q)p)q.h = hypot / import a python function +q)h 3 4 / call the python function from q +5f +``` + +## Documentation + +Documentation is available on the [PyQ homepage][2]. + +## Testing + +Use [tox][3] to run tests. + +```bash +cd path/to/pyq/source +tox +``` + +[1]: https://code.kx.com/v2/interfaces/pyq/install/ +[2]: https://code.kx.com/v2/interfaces/pyq +[3]: https://tox.readthedocs.io/en/latest +[4]: https://www.python.org/about +[5]: https://kx.com +[6]: https://code.kx.com/v2/interfaces/fusion/ +[7]: https://github.com/KxSystems/pyq/issues + +%package -n python3-pyq +Summary: PyQ - Python for kdb+ +Provides: python-pyq +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyq +# PyQ - Python for kdb+ + +[](https://pypi.python.org/pypi/pyq) +[](https://travis-ci.org/KxSystems/pyq) +[](https://ci.appveyor.com/project/abalkin/pyq) + +[](https://lgtm.com/projects/g/KxSystems/pyq/alerts/) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:python) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:cpp) +[](https://codecov.io/gh/KxSystems/pyq) + +[PyQ][2] brings the [Python programming language][4] to the [kdb+ database][5]. +Part of the [_Fusion for kdb+_][6] interface collection. + +It allows developers to integrate Python and q codes seamlessly in one application. +This is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data. +In PyQ, Python and q objects live in the same memory space and share the same +data. + +Please [report issues][7] in this repository. + + +## Installation + +```bash +pip install pyq +``` + +See detailed [installation instructions][1]. + +## Usage + +For Python programmers: + +```bash +$ pyq +``` +```python +>>> from pyq import q +>>> 1 + q.til(10) +k('1 2 3 4 5 6 7 8 9 10') +``` + +or run your Python script as + +```bash +pyq [python options] python-script +``` + +For q programmers: + +```bash +$ q +``` +```q +q)p)from math import hypot / prefix python code with p) +q)p)q.h = hypot / import a python function +q)h 3 4 / call the python function from q +5f +``` + +## Documentation + +Documentation is available on the [PyQ homepage][2]. + +## Testing + +Use [tox][3] to run tests. + +```bash +cd path/to/pyq/source +tox +``` + +[1]: https://code.kx.com/v2/interfaces/pyq/install/ +[2]: https://code.kx.com/v2/interfaces/pyq +[3]: https://tox.readthedocs.io/en/latest +[4]: https://www.python.org/about +[5]: https://kx.com +[6]: https://code.kx.com/v2/interfaces/fusion/ +[7]: https://github.com/KxSystems/pyq/issues + +%package help +Summary: Development documents and examples for pyq +Provides: python3-pyq-doc +%description help +# PyQ - Python for kdb+ + +[](https://pypi.python.org/pypi/pyq) +[](https://travis-ci.org/KxSystems/pyq) +[](https://ci.appveyor.com/project/abalkin/pyq) + +[](https://lgtm.com/projects/g/KxSystems/pyq/alerts/) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:python) +[](https://lgtm.com/projects/g/KxSystems/pyq/context:cpp) +[](https://codecov.io/gh/KxSystems/pyq) + +[PyQ][2] brings the [Python programming language][4] to the [kdb+ database][5]. +Part of the [_Fusion for kdb+_][6] interface collection. + +It allows developers to integrate Python and q codes seamlessly in one application. +This is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data. +In PyQ, Python and q objects live in the same memory space and share the same +data. + +Please [report issues][7] in this repository. + + +## Installation + +```bash +pip install pyq +``` + +See detailed [installation instructions][1]. + +## Usage + +For Python programmers: + +```bash +$ pyq +``` +```python +>>> from pyq import q +>>> 1 + q.til(10) +k('1 2 3 4 5 6 7 8 9 10') +``` + +or run your Python script as + +```bash +pyq [python options] python-script +``` + +For q programmers: + +```bash +$ q +``` +```q +q)p)from math import hypot / prefix python code with p) +q)p)q.h = hypot / import a python function +q)h 3 4 / call the python function from q +5f +``` + +## Documentation + +Documentation is available on the [PyQ homepage][2]. + +## Testing + +Use [tox][3] to run tests. + +```bash +cd path/to/pyq/source +tox +``` + +[1]: https://code.kx.com/v2/interfaces/pyq/install/ +[2]: https://code.kx.com/v2/interfaces/pyq +[3]: https://tox.readthedocs.io/en/latest +[4]: https://www.python.org/about +[5]: https://kx.com +[6]: https://code.kx.com/v2/interfaces/fusion/ +[7]: https://github.com/KxSystems/pyq/issues + +%prep +%autosetup -n pyq-5.0.0 + +%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-pyq -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +3850b56798cc8b6bb6604f1fa00b91fe pyq-5.0.0.tar.gz |