Add integration test for package with setuptools setup_requires

This commit is contained in:
Miro Hrončok 2020-09-23 11:43:35 +02:00
parent 3b95c7d66c
commit b1f03d7f51
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,50 @@
Name: python-distroinfo
Version: 0.3.2
Release: 0%{?dist}
Summary: Parsing and querying distribution metadata stored in text/YAML files
License: ASL 2.0
URL: https://github.com/softwarefactory-project/distroinfo
Source0: %{pypi_source distroinfo}
BuildArch: noarch
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: git-core
%description
This package uses setuptools and pbr.
It has setup_requires and tests that %%pyproject_buildrequires correctly
handles that including runtime requirements.
%package -n python3-distroinfo
Summary: %{summary}
%description -n python3-distroinfo
...
%prep
%autosetup -p1 -n distroinfo-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files distroinfo
%check
%pytest
%files -n python3-distroinfo -f %{pyproject_files}
%doc README.rst AUTHORS
%license LICENSE

View File

@ -25,6 +25,9 @@
- clikit: - clikit:
dir: . dir: .
run: ./mocktest.sh python-clikit run: ./mocktest.sh python-clikit
- distroinfo:
dir: .
run: ./mocktest.sh python-distroinfo
- tldr: - tldr:
dir: . dir: .
run: ./mocktest.sh tldr run: ./mocktest.sh tldr