forked from pool/python-exam
Accepting request 788525 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/788525 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exam?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 26 10:32:50 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Add remove_nose.patch
|
||||
* as nose won't work with Python 3.9/3.10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:47:48 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-exam
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -24,13 +24,14 @@ Release: 0
|
||||
Summary: Helpers for better testing
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/fluxx/exam
|
||||
URL: https://github.com/fluxx/exam
|
||||
Source: https://files.pythonhosted.org/packages/source/e/exam/exam-%{version}.tar.gz
|
||||
# https://github.com/Fluxx/exam/pull/50
|
||||
Patch0: remove_nose.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
%ifpython2
|
||||
@@ -50,6 +51,7 @@ conventions and adhering to the unit testing interface.
|
||||
|
||||
%prep
|
||||
%setup -q -n exam-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -60,7 +62,7 @@ conventions and adhering to the unit testing interface.
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py nosetests
|
||||
%python_exec -m unittest discover -s tests/ -v
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
18
remove_nose.patch
Normal file
18
remove_nose.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/setup.py 2020-03-26 12:27:17.135857081 +0100
|
||||
+++ b/setup.py 2020-03-26 12:27:32.139881471 +0100
|
||||
@@ -10,14 +10,9 @@
|
||||
|
||||
install_requires = ['mock']
|
||||
lint_requires = ['pep8', 'pyflakes']
|
||||
-tests_require = ['nose']
|
||||
-
|
||||
-if sys.version_info < (2, 7):
|
||||
- tests_require.append('unittest2')
|
||||
+tests_require = ['unittest']
|
||||
|
||||
setup_requires = []
|
||||
-if 'nosetests' in sys.argv[1:]:
|
||||
- setup_requires.append('nose')
|
||||
|
||||
setup(
|
||||
name='exam',
|
||||
Reference in New Issue
Block a user