From 207c1e86ef42b412b912682a4904ae3d01c5e16a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 04:02:06 +0000 Subject: automatic import of python-polarion --- .gitignore | 1 + python-polarion.spec | 333 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 335 insertions(+) create mode 100644 python-polarion.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1ea5538 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/polarion-1.2.1.tar.gz diff --git a/python-polarion.spec b/python-polarion.spec new file mode 100644 index 0000000..76d1920 --- /dev/null +++ b/python-polarion.spec @@ -0,0 +1,333 @@ +%global _empty_manifest_terminate_build 0 +Name: python-polarion +Version: 1.2.1 +Release: 1 +Summary: Polarion client for Python +License: MIT License +URL: https://github.com/jesper-raemaekers/python-polarion +Source0: https://mirrors.aliyun.com/pypi/web/packages/a6/52/999247e825f682182df7a604a177ed976c0d1df74186d5bb98cfbeb49494/polarion-1.2.1.tar.gz +BuildArch: noarch + +Requires: python3-zeep +Requires: python3-lxml +Requires: python3-texttable + +%description +# Python-polarion +[![Build status](https://dev.azure.com/jraemaekers/Python%20Polarion/_apis/build/status/Polarion-Python%20package-CI)](https://dev.azure.com/jraemaekers/Python%20Polarion/_build/latest?definitionId=5) +![Coverage](https://img.shields.io/azure-devops/coverage/jraemaekers/Python%20Polarion/5) +![Test](https://img.shields.io/azure-devops/tests/jraemaekers/Python%20Polarion/5) +[![Documentation Status](https://readthedocs.org/projects/python-polarion/badge/?version=latest)](https://python-polarion.readthedocs.io/en/latest/?badge=latest) +[![Downloads](https://pepy.tech/badge/polarion)](https://pepy.tech/project/polarion) + + +This package allows the user to access many Polarion items like workitems, test run, plans and documents. + + +# Feature overview + +This package can, among others, read, modify and create: +- Workitems +- Test runs from templates +- Plans +- Documents + +Work with attachments in workitems and test runs. +Work with custom field in workitems and documents. + +# Installation + +``` +pip install polarion +``` + +# Getting started + +Creating the Polarion client and getting workitems, test runs or plans: + +```python +from polarion import polarion +client = polarion.Polarion('http://example.com/polarion', 'user', 'password') +project = client.getProject('Python') +workitem = project.getWorkitem('PYTH-510') +run = project.getTestRun('SWQ-0001') +plan = project.getPlan('00002') +``` + +Modifying workitems: + +```python +workitem.setDescription('Some description..') +workitem.addComment('test comment', 'sent from Python') +workitem.addHyperlink('google.com', workitem.HyperlinkRoles.EXTERNAL_REF) +``` + +Or test run results: +```python +run = project.getTestRun('SWQ-0001') +run.records[0].setResult(record.Record.ResultType.PASSED, ' Comment with test result') +``` + +Adding workitems to a plan: +```python +plan.addToPlan(workitem) +plan.removeFromPlan(workitem) +``` + + +More examples to be found in the quick start section of the documentation. +[Go to the documentation](https://python-polarion.readthedocs.io/) + +# How does it work? + +This project uses the SOAP API of Polarion. This API exposes most of the user interactions you can do with Polarion like creating or editing workitems, plans and test runs. +The API is divided in seven different services which you can find from your Polarion instance at the url http://domain.com/polarion/ws/services. +Each of the services provides a WSDL file detailing the available functions. (Also available form you local instance at http://domain.com/polarion/ws/services/TrackerWebService?wsdl) +For this project the TrackerWebService, PlanningWebService and TestManagementWebService are the most used ones. + +In general the project attempts for the objects (like workitems) to behave like Python objects which you can modify and are saved in the background. +Where the API provide operation to preform an action that API call is used, and the object is reloaded from polarion to reflect the changes locally. + +The API does not allow access to the project administration. + +# Dependencies + +The package uses; requests, urllib3 and zeep. + +It is tested for Python version 3.6 through 3.10. + +# Known issues or missing features +- No way of knowing the test run possible statuses. + + + +%package -n python3-polarion +Summary: Polarion client for Python +Provides: python-polarion +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-polarion +# Python-polarion +[![Build status](https://dev.azure.com/jraemaekers/Python%20Polarion/_apis/build/status/Polarion-Python%20package-CI)](https://dev.azure.com/jraemaekers/Python%20Polarion/_build/latest?definitionId=5) +![Coverage](https://img.shields.io/azure-devops/coverage/jraemaekers/Python%20Polarion/5) +![Test](https://img.shields.io/azure-devops/tests/jraemaekers/Python%20Polarion/5) +[![Documentation Status](https://readthedocs.org/projects/python-polarion/badge/?version=latest)](https://python-polarion.readthedocs.io/en/latest/?badge=latest) +[![Downloads](https://pepy.tech/badge/polarion)](https://pepy.tech/project/polarion) + + +This package allows the user to access many Polarion items like workitems, test run, plans and documents. + + +# Feature overview + +This package can, among others, read, modify and create: +- Workitems +- Test runs from templates +- Plans +- Documents + +Work with attachments in workitems and test runs. +Work with custom field in workitems and documents. + +# Installation + +``` +pip install polarion +``` + +# Getting started + +Creating the Polarion client and getting workitems, test runs or plans: + +```python +from polarion import polarion +client = polarion.Polarion('http://example.com/polarion', 'user', 'password') +project = client.getProject('Python') +workitem = project.getWorkitem('PYTH-510') +run = project.getTestRun('SWQ-0001') +plan = project.getPlan('00002') +``` + +Modifying workitems: + +```python +workitem.setDescription('Some description..') +workitem.addComment('test comment', 'sent from Python') +workitem.addHyperlink('google.com', workitem.HyperlinkRoles.EXTERNAL_REF) +``` + +Or test run results: +```python +run = project.getTestRun('SWQ-0001') +run.records[0].setResult(record.Record.ResultType.PASSED, ' Comment with test result') +``` + +Adding workitems to a plan: +```python +plan.addToPlan(workitem) +plan.removeFromPlan(workitem) +``` + + +More examples to be found in the quick start section of the documentation. +[Go to the documentation](https://python-polarion.readthedocs.io/) + +# How does it work? + +This project uses the SOAP API of Polarion. This API exposes most of the user interactions you can do with Polarion like creating or editing workitems, plans and test runs. +The API is divided in seven different services which you can find from your Polarion instance at the url http://domain.com/polarion/ws/services. +Each of the services provides a WSDL file detailing the available functions. (Also available form you local instance at http://domain.com/polarion/ws/services/TrackerWebService?wsdl) +For this project the TrackerWebService, PlanningWebService and TestManagementWebService are the most used ones. + +In general the project attempts for the objects (like workitems) to behave like Python objects which you can modify and are saved in the background. +Where the API provide operation to preform an action that API call is used, and the object is reloaded from polarion to reflect the changes locally. + +The API does not allow access to the project administration. + +# Dependencies + +The package uses; requests, urllib3 and zeep. + +It is tested for Python version 3.6 through 3.10. + +# Known issues or missing features +- No way of knowing the test run possible statuses. + + + +%package help +Summary: Development documents and examples for polarion +Provides: python3-polarion-doc +%description help +# Python-polarion +[![Build status](https://dev.azure.com/jraemaekers/Python%20Polarion/_apis/build/status/Polarion-Python%20package-CI)](https://dev.azure.com/jraemaekers/Python%20Polarion/_build/latest?definitionId=5) +![Coverage](https://img.shields.io/azure-devops/coverage/jraemaekers/Python%20Polarion/5) +![Test](https://img.shields.io/azure-devops/tests/jraemaekers/Python%20Polarion/5) +[![Documentation Status](https://readthedocs.org/projects/python-polarion/badge/?version=latest)](https://python-polarion.readthedocs.io/en/latest/?badge=latest) +[![Downloads](https://pepy.tech/badge/polarion)](https://pepy.tech/project/polarion) + + +This package allows the user to access many Polarion items like workitems, test run, plans and documents. + + +# Feature overview + +This package can, among others, read, modify and create: +- Workitems +- Test runs from templates +- Plans +- Documents + +Work with attachments in workitems and test runs. +Work with custom field in workitems and documents. + +# Installation + +``` +pip install polarion +``` + +# Getting started + +Creating the Polarion client and getting workitems, test runs or plans: + +```python +from polarion import polarion +client = polarion.Polarion('http://example.com/polarion', 'user', 'password') +project = client.getProject('Python') +workitem = project.getWorkitem('PYTH-510') +run = project.getTestRun('SWQ-0001') +plan = project.getPlan('00002') +``` + +Modifying workitems: + +```python +workitem.setDescription('Some description..') +workitem.addComment('test comment', 'sent from Python') +workitem.addHyperlink('google.com', workitem.HyperlinkRoles.EXTERNAL_REF) +``` + +Or test run results: +```python +run = project.getTestRun('SWQ-0001') +run.records[0].setResult(record.Record.ResultType.PASSED, ' Comment with test result') +``` + +Adding workitems to a plan: +```python +plan.addToPlan(workitem) +plan.removeFromPlan(workitem) +``` + + +More examples to be found in the quick start section of the documentation. +[Go to the documentation](https://python-polarion.readthedocs.io/) + +# How does it work? + +This project uses the SOAP API of Polarion. This API exposes most of the user interactions you can do with Polarion like creating or editing workitems, plans and test runs. +The API is divided in seven different services which you can find from your Polarion instance at the url http://domain.com/polarion/ws/services. +Each of the services provides a WSDL file detailing the available functions. (Also available form you local instance at http://domain.com/polarion/ws/services/TrackerWebService?wsdl) +For this project the TrackerWebService, PlanningWebService and TestManagementWebService are the most used ones. + +In general the project attempts for the objects (like workitems) to behave like Python objects which you can modify and are saved in the background. +Where the API provide operation to preform an action that API call is used, and the object is reloaded from polarion to reflect the changes locally. + +The API does not allow access to the project administration. + +# Dependencies + +The package uses; requests, urllib3 and zeep. + +It is tested for Python version 3.6 through 3.10. + +# Known issues or missing features +- No way of knowing the test run possible statuses. + + + +%prep +%autosetup -n polarion-1.2.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-polarion -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 1.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..2bd1ae2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +39865b158879e17977cbc742b1296680 polarion-1.2.1.tar.gz -- cgit v1.2.3