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:
commit
7960e6a25a
@ -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>
|
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
|
Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
|
||||||
Patch0: remove-online-tests.patch
|
Patch0: remove-online-tests.patch
|
||||||
Patch1: new-pycountry.patch
|
Patch1: new-pycountry.patch
|
||||||
|
Patch2: six.patch
|
||||||
|
BuildRequires: %{python_module dnspython}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module pycountry}
|
BuildRequires: %{python_module pycountry}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python2-dnspython
|
Requires: python-dnspython
|
||||||
|
Requires: python-pycountry
|
||||||
|
Requires: python-six
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: %{oldpython}-formencode = %{version}
|
Provides: %{oldpython}-formencode = %{version}
|
||||||
@ -51,6 +56,7 @@ for filling and generating forms.
|
|||||||
%setup -q -n FormEncode-%{version}
|
%setup -q -n FormEncode-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
dos2unix README.rst
|
dos2unix README.rst
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -67,7 +73,7 @@ dos2unix README.rst
|
|||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
# excluded tests poll dns
|
# 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}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user