#6 switch from nose to pytest
Merged a year ago by amoralej. Opened a year ago by ktdreyer.
rpms/ ktdreyer/python-routes rawhide-pytest  into  rawhide

The added file is too large to be shown here, see it at: 0001-switch-from-nose-to-pytest.patch
file modified
+6 -4
@@ -7,12 +7,15 @@ 

  License: MIT

  URL: https://github.com/bbangert/routes

  Source0: https://pypi.io/packages/source/R/Routes/Routes-%{version}.tar.gz

+ 

+ Patch0001: 0001-switch-from-nose-to-pytest.patch

+ 

  BuildArch: noarch

  

  BuildRequires: python3-devel

  BuildRequires: python3dist(setuptools)

  # nose removal in https://github.com/bbangert/routes/pull/107

- BuildRequires: python3dist(nose)

+ BuildRequires: python3dist(pytest)

  BuildRequires: python3dist(webtest)

  BuildRequires: python3dist(webob)

  BuildRequires: python3dist(repoze-lru)
@@ -33,8 +36,7 @@ 

  %description -n python3-routes %_description

  

  %prep

- %setup -q -n Routes-%{version}

- 

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

  

  %build

  %py3_build
@@ -45,7 +47,7 @@ 

  

  

  %check

- PYTHONPATH=$(pwd) nosetests-%{python3_version}

+ PYTHONPATH=$(pwd) python3 -m pytest

  

  

  %files -n python3-routes

Nose is deprecated. Use pytest for the test suite instead.

This patch is slightly different than https://github.com/bbangert/routes/pull/107 upstream, because tox.ini and setup.cfg are slightly different in the v2.5.1 tarball on PyPI.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/31dc733dfb2d4939a7b140c3b9059edf

would it be possible to get a new release once the patch is merged so that we don't need to push the patch in the distgit?

It would be great to get the patch upstream. My upstream PR has been open for 1 year, 9 months, and 20 days.

Pull-Request has been merged by amoralej

a year ago