#1 updates for EL8 support
Merged 2 months ago by radez. Opened 2 months ago by adeza.
rpms/ adeza/python-portend master  into  master

file modified
+9 -2

@@ -21,13 +21,14 @@ 

  

  BuildRequires:  python3-devel

  BuildRequires:  python3dist(jaraco.functools)

- BuildRequires:  python3dist(pytest) >= 3.5

+ BuildRequires:  python3dist(pytest) >= 3.4

  BuildRequires:  python3dist(pytest-cov)

- BuildRequires:  python3dist(pytest-flake8)

+ %{?fedora:BuildRequires: python3dist(pytest-flake8)}

  #BuildRequires:  python3dist(pytest-sugar) >= 0.9.1

  BuildRequires:  python3dist(setuptools)

  BuildRequires:  python3dist(setuptools-scm) >= 1.15

  BuildRequires:  python3dist(tempora) >= 1.8

+ BuildRequires:  python3dist(zipp)

  

  %description -n python3-%{pypi_name}

   por·tend pôrˈtend/ be a sign or warning that (something, especially something

@@ -40,6 +41,7 @@ 

  BuildRequires:  python3dist(jaraco.packaging) >= 3.2

  BuildRequires:  python3dist(rst.linker) >= 1.9

  BuildRequires:  python3dist(sphinx)

+ BuildRequires:  python3-more-itertools

  

  %description -n python-%{pypi_name}-doc

  Documentation for portend

@@ -66,6 +68,11 @@ 

  %py3_install

  

  %check

+ %if 0%{?el8}

+ # disable flake8 in the tests, need a newer version of pytest (3.5) which is not

+ # available on EL8, and is pulled in by python-pytest-flake8.

+ sed -i 's/ --flake8//' pytest.ini

+ %endif

  LANG=C.utf-8 %{__python3} -m pytest --ignore=build

  

  %files -n python3-%{pypi_name}

  • Adds python-zipp for building
  • Sets the pytest version to 3.4 which is what EL8 provides
  • Conditionally removes flake8 testing which can't be done with
    pytest and flake8 versions required

Pull-Request has been merged by radez

2 months ago