diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-30 15:37:15 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-30 15:37:15 +0000 |
| commit | 19905d5bdf67d5649cf061a46d808389fd387e5b (patch) | |
| tree | 6c6b6ec7058610e420ad2b3a3edec21a2af154f7 /python-cosmpy.spec | |
| parent | 0bd860f31f0cec75f59555cf852695f77b28b970 (diff) | |
automatic import of python-cosmpy
Diffstat (limited to 'python-cosmpy.spec')
| -rw-r--r-- | python-cosmpy.spec | 367 |
1 files changed, 367 insertions, 0 deletions
diff --git a/python-cosmpy.spec b/python-cosmpy.spec new file mode 100644 index 0000000..42d94fe --- /dev/null +++ b/python-cosmpy.spec @@ -0,0 +1,367 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cosmpy +Version: 0.8.0 +Release: 1 +Summary: A library for interacting with the cosmos networks +License: Apache-2.0 +URL: https://github.com/fetchai/cosmpy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/76/68/81d0e02fb55ebca4df2458d562d9e3287335ddac4b04f01d3c6f37631005/cosmpy-0.8.0.tar.gz +BuildArch: noarch + +Requires: python3-ecdsa +Requires: python3-bech32 +Requires: python3-requests +Requires: python3-protobuf +Requires: python3-grpcio +Requires: python3-bip-utils +Requires: python3-blspy +Requires: python3-google-api-python-client +Requires: python3-jsonschema +Requires: python3-dateutil + +%description +<h1 align="center"> + <b>CosmPy</b> +</h1> + +<p align="center"> +A python library for interacting with cosmos based blockchain networks +</p> + +<p align="center"> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI" src="https://img.shields.io/pypi/v/cosmpy"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/blob/main/LICENSE"> + <img alt="License" src="https://img.shields.io/pypi/l/cosmpy"> + </a> + <br /> + <a> + <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml"> + <img alt="CosmPy sanity checks and tests" src="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="Download per Month" src="https://img.shields.io/pypi/dm/cosmpy"> + </a> +</p> + +> We recently stopped using the `develop` branch for feature consolidation and renamed `master` to `main`. Please see the [Contribution Guides][contributing] for up-to-date instructions. + +## To Install + +```bash +pip3 install cosmpy +``` + +## Getting Started + +Below is a simple example for querying an account's balances: + +```python +from cosmpy.aerial.client import LedgerClient, NetworkConfig + +# connect to Fetch.ai network using default parameters +ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet()) + +alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x' +balances = ledger_client.query_bank_all_balances(alice) + +# show all coin balances +for coin in balances: + print(f'{coin.amount}{coin.denom}') +``` + +## Documentation + +The full documentation can be found [here](https://docs.fetch.ai/CosmPy/). + +## Examples + +Under the `examples` directory, you can find examples of basic ledger interactions using `cosmpy`, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps. + +## Contributing + +All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated! + +Read below to learn how you can take part in the CosmPy project. + +### Code of Conduct + +Please be sure to read and follow our [Code of Conduct][coc]. By participating, you are expected to uphold this code. + +### Contribution Guidelines + +Read our [contribution guidelines][contributing] to learn about our issue and pull request submission processes, coding rules, and more. + +### Development Guidelines + +Read our [development guidelines][developing] to learn about the development processes and workflows. + +### Issues, Questions and Discussions + +We use [GitHub Issues][issues] for tracking requests and bugs, and [GitHub Discussions][discussion] for general questions and discussion. + +## License + +The CosmPy project is licensed under [Apache License 2.0][license]. + +[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md +[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md +[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md +[discussion]: https://github.com/fetchai/cosmpy/discussions +[issues]: https://github.com/fetchai/cosmpy/issues +[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE + +%package -n python3-cosmpy +Summary: A library for interacting with the cosmos networks +Provides: python-cosmpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cosmpy +<h1 align="center"> + <b>CosmPy</b> +</h1> + +<p align="center"> +A python library for interacting with cosmos based blockchain networks +</p> + +<p align="center"> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI" src="https://img.shields.io/pypi/v/cosmpy"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/blob/main/LICENSE"> + <img alt="License" src="https://img.shields.io/pypi/l/cosmpy"> + </a> + <br /> + <a> + <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml"> + <img alt="CosmPy sanity checks and tests" src="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="Download per Month" src="https://img.shields.io/pypi/dm/cosmpy"> + </a> +</p> + +> We recently stopped using the `develop` branch for feature consolidation and renamed `master` to `main`. Please see the [Contribution Guides][contributing] for up-to-date instructions. + +## To Install + +```bash +pip3 install cosmpy +``` + +## Getting Started + +Below is a simple example for querying an account's balances: + +```python +from cosmpy.aerial.client import LedgerClient, NetworkConfig + +# connect to Fetch.ai network using default parameters +ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet()) + +alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x' +balances = ledger_client.query_bank_all_balances(alice) + +# show all coin balances +for coin in balances: + print(f'{coin.amount}{coin.denom}') +``` + +## Documentation + +The full documentation can be found [here](https://docs.fetch.ai/CosmPy/). + +## Examples + +Under the `examples` directory, you can find examples of basic ledger interactions using `cosmpy`, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps. + +## Contributing + +All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated! + +Read below to learn how you can take part in the CosmPy project. + +### Code of Conduct + +Please be sure to read and follow our [Code of Conduct][coc]. By participating, you are expected to uphold this code. + +### Contribution Guidelines + +Read our [contribution guidelines][contributing] to learn about our issue and pull request submission processes, coding rules, and more. + +### Development Guidelines + +Read our [development guidelines][developing] to learn about the development processes and workflows. + +### Issues, Questions and Discussions + +We use [GitHub Issues][issues] for tracking requests and bugs, and [GitHub Discussions][discussion] for general questions and discussion. + +## License + +The CosmPy project is licensed under [Apache License 2.0][license]. + +[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md +[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md +[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md +[discussion]: https://github.com/fetchai/cosmpy/discussions +[issues]: https://github.com/fetchai/cosmpy/issues +[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE + +%package help +Summary: Development documents and examples for cosmpy +Provides: python3-cosmpy-doc +%description help +<h1 align="center"> + <b>CosmPy</b> +</h1> + +<p align="center"> +A python library for interacting with cosmos based blockchain networks +</p> + +<p align="center"> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI" src="https://img.shields.io/pypi/v/cosmpy"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/blob/main/LICENSE"> + <img alt="License" src="https://img.shields.io/pypi/l/cosmpy"> + </a> + <br /> + <a> + <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/cosmpy"> + </a> + <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml"> + <img alt="CosmPy sanity checks and tests" src="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg"> + </a> + <a href="https://pypi.org/project/cosmpy/"> + <img alt="Download per Month" src="https://img.shields.io/pypi/dm/cosmpy"> + </a> +</p> + +> We recently stopped using the `develop` branch for feature consolidation and renamed `master` to `main`. Please see the [Contribution Guides][contributing] for up-to-date instructions. + +## To Install + +```bash +pip3 install cosmpy +``` + +## Getting Started + +Below is a simple example for querying an account's balances: + +```python +from cosmpy.aerial.client import LedgerClient, NetworkConfig + +# connect to Fetch.ai network using default parameters +ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet()) + +alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x' +balances = ledger_client.query_bank_all_balances(alice) + +# show all coin balances +for coin in balances: + print(f'{coin.amount}{coin.denom}') +``` + +## Documentation + +The full documentation can be found [here](https://docs.fetch.ai/CosmPy/). + +## Examples + +Under the `examples` directory, you can find examples of basic ledger interactions using `cosmpy`, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps. + +## Contributing + +All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated! + +Read below to learn how you can take part in the CosmPy project. + +### Code of Conduct + +Please be sure to read and follow our [Code of Conduct][coc]. By participating, you are expected to uphold this code. + +### Contribution Guidelines + +Read our [contribution guidelines][contributing] to learn about our issue and pull request submission processes, coding rules, and more. + +### Development Guidelines + +Read our [development guidelines][developing] to learn about the development processes and workflows. + +### Issues, Questions and Discussions + +We use [GitHub Issues][issues] for tracking requests and bugs, and [GitHub Discussions][discussion] for general questions and discussion. + +## License + +The CosmPy project is licensed under [Apache License 2.0][license]. + +[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md +[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md +[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md +[discussion]: https://github.com/fetchai/cosmpy/discussions +[issues]: https://github.com/fetchai/cosmpy/issues +[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE + +%prep +%autosetup -n cosmpy-0.8.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-cosmpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1 +- Package Spec generated |
