#1 Compatibility package with pytest 4.6.x
Merged 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ churchyard/python-pytest4 compat  into  master

python-pytest4.spec pytest.spec
file renamed
+21 -13
@@ -1,15 +1,17 @@ 

- Name:           pytest

+ Name:           python-pytest4

  Version:        4.6.10

- Release:        3%{?dist}

+ Release:        4%{?dist}

  Summary:        Simple powerful testing with Python

  License:        MIT

  URL:            https://pytest.org

- Source0:        %{pypi_source}

+ Source0:        %{pypi_source pytest}

  

  # The test in this specfile use pytest-timeout

  # When building pytest for the first time with new Python version

  # that is not possible as it depends on pytest

- %bcond_without timeout

+ # For compat package, this is disabled,

+ # because the timeout package depends on pytest

+ %bcond_with timeout

  

  # When building pytest for the first time with new Python version

  # we might not yet have all the BRs, this allows us to build without some that
@@ -36,7 +38,7 @@ 

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

  

  

- %package -n python3-%{name}

+ %package -n python3-pytest4

  Summary:        Simple powerful testing with Python

  BuildRequires:  python3-atomicwrites

  BuildRequires:  python3-attrs
@@ -63,15 +65,19 @@ 

  BuildRequires:  python3-twisted

  %endif

  

- %{?python_provide:%python_provide python3-%{name}}

- Provides:       pytest = %{version}-%{release}

- Conflicts:      python-pytest < 4.6

+ Provides:       pytest4 = %{version}-%{release}

  

- %description -n python3-%{name}

+ # We want people to use the new pytest version:

+ Provides:       deprecated()

+ 

+ # Explicit conflict with all other pytest versions for this Python:

+ Conflicts:      python%{python3_version}dist(pytest)

+ 

+ %description -n python3-pytest4

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

  

  %prep

- %autosetup -p1

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

  

  %build

  %py3_build
@@ -119,7 +125,7 @@ 

    --timeout=30

    %endif

  

- %files -n python3-%{name}

+ %files -n python3-pytest4

  %if %{with docs}

  %doc CHANGELOG.html

  %doc README.html
@@ -135,10 +141,12 @@ 

  %{_bindir}/py.test-%{python3_version}

  %{python3_sitelib}/pytest-*.egg-info/

  %{python3_sitelib}/_pytest/

- %{python3_sitelib}/pytest.py

- %{python3_sitelib}/__pycache__/pytest.*

+ %pycached %{python3_sitelib}/pytest.py

  

  %changelog

+ * Fri May 29 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.10-4

+ - Compatibility package with pytest 4.6.x

+ 

  * Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.10-3

  - Rebuilt for Python 3.9

  

no initial comment

rebased onto 4bb6066

4 years ago

rebased onto 3567b7f

4 years ago

rebased onto 3314485

4 years ago

Pull-Request has been merged by churchyard

4 years ago
Metadata