diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:02:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:02:35 +0000 |
commit | 2f69e575facc3bac7ce58ea4d4075ebba08ae564 (patch) | |
tree | 64a3da4ec14c90b48f663c972171b85b2bc98004 /python-actions-toolkit.spec | |
parent | a8772eb1c3c8d973bddd56677d04159788f974a5 (diff) |
automatic import of python-actions-toolkit
Diffstat (limited to 'python-actions-toolkit.spec')
-rw-r--r-- | python-actions-toolkit.spec | 242 |
1 files changed, 242 insertions, 0 deletions
diff --git a/python-actions-toolkit.spec b/python-actions-toolkit.spec new file mode 100644 index 0000000..402d196 --- /dev/null +++ b/python-actions-toolkit.spec @@ -0,0 +1,242 @@ +%global _empty_manifest_terminate_build 0 +Name: python-actions-toolkit +Version: 0.1.15 +Release: 1 +Summary: 🛠The GitHub ToolKit for developing GitHub Actions in Python. +License: MIT +URL: https://github.com/yanglbme/actions-toolkit +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e7/d4/90b1c228a432df7dee7c2f5b31b4a7185e1f86bfb1657ace8ab3f22d8ac0/actions-toolkit-0.1.15.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-PyGithub + +%description +# Actions Toolkit + +The GitHub Actions ToolKit provides an SDK to make creating actions easier in Python. + +[](https://pepy.tech/project/actions-toolkit) +[](https://pypi.org/project/actions-toolkit) +[](https://pypi.python.org/pypi/actions-toolkit) +[](https://github.com/yanglbme/actions-toolkit/graphs/contributors) + +## Installation + +Action Toolkit is available on PyPI: + +```bash +$ python -m pip install actions-toolkit +``` + +Action Toolkit officially supports Python 3.6+. + +## Usage + +```python +>>> import os +>>> from actions_toolkit import core +>>> os.environ['INPUT_NAME'] = 'Actions Toolkit' +>>> core.get_input('name', required=True) +'Actions Toolkit' +>>> core.error('Something went wrong.') +::error::Something went wrong. +>>> core.info('Run successfully.') +Run successfully. +>>> core.set_failed('SSL certificates installation failed.') +::error::SSL certificates installation failed. +``` + +For more examples and API documentation, please see the [core](./docs/core.md) & [github](./docs/github.md). + +## Contributing + +Contributions are always welcomed! + +Here are the workflow for contributors: + +- Fork to your own +- Clone fork to local repository +- Create a new branch and work on it +- Keep your branch in sync +- Commit your changes (make sure your commit message concise) +- Push your commits to your forked repository +- Create a pull request + +Please refer to [CONTRIBUTING](./CONTRIBUTION.md) for detailed guidelines. + +## License + +The scripts and documentation in this project are released under the [MIT License](LICENSE). + + +%package -n python3-actions-toolkit +Summary: 🛠The GitHub ToolKit for developing GitHub Actions in Python. +Provides: python-actions-toolkit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-actions-toolkit +# Actions Toolkit + +The GitHub Actions ToolKit provides an SDK to make creating actions easier in Python. + +[](https://pepy.tech/project/actions-toolkit) +[](https://pypi.org/project/actions-toolkit) +[](https://pypi.python.org/pypi/actions-toolkit) +[](https://github.com/yanglbme/actions-toolkit/graphs/contributors) + +## Installation + +Action Toolkit is available on PyPI: + +```bash +$ python -m pip install actions-toolkit +``` + +Action Toolkit officially supports Python 3.6+. + +## Usage + +```python +>>> import os +>>> from actions_toolkit import core +>>> os.environ['INPUT_NAME'] = 'Actions Toolkit' +>>> core.get_input('name', required=True) +'Actions Toolkit' +>>> core.error('Something went wrong.') +::error::Something went wrong. +>>> core.info('Run successfully.') +Run successfully. +>>> core.set_failed('SSL certificates installation failed.') +::error::SSL certificates installation failed. +``` + +For more examples and API documentation, please see the [core](./docs/core.md) & [github](./docs/github.md). + +## Contributing + +Contributions are always welcomed! + +Here are the workflow for contributors: + +- Fork to your own +- Clone fork to local repository +- Create a new branch and work on it +- Keep your branch in sync +- Commit your changes (make sure your commit message concise) +- Push your commits to your forked repository +- Create a pull request + +Please refer to [CONTRIBUTING](./CONTRIBUTION.md) for detailed guidelines. + +## License + +The scripts and documentation in this project are released under the [MIT License](LICENSE). + + +%package help +Summary: Development documents and examples for actions-toolkit +Provides: python3-actions-toolkit-doc +%description help +# Actions Toolkit + +The GitHub Actions ToolKit provides an SDK to make creating actions easier in Python. + +[](https://pepy.tech/project/actions-toolkit) +[](https://pypi.org/project/actions-toolkit) +[](https://pypi.python.org/pypi/actions-toolkit) +[](https://github.com/yanglbme/actions-toolkit/graphs/contributors) + +## Installation + +Action Toolkit is available on PyPI: + +```bash +$ python -m pip install actions-toolkit +``` + +Action Toolkit officially supports Python 3.6+. + +## Usage + +```python +>>> import os +>>> from actions_toolkit import core +>>> os.environ['INPUT_NAME'] = 'Actions Toolkit' +>>> core.get_input('name', required=True) +'Actions Toolkit' +>>> core.error('Something went wrong.') +::error::Something went wrong. +>>> core.info('Run successfully.') +Run successfully. +>>> core.set_failed('SSL certificates installation failed.') +::error::SSL certificates installation failed. +``` + +For more examples and API documentation, please see the [core](./docs/core.md) & [github](./docs/github.md). + +## Contributing + +Contributions are always welcomed! + +Here are the workflow for contributors: + +- Fork to your own +- Clone fork to local repository +- Create a new branch and work on it +- Keep your branch in sync +- Commit your changes (make sure your commit message concise) +- Push your commits to your forked repository +- Create a pull request + +Please refer to [CONTRIBUTING](./CONTRIBUTION.md) for detailed guidelines. + +## License + +The scripts and documentation in this project are released under the [MIT License](LICENSE). + + +%prep +%autosetup -n actions-toolkit-0.1.15 + +%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-actions-toolkit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.15-1 +- Package Spec generated |