diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:37:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:37:20 +0000 |
commit | 7995690e53436a3e985168ed8377df3721897928 (patch) | |
tree | 9d191935e07497969cb55cfb7ed18a556a5b58dc | |
parent | 118b06b53fb437699c843d60527a3be97178607d (diff) |
automatic import of python-yookassaopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-yookassa.spec | 342 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 344 insertions, 0 deletions
@@ -0,0 +1 @@ +/yookassa-2.3.5.tar.gz diff --git a/python-yookassa.spec b/python-yookassa.spec new file mode 100644 index 0000000..89c6f43 --- /dev/null +++ b/python-yookassa.spec @@ -0,0 +1,342 @@ +%global _empty_manifest_terminate_build 0 +Name: python-yookassa +Version: 2.3.5 +Release: 1 +Summary: YooKassa API SDK Python Library +License: MIT +URL: https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/84/e0777a65484febdf7ef003bde7f37a7348047a98efaf1d168e4c34b7f810/yookassa-2.3.5.tar.gz +BuildArch: noarch + + +%description +
+# YooKassa API Python Client Library
+
+[](https://travis-ci.org/yoomoney/yookassa-sdk-python)
+[](https://pypi.org/project/yookassa/)
+[](https://pypi.org/project/yookassa/)
+[](https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python)
+
+[Russian](README.md) | English
+
+This product is used for managing payments under [The YooKassa API](https://yookassa.ru/en/developers/api)
+For usage by those who implemented YooKassa using the API method.
+
+## Requirements
+1. Python 2.7 or Python 3.x
+2. pip
+
+## Installation
+### Under console using pip
+
+1. Install pip.
+2. In the console, run the following command:
+```bash
+pip install --upgrade yookassa
+```
+
+### Under console using easy_install
+1. Install easy_install.
+2. In the console, run the following command:
+```bash
+easy_install --upgrade yookassa
+```
+
+### Manually
+
+1. In the console, run the following command:
+```bash
+wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yookassa-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2
+tar zxf yookassa-1.0.0.tar.gz
+cd yookassa-1.0.0
+python setup.py install
+```
+
+
+## Commencing work
+
+1. Import module
+```python
+import yookassa
+```
+
+2. Configure a Client
+```python
+from yookassa import Configuration
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+```
+
+or
+
+```python
+from yookassa import Configuration
+
+Configuration.account_id = '<Account Id>'
+Configuration.secret_key = '<Secret Key>'
+```
+
+or via oauth
+
+```python
+from yookassa import Configuration
+
+Configuration.configure_auth_token('<Oauth Token>')
+```
+
+If you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:
+
+```python
+from yookassa import Configuration
+from yookassa.domain.common.user_agent import Version
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+Configuration.configure_user_agent(
+ framework=Version('Django', '2.2.3'),
+ cms=Version('Wagtail', '2.6.2'),
+ module=Version('Y.CMS', '0.0.1')
+)
+```
+
+3. Call the required API method. [More details in our documentation for the YooKassa API](https://yookassa.ru/en/developers/api)
+ + +%package -n python3-yookassa +Summary: YooKassa API SDK Python Library +Provides: python-yookassa +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-yookassa +
+# YooKassa API Python Client Library
+
+[](https://travis-ci.org/yoomoney/yookassa-sdk-python)
+[](https://pypi.org/project/yookassa/)
+[](https://pypi.org/project/yookassa/)
+[](https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python)
+
+[Russian](README.md) | English
+
+This product is used for managing payments under [The YooKassa API](https://yookassa.ru/en/developers/api)
+For usage by those who implemented YooKassa using the API method.
+
+## Requirements
+1. Python 2.7 or Python 3.x
+2. pip
+
+## Installation
+### Under console using pip
+
+1. Install pip.
+2. In the console, run the following command:
+```bash
+pip install --upgrade yookassa
+```
+
+### Under console using easy_install
+1. Install easy_install.
+2. In the console, run the following command:
+```bash
+easy_install --upgrade yookassa
+```
+
+### Manually
+
+1. In the console, run the following command:
+```bash
+wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yookassa-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2
+tar zxf yookassa-1.0.0.tar.gz
+cd yookassa-1.0.0
+python setup.py install
+```
+
+
+## Commencing work
+
+1. Import module
+```python
+import yookassa
+```
+
+2. Configure a Client
+```python
+from yookassa import Configuration
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+```
+
+or
+
+```python
+from yookassa import Configuration
+
+Configuration.account_id = '<Account Id>'
+Configuration.secret_key = '<Secret Key>'
+```
+
+or via oauth
+
+```python
+from yookassa import Configuration
+
+Configuration.configure_auth_token('<Oauth Token>')
+```
+
+If you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:
+
+```python
+from yookassa import Configuration
+from yookassa.domain.common.user_agent import Version
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+Configuration.configure_user_agent(
+ framework=Version('Django', '2.2.3'),
+ cms=Version('Wagtail', '2.6.2'),
+ module=Version('Y.CMS', '0.0.1')
+)
+```
+
+3. Call the required API method. [More details in our documentation for the YooKassa API](https://yookassa.ru/en/developers/api)
+ + +%package help +Summary: Development documents and examples for yookassa +Provides: python3-yookassa-doc +%description help +
+# YooKassa API Python Client Library
+
+[](https://travis-ci.org/yoomoney/yookassa-sdk-python)
+[](https://pypi.org/project/yookassa/)
+[](https://pypi.org/project/yookassa/)
+[](https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python)
+
+[Russian](README.md) | English
+
+This product is used for managing payments under [The YooKassa API](https://yookassa.ru/en/developers/api)
+For usage by those who implemented YooKassa using the API method.
+
+## Requirements
+1. Python 2.7 or Python 3.x
+2. pip
+
+## Installation
+### Under console using pip
+
+1. Install pip.
+2. In the console, run the following command:
+```bash
+pip install --upgrade yookassa
+```
+
+### Under console using easy_install
+1. Install easy_install.
+2. In the console, run the following command:
+```bash
+easy_install --upgrade yookassa
+```
+
+### Manually
+
+1. In the console, run the following command:
+```bash
+wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yookassa-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2
+tar zxf yookassa-1.0.0.tar.gz
+cd yookassa-1.0.0
+python setup.py install
+```
+
+
+## Commencing work
+
+1. Import module
+```python
+import yookassa
+```
+
+2. Configure a Client
+```python
+from yookassa import Configuration
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+```
+
+or
+
+```python
+from yookassa import Configuration
+
+Configuration.account_id = '<Account Id>'
+Configuration.secret_key = '<Secret Key>'
+```
+
+or via oauth
+
+```python
+from yookassa import Configuration
+
+Configuration.configure_auth_token('<Oauth Token>')
+```
+
+If you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:
+
+```python
+from yookassa import Configuration
+from yookassa.domain.common.user_agent import Version
+
+Configuration.configure('<Account Id>', '<Secret Key>')
+Configuration.configure_user_agent(
+ framework=Version('Django', '2.2.3'),
+ cms=Version('Wagtail', '2.6.2'),
+ module=Version('Y.CMS', '0.0.1')
+)
+```
+
+3. Call the required API method. [More details in our documentation for the YooKassa API](https://yookassa.ru/en/developers/api)
+ + +%prep +%autosetup -n yookassa-2.3.5 + +%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-yookassa -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.5-1 +- Package Spec generated @@ -0,0 +1 @@ +622166f62e1fc955ad63e1945ae0f1ba yookassa-2.3.5.tar.gz |