-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting-farm.spec
More file actions
40 lines (31 loc) · 933 Bytes
/
testing-farm.spec
File metadata and controls
40 lines (31 loc) · 933 Bytes
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
Name: testing-farm
Version: 0.0.0
Release: %autorelease
Summary: Testing Farm CLI
License: Apache-2.0
URL: https://gitlab.com/testing-farm/cli
Source0: %{pypi_source tft_cli}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: tomcli
%description
CLI tool for interacting with the Testing Farm API.
%prep
%autosetup -n tft_cli-%{version}
%generate_buildrequires
# Drop version pinning (we use the versions available in Fedora)
for DEP in $(tomcli get -F newline-keys pyproject.toml tool.poetry.dependencies)
do
tomcli set pyproject.toml replace tool.poetry.dependencies.${DEP} ".*" "*"
done
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files tft
%check
%pyproject_check_import
%files -n testing-farm -f %{pyproject_files}
#%doc README.adoc # it's not in pypi source archive
%{_bindir}/testing-farm