diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:21:28 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:21:28 +0000 |
commit | d0bcb062ffa286bb741106fd16e7bcae77b01ec9 (patch) | |
tree | acdd97ab590bc91003a2b5a5340ff6d1098d37a5 | |
parent | bb42696032befa3f5a9ed40074049f6268a7d2d0 (diff) |
automatic import of python-deployhubopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-deployhub.spec | 542 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 544 insertions, 0 deletions
@@ -0,0 +1 @@ +/deployhub-9.3.210.tar.gz diff --git a/python-deployhub.spec b/python-deployhub.spec new file mode 100644 index 0000000..40d590b --- /dev/null +++ b/python-deployhub.spec @@ -0,0 +1,542 @@ +%global _empty_manifest_terminate_build 0 +Name: python-deployhub +Version: 9.3.210 +Release: 1 +Summary: please add a summary manually as the author left a blank one +License: GNU AFFERO GENERAL PUBLIC LICENSE +URL: https://ortelius.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a1/d3/efa38f7d88512dd3ee2ea2164732cb3b6ee6f2f6db5ad4070aab1561aab9/deployhub-9.3.210.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-qtoml +Requires: python3-PyYAML +Requires: python3-requests +Requires: python3-configobj +Requires: python3-flatten-dict +Requires: python3-pydantic +Requires: python3-certifi + +%description +<a name="dh"></a> +# dh + +DeployHub's CLI using the dhapi module. + +**Arguments**: + + + ACTION - one of the following + +- `deploy` - deploy the application to the environment + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --deployenv + +- `approve` - approve the application version + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + +- `move` - move the application version using the supplied task + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --from_domain + > --task + +- `updatecomp` - create/replace the component version for the application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --autocompinc (optional) + > --appname (optional) + > --appversion (optional) + > --autoappinc (optional) + > --compattr + > --consumes (optional) + > --provides (optional) + + - Predefined Key/Values: + * BuildId - Identifier for the CI job + * BuildNumber - Build number for the CI job + * BuildUrl - url for the CI job + * Chart - Helm Chart for the component + * ChartNamespace - Name space for the component to be deployed to + * ChartRepo - Helm Chart Repo Name + * ChartRepoUrl - Helm Chart Repo Url + * ChartVersion - Helm Chart version + * CustomAction - Custom Action to assign to the Component + * DockerBuildDate - Timestamp when the image was created + * DockerRepo - Registry which the image was pushed to + * DockerSha - Digest for the image + * DockerTag - Tag for the image + * GitBranch - Git branch in the git repo + * GitCommit - Git commit that triggered the CI job + * GitRepo - Git repo that triggered the CI job + * GitTag - Git tag in the git repo + * GitUrl - Full url to the git repo + * operator - Operator name + * Readme - Readme location in the Git Repo + * ServiceOwner - Owner of the Service + * ServiceOwnerEmail - Email for the Owner of the Service + * ServiceOwnerPhone - Phone number for the Owner of the Service + +- `assign` - assigns a component version to an application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --appname + > --appversion (optional) + +- `kv` - assigns the key/values pairs to the component verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --kvconfig + +- `envscript` - creates a bash file from the component toml file + - Usage: + > --envvars + > --envvars_sh + +- `export` - exports a domain including all objects to stdout + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + +- `import` - imports the export file into the new domain + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + > --to_dom + + Parameter Descriptions: + - `--dhurl` - DeployHub Url + - `--dhuser` - DeployHub User + - `--dhpass` - DeployHub Password + - `--appname` - Application Name + - `--appversion` - Application Version + - `--appautoinc` - Application Auto Increment Version + - `--deployenv` - Deployment Environment + - `--compname` - Component Name + - `--compvariant` - Component Variant + - `--compversion` - Component Version + - `--compautoinc` - Component Auto Increment Version + - `--kvconfig` - Directory containing the json and properties file + - `--crdatasource` - Change Request Data Source for the Component + - `--changerequest` - Change Request for Component, use multiple time for each Change Request Id + - `--deploydata` - The json file that contains the application, environment and log details + - `--from_domain` - Move from domain + - `--task` - Task to use for move + - `--envvars` - Env Variables TOML file + - `--envvars_sh` - Env Variables Output sh file + - `--docker` - docker Kind of the component item + - `--file` - file Kind of the component item + - `--compattr` - Component Attributes, use multiple time for each attr + - `--envs` - Environments to Associate App to, use multiple time for each env + - `--importfile` - File to Import + - `--fromdom` - From Domain + - `--todom` - To Domain + - `--msname` - New microservice being added to the cluster + - `--msbranch` - New microservice branch being added to the cluster + - `--consumes` - json file that lists the endpoints the component consumes. [ {"verb", "get", "path": "/weather"}] + - `--provides` - json file that lists the endpoints the component provides. [ {"verb", "get", "path": "/checkout"}] + + Example Jenkinsfile Snippet: + https://github.com/ortelius/compupdate/blob/main/Jenkinsfile + + + +%package -n python3-deployhub +Summary: please add a summary manually as the author left a blank one +Provides: python-deployhub +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-deployhub +<a name="dh"></a> +# dh + +DeployHub's CLI using the dhapi module. + +**Arguments**: + + + ACTION - one of the following + +- `deploy` - deploy the application to the environment + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --deployenv + +- `approve` - approve the application version + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + +- `move` - move the application version using the supplied task + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --from_domain + > --task + +- `updatecomp` - create/replace the component version for the application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --autocompinc (optional) + > --appname (optional) + > --appversion (optional) + > --autoappinc (optional) + > --compattr + > --consumes (optional) + > --provides (optional) + + - Predefined Key/Values: + * BuildId - Identifier for the CI job + * BuildNumber - Build number for the CI job + * BuildUrl - url for the CI job + * Chart - Helm Chart for the component + * ChartNamespace - Name space for the component to be deployed to + * ChartRepo - Helm Chart Repo Name + * ChartRepoUrl - Helm Chart Repo Url + * ChartVersion - Helm Chart version + * CustomAction - Custom Action to assign to the Component + * DockerBuildDate - Timestamp when the image was created + * DockerRepo - Registry which the image was pushed to + * DockerSha - Digest for the image + * DockerTag - Tag for the image + * GitBranch - Git branch in the git repo + * GitCommit - Git commit that triggered the CI job + * GitRepo - Git repo that triggered the CI job + * GitTag - Git tag in the git repo + * GitUrl - Full url to the git repo + * operator - Operator name + * Readme - Readme location in the Git Repo + * ServiceOwner - Owner of the Service + * ServiceOwnerEmail - Email for the Owner of the Service + * ServiceOwnerPhone - Phone number for the Owner of the Service + +- `assign` - assigns a component version to an application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --appname + > --appversion (optional) + +- `kv` - assigns the key/values pairs to the component verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --kvconfig + +- `envscript` - creates a bash file from the component toml file + - Usage: + > --envvars + > --envvars_sh + +- `export` - exports a domain including all objects to stdout + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + +- `import` - imports the export file into the new domain + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + > --to_dom + + Parameter Descriptions: + - `--dhurl` - DeployHub Url + - `--dhuser` - DeployHub User + - `--dhpass` - DeployHub Password + - `--appname` - Application Name + - `--appversion` - Application Version + - `--appautoinc` - Application Auto Increment Version + - `--deployenv` - Deployment Environment + - `--compname` - Component Name + - `--compvariant` - Component Variant + - `--compversion` - Component Version + - `--compautoinc` - Component Auto Increment Version + - `--kvconfig` - Directory containing the json and properties file + - `--crdatasource` - Change Request Data Source for the Component + - `--changerequest` - Change Request for Component, use multiple time for each Change Request Id + - `--deploydata` - The json file that contains the application, environment and log details + - `--from_domain` - Move from domain + - `--task` - Task to use for move + - `--envvars` - Env Variables TOML file + - `--envvars_sh` - Env Variables Output sh file + - `--docker` - docker Kind of the component item + - `--file` - file Kind of the component item + - `--compattr` - Component Attributes, use multiple time for each attr + - `--envs` - Environments to Associate App to, use multiple time for each env + - `--importfile` - File to Import + - `--fromdom` - From Domain + - `--todom` - To Domain + - `--msname` - New microservice being added to the cluster + - `--msbranch` - New microservice branch being added to the cluster + - `--consumes` - json file that lists the endpoints the component consumes. [ {"verb", "get", "path": "/weather"}] + - `--provides` - json file that lists the endpoints the component provides. [ {"verb", "get", "path": "/checkout"}] + + Example Jenkinsfile Snippet: + https://github.com/ortelius/compupdate/blob/main/Jenkinsfile + + + +%package help +Summary: Development documents and examples for deployhub +Provides: python3-deployhub-doc +%description help +<a name="dh"></a> +# dh + +DeployHub's CLI using the dhapi module. + +**Arguments**: + + + ACTION - one of the following + +- `deploy` - deploy the application to the environment + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --deployenv + +- `approve` - approve the application version + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + +- `move` - move the application version using the supplied task + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --appname + > --appversion (optional) + > --from_domain + > --task + +- `updatecomp` - create/replace the component version for the application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --autocompinc (optional) + > --appname (optional) + > --appversion (optional) + > --autoappinc (optional) + > --compattr + > --consumes (optional) + > --provides (optional) + + - Predefined Key/Values: + * BuildId - Identifier for the CI job + * BuildNumber - Build number for the CI job + * BuildUrl - url for the CI job + * Chart - Helm Chart for the component + * ChartNamespace - Name space for the component to be deployed to + * ChartRepo - Helm Chart Repo Name + * ChartRepoUrl - Helm Chart Repo Url + * ChartVersion - Helm Chart version + * CustomAction - Custom Action to assign to the Component + * DockerBuildDate - Timestamp when the image was created + * DockerRepo - Registry which the image was pushed to + * DockerSha - Digest for the image + * DockerTag - Tag for the image + * GitBranch - Git branch in the git repo + * GitCommit - Git commit that triggered the CI job + * GitRepo - Git repo that triggered the CI job + * GitTag - Git tag in the git repo + * GitUrl - Full url to the git repo + * operator - Operator name + * Readme - Readme location in the Git Repo + * ServiceOwner - Owner of the Service + * ServiceOwnerEmail - Email for the Owner of the Service + * ServiceOwnerPhone - Phone number for the Owner of the Service + +- `assign` - assigns a component version to an application verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --appname + > --appversion (optional) + +- `kv` - assigns the key/values pairs to the component verion + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --compname + > --compvariant (optional) + > --compversion (optional) + > --kvconfig + +- `envscript` - creates a bash file from the component toml file + - Usage: + > --envvars + > --envvars_sh + +- `export` - exports a domain including all objects to stdout + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + +- `import` - imports the export file into the new domain + - Usage: + > --dhurl + > --dhuser + > --dhpass + > --from_dom + > --to_dom + + Parameter Descriptions: + - `--dhurl` - DeployHub Url + - `--dhuser` - DeployHub User + - `--dhpass` - DeployHub Password + - `--appname` - Application Name + - `--appversion` - Application Version + - `--appautoinc` - Application Auto Increment Version + - `--deployenv` - Deployment Environment + - `--compname` - Component Name + - `--compvariant` - Component Variant + - `--compversion` - Component Version + - `--compautoinc` - Component Auto Increment Version + - `--kvconfig` - Directory containing the json and properties file + - `--crdatasource` - Change Request Data Source for the Component + - `--changerequest` - Change Request for Component, use multiple time for each Change Request Id + - `--deploydata` - The json file that contains the application, environment and log details + - `--from_domain` - Move from domain + - `--task` - Task to use for move + - `--envvars` - Env Variables TOML file + - `--envvars_sh` - Env Variables Output sh file + - `--docker` - docker Kind of the component item + - `--file` - file Kind of the component item + - `--compattr` - Component Attributes, use multiple time for each attr + - `--envs` - Environments to Associate App to, use multiple time for each env + - `--importfile` - File to Import + - `--fromdom` - From Domain + - `--todom` - To Domain + - `--msname` - New microservice being added to the cluster + - `--msbranch` - New microservice branch being added to the cluster + - `--consumes` - json file that lists the endpoints the component consumes. [ {"verb", "get", "path": "/weather"}] + - `--provides` - json file that lists the endpoints the component provides. [ {"verb", "get", "path": "/checkout"}] + + Example Jenkinsfile Snippet: + https://github.com/ortelius/compupdate/blob/main/Jenkinsfile + + + +%prep +%autosetup -n deployhub-9.3.210 + +%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-deployhub -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 9.3.210-1 +- Package Spec generated @@ -0,0 +1 @@ +2698a4c443e71a6ab57907d95a9a1b0b deployhub-9.3.210.tar.gz |