#4 Add test spec file
Merged 2 months ago by pkopkan. Opened 2 months ago by churchyard.
rpms/ churchyard/pyproject-rpm-macros ci_tests  into  master

@@ -0,0 +1,50 @@ 

+ %global pypi_name pytest

+ Name:           python-%{pypi_name}

+ Version:        5.0.0

+ Release:        0%{?dist}

+ Summary:        Simple powerful testing with Python

+ License:        MIT

+ URL:            https://pytest.org

+ Source0:        %{pypi_source}

+ 

+ BuildArch:      noarch

+ BuildRequires:  pyproject-rpm-macros

+ 

+ %description

+ py.test provides simple, yet powerful testing for Python.

+ 

+ 

+ %package -n python3-%{pypi_name}

+ Summary:        %{summary}

+ %{?python_provide:%python_provide python3-%{pypi_name}}

+ 

+ %description -n python3-%{pypi_name}

+ py.test provides simple, yet powerful testing for Python.

+ 

+ 

+ %prep

+ %autosetup -p1 -n %{pypi_name}-%{version}

+ 

+ 

+ %generate_buildrequires

+ %pyproject_buildrequires

+ 

+ 

+ %build

+ %pyproject_wheel

+ 

+ 

+ %install

+ %pyproject_install

+ 

+ 

+ %files -n python3-%{pypi_name}

+ %doc README.rst

+ %doc CHANGELOG.rst

+ %license LICENSE

+ %{_bindir}/pytest

+ %{_bindir}/py.test

+ %{python3_sitelib}/pytest-*.dist-info/

+ %{python3_sitelib}/_pytest/

+ %{python3_sitelib}/pytest.py

+ %{python3_sitelib}/__pycache__/pytest.*

This is a preparation for tests on the CI. Once we are able to run %generate_buildrequires multiple times I'll add it and we can try to build this package on the Fedora CI.

Note that 5.0.0 might have some unmet deps, but we can downgrade to 4.6 (if the pluggy update goes trough by then) or 4.4.

rebased onto d81f3df

2 months ago

Pull-Request has been merged by pkopkan

2 months ago