diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:19:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:19:11 +0000 |
commit | d30db5ecdb6972f44612d46549ebddda338683d3 (patch) | |
tree | ea5901bb764605ede137a9cc3469450c64a1408a /python-alfa-cli.spec | |
parent | 7912639e75c1b55b20f9bca8c385a1530d9463ed (diff) |
automatic import of python-alfa-cli
Diffstat (limited to 'python-alfa-cli.spec')
-rw-r--r-- | python-alfa-cli.spec | 414 |
1 files changed, 414 insertions, 0 deletions
diff --git a/python-alfa-cli.spec b/python-alfa-cli.spec new file mode 100644 index 0000000..9879b16 --- /dev/null +++ b/python-alfa-cli.spec @@ -0,0 +1,414 @@ +%global _empty_manifest_terminate_build 0 +Name: python-alfa-cli +Version: 0.1.48 +Release: 1 +Summary: CLI tools for ALFA +License: Apache License 2.0 +URL: https://bitbucket.org/widgetbrain/alfa-cli +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/17/21/41cb1e350ef4859393a54a02075fcfb383908d7d968781a74f6049fff6ce/alfa-cli-0.1.48.tar.gz +BuildArch: noarch + + +%description +# alfa-cli + +This package provides a command line tool for [ALFA](https://widgetbrain.com/product/). + +## Installation + +You can directly install alfa-cli using [pip](http://www.pip-installer.org/en/latest/). This will install the alfa-cli package as well as all dependencies. + +```sh +$ pip install -U alfa-cli +``` + +If you already have alfa-cli installed and want to upgrade to the latest version, you can run: + +```sh +$ pip install --upgrade alfa-cli +``` + +## Usage + +Once alfa-cli is installed, you can run it with the following template. + +```sh +$ alfa [options] <command> <subcommand> [parameters] +``` + +For more information regarding the usage, you can refer to the provided help information. + +```sh +$ alfa --help +$ alfa <command> --help +$ alfa <command> <subcommand> --help +``` + +## Command Completion + +The alfa-cli package includes a command completion feature, but is not automatically installed. +To enable tab completion you can follow the instructions below: + +For `bash`, run the following command, or append it to `~/.bashrc` + +```sh +$ . alfa-complete.sh +``` + +For `zsh`, run the following command, or append it to `~/.zshrc` + +```sh +$ . alfa-complete.zsh +``` + +## Development + +To install requirements locally: + +**1.** Activate local venv + +```sh +$ virtualenv venv +$ source venv/bin/activate +``` + +**2.** Install requirements from setup.py + +```sh +$ pip install -e ".[dev]" +``` + +To develop alfa-cli alongside alfa-sdk, you can opt to install a local copy of the alfa-sdk instead. + +```sh +$ pip install -e /path/to/alfa-sdk-py +``` + +### Running it locally + +You can run the cli directly as a python module. + +```sh +$ python alfa_cli [options] <command> <subcommand> [parameters] +``` + +Alternatively, you can install your local copy of alfa-cli in develop mode, and use it normally. + +```sh +$ python setup.py develop +$ alfa [options] <command> <subcommand> [parameters] +``` + +## Changelog +- 0.1.48 (2021-01-11) + - Adjust --spec option to not mutate source spec file +- 0.1.47 (2022-01-03) + - Update descriptions integration commands + - Define integration id in specification file when initialising a new integration +- 0.1.46 (2021-10-15) + - Read team-id from alfa.yml when deploying an integration +- 0.1.45 (2021-09-28) + - Fix name of the platformRegion key, that Local Runner uses accessing the context +- 0.1.44 (2021-09-20) + - Enable deployment of a release into any allowed team +- 0.1.43 (2021-08-13) + - Include alfaID and platformRegion in context when invoking an algorithm or integration locally +- 0.1.42 (2021-07-19) + - Fix for local invocation on a windows device +- 0.1.41 (2021-07-01) + - Fix for excluding files and folders when deploying an integration +- 0.1.40 (2021-06-04) + - Fix issue with using tempfile in Windows +- 0.1.39 (2021-05-05) + - Handling of large payloads when invoking node algorithms locally +- 0.1.37 (2021-04-15) + - Append context inside problem body when running invoke-local +- 0.1.36 (2021-04-07) + - Call algorithm pre & post processing functions when running invoke-local + +%package -n python3-alfa-cli +Summary: CLI tools for ALFA +Provides: python-alfa-cli +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-alfa-cli +# alfa-cli + +This package provides a command line tool for [ALFA](https://widgetbrain.com/product/). + +## Installation + +You can directly install alfa-cli using [pip](http://www.pip-installer.org/en/latest/). This will install the alfa-cli package as well as all dependencies. + +```sh +$ pip install -U alfa-cli +``` + +If you already have alfa-cli installed and want to upgrade to the latest version, you can run: + +```sh +$ pip install --upgrade alfa-cli +``` + +## Usage + +Once alfa-cli is installed, you can run it with the following template. + +```sh +$ alfa [options] <command> <subcommand> [parameters] +``` + +For more information regarding the usage, you can refer to the provided help information. + +```sh +$ alfa --help +$ alfa <command> --help +$ alfa <command> <subcommand> --help +``` + +## Command Completion + +The alfa-cli package includes a command completion feature, but is not automatically installed. +To enable tab completion you can follow the instructions below: + +For `bash`, run the following command, or append it to `~/.bashrc` + +```sh +$ . alfa-complete.sh +``` + +For `zsh`, run the following command, or append it to `~/.zshrc` + +```sh +$ . alfa-complete.zsh +``` + +## Development + +To install requirements locally: + +**1.** Activate local venv + +```sh +$ virtualenv venv +$ source venv/bin/activate +``` + +**2.** Install requirements from setup.py + +```sh +$ pip install -e ".[dev]" +``` + +To develop alfa-cli alongside alfa-sdk, you can opt to install a local copy of the alfa-sdk instead. + +```sh +$ pip install -e /path/to/alfa-sdk-py +``` + +### Running it locally + +You can run the cli directly as a python module. + +```sh +$ python alfa_cli [options] <command> <subcommand> [parameters] +``` + +Alternatively, you can install your local copy of alfa-cli in develop mode, and use it normally. + +```sh +$ python setup.py develop +$ alfa [options] <command> <subcommand> [parameters] +``` + +## Changelog +- 0.1.48 (2021-01-11) + - Adjust --spec option to not mutate source spec file +- 0.1.47 (2022-01-03) + - Update descriptions integration commands + - Define integration id in specification file when initialising a new integration +- 0.1.46 (2021-10-15) + - Read team-id from alfa.yml when deploying an integration +- 0.1.45 (2021-09-28) + - Fix name of the platformRegion key, that Local Runner uses accessing the context +- 0.1.44 (2021-09-20) + - Enable deployment of a release into any allowed team +- 0.1.43 (2021-08-13) + - Include alfaID and platformRegion in context when invoking an algorithm or integration locally +- 0.1.42 (2021-07-19) + - Fix for local invocation on a windows device +- 0.1.41 (2021-07-01) + - Fix for excluding files and folders when deploying an integration +- 0.1.40 (2021-06-04) + - Fix issue with using tempfile in Windows +- 0.1.39 (2021-05-05) + - Handling of large payloads when invoking node algorithms locally +- 0.1.37 (2021-04-15) + - Append context inside problem body when running invoke-local +- 0.1.36 (2021-04-07) + - Call algorithm pre & post processing functions when running invoke-local + +%package help +Summary: Development documents and examples for alfa-cli +Provides: python3-alfa-cli-doc +%description help +# alfa-cli + +This package provides a command line tool for [ALFA](https://widgetbrain.com/product/). + +## Installation + +You can directly install alfa-cli using [pip](http://www.pip-installer.org/en/latest/). This will install the alfa-cli package as well as all dependencies. + +```sh +$ pip install -U alfa-cli +``` + +If you already have alfa-cli installed and want to upgrade to the latest version, you can run: + +```sh +$ pip install --upgrade alfa-cli +``` + +## Usage + +Once alfa-cli is installed, you can run it with the following template. + +```sh +$ alfa [options] <command> <subcommand> [parameters] +``` + +For more information regarding the usage, you can refer to the provided help information. + +```sh +$ alfa --help +$ alfa <command> --help +$ alfa <command> <subcommand> --help +``` + +## Command Completion + +The alfa-cli package includes a command completion feature, but is not automatically installed. +To enable tab completion you can follow the instructions below: + +For `bash`, run the following command, or append it to `~/.bashrc` + +```sh +$ . alfa-complete.sh +``` + +For `zsh`, run the following command, or append it to `~/.zshrc` + +```sh +$ . alfa-complete.zsh +``` + +## Development + +To install requirements locally: + +**1.** Activate local venv + +```sh +$ virtualenv venv +$ source venv/bin/activate +``` + +**2.** Install requirements from setup.py + +```sh +$ pip install -e ".[dev]" +``` + +To develop alfa-cli alongside alfa-sdk, you can opt to install a local copy of the alfa-sdk instead. + +```sh +$ pip install -e /path/to/alfa-sdk-py +``` + +### Running it locally + +You can run the cli directly as a python module. + +```sh +$ python alfa_cli [options] <command> <subcommand> [parameters] +``` + +Alternatively, you can install your local copy of alfa-cli in develop mode, and use it normally. + +```sh +$ python setup.py develop +$ alfa [options] <command> <subcommand> [parameters] +``` + +## Changelog +- 0.1.48 (2021-01-11) + - Adjust --spec option to not mutate source spec file +- 0.1.47 (2022-01-03) + - Update descriptions integration commands + - Define integration id in specification file when initialising a new integration +- 0.1.46 (2021-10-15) + - Read team-id from alfa.yml when deploying an integration +- 0.1.45 (2021-09-28) + - Fix name of the platformRegion key, that Local Runner uses accessing the context +- 0.1.44 (2021-09-20) + - Enable deployment of a release into any allowed team +- 0.1.43 (2021-08-13) + - Include alfaID and platformRegion in context when invoking an algorithm or integration locally +- 0.1.42 (2021-07-19) + - Fix for local invocation on a windows device +- 0.1.41 (2021-07-01) + - Fix for excluding files and folders when deploying an integration +- 0.1.40 (2021-06-04) + - Fix issue with using tempfile in Windows +- 0.1.39 (2021-05-05) + - Handling of large payloads when invoking node algorithms locally +- 0.1.37 (2021-04-15) + - Append context inside problem body when running invoke-local +- 0.1.36 (2021-04-07) + - Call algorithm pre & post processing functions when running invoke-local + +%prep +%autosetup -n alfa-cli-0.1.48 + +%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-alfa-cli -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.48-1 +- Package Spec generated |