-
Notifications
You must be signed in to change notification settings - Fork 25
/
python-pylero.spec
140 lines (106 loc) · 4.72 KB
/
python-pylero.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Name: python-pylero
Version: 0.1.0
Release: 1%{?dist}
Summary: Python SDK for Polarion
License: MIT
URL: https://github.com/RedHatQE/pylero
Source: %{url}/archive/%{version}/pylero-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
This is Pylero, the Python wrapper for the Polarion WSDL API. The Pylero
wrapper enables native python access to Polarion objects and functionality
using object oriented structure and functionality. This allows the devlopers to
use Pylero in a natural fashion without being concerned about the Polarion
details.
All Pylero objects inherit from BasePolarion. The objects used in the library
are all generated from the SOAP factory class, using the python-suds library.
The Pylero class attributes are generated dynamically as properties, based on
a mapping dict between the pylero naming convention and the Polarion attribute
names.
The use of properties allows the pylero object attributes to be virtual with no
need for syncing between them and the Polarion objects they are based on.
The Polarion WSDL API does not implement validation/verification of data passed
in, so the Pylero library takes care of this itself. All enums are validated
before being sent to the server and raise an error if not using a valid value.
A number of workflow implementations are also included, for example when
creating a Document, it automatically creates the Heading work item at the same
time.
Polarion Work Items are configured per installation, to give native workitem
objects (such as TestCase), the library connects to the Polarion server,
downloads the list of workitems and creates them.}
%description %_description
%package -n python3-pylero
Summary: %{summary}
%description -n python3-pylero %_description
%prep
%autosetup -p1 -n pylero-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files pylero
%global _pylero_import_exclude %{expand:
-e pylero.build -e pylero.build_linked_work_item -e pylero.cli.cmd -e pylero.document
-e pylero.plan -e pylero.plan_record -e pylero.test_record -e pylero.test_run
-e pylero.work_item
}
%check
# If the Polarion server URL is not specified in config some libraries will
# fail to import, so exclude the modules which require the server url
%pyproject_check_import %_pylero_import_exclude
%files -n python3-pylero -f %{pyproject_files}
%doc README.md
%{_bindir}/pylero
%{_bindir}/pylero-cmd
%changelog
* Mon May 20 2024 Wayne Sun <[email protected]> 0.1.0-1
- feat: add flag for incident creation (konstantin.althaus.ext@vaillant-
group.com)
- refactor: safely import test case workitem type
- fix: catch exceptions, avoid empty tables (konstantin.althaus.ext@vaillant-
group.com)
- refactor: auxiliary functions become methods
- feat: add dummy TestCase class ([email protected])
- fix: add project_id to _WorkItem ([email protected])
- Adding methods that get document revision/s ([email protected])
- fix: erase title only for subcomments
- Feat/link external workitmes (#176)
* Tue Mar 05 2024 Wayne Sun <[email protected]>
- Remove Python 3.6 and add 3.12
- Bug fix and doc update
* Tue Mar 14 2023 Wayne Sun <[email protected]> 0.0.8-1
- Add token config support
* Thu Feb 23 2023 Wayne Sun <[email protected]> 0.0.7-1
- Remove platform related info
* Fri Feb 17 2023 Wayne Sun <[email protected]> 0.0.6-1
- Update suds dependency for CentOS Stream
- Rebuilt doc to latest ([email protected])
* Wed Dec 21 2022 Wayne Sun <[email protected]> 0.0.5-1
- Rename spec to python-pylero
- Bug fixes
* Tue Sep 13 2022 Wayne Sun <[email protected]> 0.0.4-1
- Fix EPEL9 yum suds package ([email protected])
- Switch back to modern rpm spec ([email protected])
- Using modern pypi package build system interface ([email protected])
- Fix the config file path ([email protected])
- Update contact and copyright info ([email protected])
- Code style update ([email protected])
- Remove the sample config file in data_files ([email protected])
- Update spec with improvement ([email protected])
- use cft.multi while parsing array custom fields ([email protected])
- Fix testrun search method params with limit ([email protected])
* Tue Aug 02 2022 Wayne Sun <[email protected]> 0.0.3-1
- new package built with tito
- Switch from suds-py3 to suds
- Downgrade to 201x python rpm build spec
- Remove rpm build action
- Add Fedora rpm build section
* Mon May 23 2022 Wayne Sun <[email protected]> - 0.0.2-1
- Initial packaging