1
0

Accepting request 682404 from devel:languages:python

- Really run tests under python3
- Add patch to work with python3:
  * six.patch

OBS-URL: https://build.opensuse.org/request/show/682404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-FormEncode?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2019-03-10 08:33:24 +00:00 committed by Git OBS Bridge
commit 7960e6a25a
3 changed files with 2196 additions and 2 deletions

View File

@ -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>

View File

@ -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

2181
six.patch Normal file

File diff suppressed because it is too large Load Diff