forked from pool/python-FormEncode
- Really run tests under python3
- Add patch to work with python3: * six.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-FormEncode?expand=0&rev=22
This commit is contained in:
parent
be9be315ff
commit
2e5d2b5347
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 11:09:21 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Really run tests under python3
|
||||
- Add patch to work with python3:
|
||||
* six.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 16:23:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -28,13 +28,18 @@ URL: http://formencode.org
|
||||
Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
|
||||
Patch0: remove-online-tests.patch
|
||||
Patch1: new-pycountry.patch
|
||||
Patch2: six.patch
|
||||
BuildRequires: %{python_module dnspython}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pycountry}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2-dnspython
|
||||
Requires: python-dnspython
|
||||
Requires: python-pycountry
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-formencode = %{version}
|
||||
@ -51,6 +56,7 @@ for filling and generating forms.
|
||||
%setup -q -n FormEncode-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
dos2unix README.rst
|
||||
|
||||
%build
|
||||
@ -67,7 +73,7 @@ dos2unix README.rst
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
# excluded tests poll dns
|
||||
%python_expand PYTHONPATH=%{buildroot}%{python_sitelib} nosetests-%{python_bin_suffix} -v -e '(test_cyrillic_email|test_unicode_ascii_subgroup)' formencode/tests
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v -e '(test_cyrillic_email|test_unicode_ascii_subgroup)' formencode/tests
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user