Add test that uses poetry
This commit is contained in:
parent
11da7b793a
commit
f3157b5237
46
tests/python-clikit.spec
Normal file
46
tests/python-clikit.spec
Normal file
@ -0,0 +1,46 @@
|
||||
%global pypi_name clikit
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.3.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Builds beautiful and testable command line interfaces
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/sdispater/clikit
|
||||
Source0: %{pypi_source}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
@ -22,6 +22,9 @@
|
||||
- pluggy:
|
||||
dir: .
|
||||
run: ./mocktest.sh python-pluggy
|
||||
- clikit:
|
||||
dir: .
|
||||
run: ./mocktest.sh python-clikit
|
||||
required_packages:
|
||||
- mock
|
||||
- rpmdevtools
|
||||
|
Loading…
Reference in New Issue
Block a user