summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 07:16:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 07:16:20 +0000
commit8e8291cb5f989b74408e15870ed60ac42f2c11f4 (patch)
tree92826351aa7d156a1fa19cbb10461fcadae54dd2
parent524016125c183da21c9642548cf8d4e0fafc28d1 (diff)
automatic import of python-connect-cliopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-connect-cli.spec368
-rw-r--r--sources1
3 files changed, 370 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..79fc0f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/connect_cli-27.1.tar.gz
diff --git a/python-connect-cli.spec b/python-connect-cli.spec
new file mode 100644
index 0000000..96bc0ba
--- /dev/null
+++ b/python-connect-cli.spec
@@ -0,0 +1,368 @@
+%global _empty_manifest_terminate_build 0
+Name: python-connect-cli
+Version: 27.1
+Release: 1
+Summary: CloudBlue Connect Command Line Interface
+License: Apache-2.0
+URL: https://connect.cloudblue.com
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/47/47/7308e576dcc918c97a84d293d235b937db7286605cae3cbba0df9eba3845/connect_cli-27.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-click
+Requires: python3-openpyxl
+Requires: python3-connect-openapi-client
+Requires: python3-interrogatio
+Requires: python3-connect-markdown-renderer
+Requires: python3-iso3166
+Requires: python3-phonenumbers
+Requires: python3-connect-reports-core
+Requires: python3-requests
+Requires: python3-toml
+Requires: python3-Jinja2
+Requires: python3-jinja2-time
+Requires: python3-connect-eaas-core
+Requires: python3-rich
+Requires: python3-poetry-core
+Requires: python3-uvloop
+Requires: python3-fs
+
+%description
+# CloudBlue Connect Command Line Interface
+
+![pyversions](https://img.shields.io/pypi/pyversions/connect-cli.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-cli.svg)](https://pypi.org/project/connect-cli/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/connect-cli) ![Docker Pulls](https://img.shields.io/docker/pulls/cloudblueconnect/connect-cli) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/cloudblue/connect-cli/build.yml?branch=master) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=coverage)](https://sonarcloud.io/summary/new_code?id=connect-cli) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=connect-cli)
+
+## Introduction
+
+The CloudBlue Connect Command Line Interface (CLI) is an extensible unified tool to perform various automation scenarios. With just one tool, you can control multiple Connect modules from the command line and automate them through scripts.
+
+Since it is extensible, users can write their own plugins to extend its functionalities.
+
+
+## Install
+
+### Prerequisites
+
+`connect-cli` depends on [Git](https://git-scm.com/), [Cairo](https://www.cairographics.org/),
+[Pango](https://pango.gnome.org/) and [GDK-PixBuf](https://developer.gnome.org/gdk-pixbuf/stable/).
+
+Please refers to the platform-specific instructions on how to install these dependecies:
+
+* [Linux](docs/linux_deps_install.md)
+* [Mac OS](docs/osx_deps_install.md)
+* [Windows](docs/win_deps_install.md)
+
+
+### Using PIP
+
+To use `connect-cli` you need a system with python 3.8 or later installed.
+
+```sh
+ $ pip install --upgrade connect-cli
+```
+
+### Using Docker
+
+To use the Docker image of `connect-cli`:
+
+```sh
+ $ docker run -it -v $HOME/.ccli:/home/connect/.ccli cloudblueconnect/connect-cli ccli
+```
+
+Please refer to the [`connect-cli` docker image documentation](https://hub.docker.com/r/cloudblueconnect/connect-cli) for more information.
+
+
+### Using Homebrew on Mac OS
+
+To install `connect-cli` with homebrew run:
+
+```sh
+ $ brew update
+ $ brew tap cloudblue/connect
+ $ brew install cloudblue/connect/connect-cli
+```
+
+### Using the installer on Windows
+
+An installer package is available for Windows 10 or newer.
+You can download its zip file from the [Github Releases](https://github.com/cloudblue/connect-cli/releases) page.
+
+
+
+## Usage
+
+* [General](docs/core_usage.md)
+* [Locales](docs/locales_usage.md)
+* [Products](docs/products_usage.md)
+* [Customers](docs/customers_usage.md)
+* [Reports](docs/reports_usage.md)
+* [Translations](docs/translations_usage.md)
+* [Projects](docs/project_usage.md)
+
+
+## Development
+We use `isort` library to order and format our imports, and we check it using `flake8-isort` library (automatically on `flake8` run).
+For convenience you may run `poetry run isort .` to order imports.
+
+
+## Run tests
+
+`connect-cli` uses [poetry](https://python-poetry.org/) for dependencies management and packaging.
+
+To run the `connect-cli` tests suite run:
+
+```
+$ pip install poetry
+$ poetry install
+$ poetry run pytest
+```
+
+
+## License
+
+`connect-cli` is released under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+
+%package -n python3-connect-cli
+Summary: CloudBlue Connect Command Line Interface
+Provides: python-connect-cli
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-connect-cli
+# CloudBlue Connect Command Line Interface
+
+![pyversions](https://img.shields.io/pypi/pyversions/connect-cli.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-cli.svg)](https://pypi.org/project/connect-cli/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/connect-cli) ![Docker Pulls](https://img.shields.io/docker/pulls/cloudblueconnect/connect-cli) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/cloudblue/connect-cli/build.yml?branch=master) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=coverage)](https://sonarcloud.io/summary/new_code?id=connect-cli) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=connect-cli)
+
+## Introduction
+
+The CloudBlue Connect Command Line Interface (CLI) is an extensible unified tool to perform various automation scenarios. With just one tool, you can control multiple Connect modules from the command line and automate them through scripts.
+
+Since it is extensible, users can write their own plugins to extend its functionalities.
+
+
+## Install
+
+### Prerequisites
+
+`connect-cli` depends on [Git](https://git-scm.com/), [Cairo](https://www.cairographics.org/),
+[Pango](https://pango.gnome.org/) and [GDK-PixBuf](https://developer.gnome.org/gdk-pixbuf/stable/).
+
+Please refers to the platform-specific instructions on how to install these dependecies:
+
+* [Linux](docs/linux_deps_install.md)
+* [Mac OS](docs/osx_deps_install.md)
+* [Windows](docs/win_deps_install.md)
+
+
+### Using PIP
+
+To use `connect-cli` you need a system with python 3.8 or later installed.
+
+```sh
+ $ pip install --upgrade connect-cli
+```
+
+### Using Docker
+
+To use the Docker image of `connect-cli`:
+
+```sh
+ $ docker run -it -v $HOME/.ccli:/home/connect/.ccli cloudblueconnect/connect-cli ccli
+```
+
+Please refer to the [`connect-cli` docker image documentation](https://hub.docker.com/r/cloudblueconnect/connect-cli) for more information.
+
+
+### Using Homebrew on Mac OS
+
+To install `connect-cli` with homebrew run:
+
+```sh
+ $ brew update
+ $ brew tap cloudblue/connect
+ $ brew install cloudblue/connect/connect-cli
+```
+
+### Using the installer on Windows
+
+An installer package is available for Windows 10 or newer.
+You can download its zip file from the [Github Releases](https://github.com/cloudblue/connect-cli/releases) page.
+
+
+
+## Usage
+
+* [General](docs/core_usage.md)
+* [Locales](docs/locales_usage.md)
+* [Products](docs/products_usage.md)
+* [Customers](docs/customers_usage.md)
+* [Reports](docs/reports_usage.md)
+* [Translations](docs/translations_usage.md)
+* [Projects](docs/project_usage.md)
+
+
+## Development
+We use `isort` library to order and format our imports, and we check it using `flake8-isort` library (automatically on `flake8` run).
+For convenience you may run `poetry run isort .` to order imports.
+
+
+## Run tests
+
+`connect-cli` uses [poetry](https://python-poetry.org/) for dependencies management and packaging.
+
+To run the `connect-cli` tests suite run:
+
+```
+$ pip install poetry
+$ poetry install
+$ poetry run pytest
+```
+
+
+## License
+
+`connect-cli` is released under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+
+%package help
+Summary: Development documents and examples for connect-cli
+Provides: python3-connect-cli-doc
+%description help
+# CloudBlue Connect Command Line Interface
+
+![pyversions](https://img.shields.io/pypi/pyversions/connect-cli.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-cli.svg)](https://pypi.org/project/connect-cli/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/connect-cli) ![Docker Pulls](https://img.shields.io/docker/pulls/cloudblueconnect/connect-cli) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/cloudblue/connect-cli/build.yml?branch=master) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=coverage)](https://sonarcloud.io/summary/new_code?id=connect-cli) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connect-cli&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=connect-cli)
+
+## Introduction
+
+The CloudBlue Connect Command Line Interface (CLI) is an extensible unified tool to perform various automation scenarios. With just one tool, you can control multiple Connect modules from the command line and automate them through scripts.
+
+Since it is extensible, users can write their own plugins to extend its functionalities.
+
+
+## Install
+
+### Prerequisites
+
+`connect-cli` depends on [Git](https://git-scm.com/), [Cairo](https://www.cairographics.org/),
+[Pango](https://pango.gnome.org/) and [GDK-PixBuf](https://developer.gnome.org/gdk-pixbuf/stable/).
+
+Please refers to the platform-specific instructions on how to install these dependecies:
+
+* [Linux](docs/linux_deps_install.md)
+* [Mac OS](docs/osx_deps_install.md)
+* [Windows](docs/win_deps_install.md)
+
+
+### Using PIP
+
+To use `connect-cli` you need a system with python 3.8 or later installed.
+
+```sh
+ $ pip install --upgrade connect-cli
+```
+
+### Using Docker
+
+To use the Docker image of `connect-cli`:
+
+```sh
+ $ docker run -it -v $HOME/.ccli:/home/connect/.ccli cloudblueconnect/connect-cli ccli
+```
+
+Please refer to the [`connect-cli` docker image documentation](https://hub.docker.com/r/cloudblueconnect/connect-cli) for more information.
+
+
+### Using Homebrew on Mac OS
+
+To install `connect-cli` with homebrew run:
+
+```sh
+ $ brew update
+ $ brew tap cloudblue/connect
+ $ brew install cloudblue/connect/connect-cli
+```
+
+### Using the installer on Windows
+
+An installer package is available for Windows 10 or newer.
+You can download its zip file from the [Github Releases](https://github.com/cloudblue/connect-cli/releases) page.
+
+
+
+## Usage
+
+* [General](docs/core_usage.md)
+* [Locales](docs/locales_usage.md)
+* [Products](docs/products_usage.md)
+* [Customers](docs/customers_usage.md)
+* [Reports](docs/reports_usage.md)
+* [Translations](docs/translations_usage.md)
+* [Projects](docs/project_usage.md)
+
+
+## Development
+We use `isort` library to order and format our imports, and we check it using `flake8-isort` library (automatically on `flake8` run).
+For convenience you may run `poetry run isort .` to order imports.
+
+
+## Run tests
+
+`connect-cli` uses [poetry](https://python-poetry.org/) for dependencies management and packaging.
+
+To run the `connect-cli` tests suite run:
+
+```
+$ pip install poetry
+$ poetry install
+$ poetry run pytest
+```
+
+
+## License
+
+`connect-cli` is released under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+
+%prep
+%autosetup -n connect-cli-27.1
+
+%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-connect-cli -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 27.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3938336
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8c42709cc92ce8f7be5e1a021cfdca55 connect_cli-27.1.tar.gz