commit python-FormEncode for openSUSE:Factory

2020-07-15 Thread root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2020-07-15 12:06:15

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new.3060 (New)


Package is "python-FormEncode"

Wed Jul 15 12:06:15 2020 rev:15 rq:820001 version:1.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2019-03-10 09:33:29.300203424 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-FormEncode.new.3060/python-FormEncode.changes
2020-07-15 12:07:01.236280688 +0200
@@ -1,0 +2,8 @@
+Fri Jul 10 12:51:17 UTC 2020 - pgaj...@suse.com
+
+- switch from nose to pytest
+- added patches
+  fix https://github.com/formencode/formencode/pull/154
+  + python-FormEncode-remove-nose.patch
+
+---

New:

  python-FormEncode-remove-nose.patch



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.LIq3rU/_old  2020-07-15 12:07:11.676291619 +0200
+++ /var/tmp/diff_new_pack.LIq3rU/_new  2020-07-15 12:07:11.680291624 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2019 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
@@ -29,9 +29,11 @@
 Patch0: remove-online-tests.patch
 Patch1: new-pycountry.patch
 Patch2: six.patch
+# https://github.com/formencode/formencode/pull/154
+Patch3: python-FormEncode-remove-nose.patch
 BuildRequires:  %{python_module dnspython}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module pycountry}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  dos2unix
@@ -57,6 +59,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 dos2unix README.rst
 
 %build
@@ -73,7 +76,7 @@
 %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
+%pytest -k 'not (test_cyrillic_email or test_unicode_ascii_subgroup)' 
formencode/tests
 
 %files %{python_files}
 %doc README.rst

++ python-FormEncode-remove-nose.patch ++
Index: FormEncode-1.3.1/formencode/tests/test_context.py
===
--- FormEncode-1.3.1.orig/formencode/tests/test_context.py  2020-07-10 
13:21:48.125612252 +0200
+++ FormEncode-1.3.1/formencode/tests/test_context.py   2020-07-10 
14:11:53.460309142 +0200
@@ -1,55 +1,55 @@
 from __future__ import absolute_import
-from nose.tools import assert_raises
+import unittest
 
 from formencode.context import Context, ContextRestoreError
 
 c1 = Context(default=None)
 c2 = Context()
 
+class TestContext(unittest.TestCase):
 
-def test_one():
-state = c1.set(foo=1)
-assert_is(c1, 'foo', 1)
-state.restore()
-assert_is(c1, 'foo', None)
-state = c1.set(foo=2)
-state2 = c2.set(foo='test')
-assert_is(c1, 'foo', 2)
-assert_is(c2, 'foo', 'test')
-change_state(c1, assert_is, c1, 'foo', 3, foo=3)
-assert_is(c1, 'foo', 2)
-state.restore()
-state2.restore()
-
-
-def change_state(context, func, *args, **change):
-state = context.set(**change)
-try:
-return func(*args)
-finally:
+def change_state(self, context, func, *args, **change):
+state = context.set(**change)
+try:
+return func(*args)
+finally:
+state.restore()
+
+def assert_is(self, ob, attr, value):
+assert getattr(ob, attr) == value
+
+
+def test_fail(self):
+c3 = Context()
+res1 = c3.set(a=1)
+res2 = c3.set(b=2)
+with self.assertRaises(ContextRestoreError):
+res1.restore()
+assert c3.b == 2
+assert c3.a == 1
+res2.restore()
+res1.restore()
+
+def test_default(self):
+con = Context()
+res = con.set(a=2)
+con.set_default(a=4, b=1)
+assert con.b == 1
+assert con.a == 2
+res.restore()
+assert con.a == 4
+
+def test_one(self):
+state = c1.set(foo=1)
+self.assert_is(c1, 'foo', 1)
 state.restore()
+self.assert_is(c1, 'foo', None)
+state = c1.set(foo=2)
+state2 = c2.set(foo='test')
+self.assert_is(c1, 'foo', 2)
+self.assert_is(c2, 'foo', 'test')
+self.change_state(c1, self.assert_is, 

commit python-FormEncode for openSUSE:Factory

2019-03-10 Thread root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2019-03-10 09:33:24

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new.28833 (New)


Package is "python-FormEncode"

Sun Mar 10 09:33:24 2019 rev:14 rq:682404 version:1.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2019-03-05 12:24:54.428849017 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-FormEncode.new.28833/python-FormEncode.changes
   2019-03-10 09:33:29.300203424 +0100
@@ -1,0 +2,7 @@
+Thu Mar  7 11:09:21 UTC 2019 - Tomáš Chvátal 
+
+- Really run tests under python3
+- Add patch to work with python3:
+  * six.patch
+
+---

New:

  six.patch



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.D7EwsN/_old  2019-03-10 09:33:32.452202633 +0100
+++ /var/tmp/diff_new_pack.D7EwsN/_new  2019-03-10 09:33:32.472202628 +0100
@@ -28,13 +28,18 @@
 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 @@
 %setup -q -n FormEncode-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 dos2unix README.rst
 
 %build
@@ -67,7 +73,7 @@
 %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

++ six.patch ++
 2181 lines (skipped)




commit python-FormEncode for openSUSE:Factory

2019-03-05 Thread root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2019-03-05 12:24:50

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new.28833 (New)


Package is "python-FormEncode"

Tue Mar  5 12:24:50 2019 rev:13 rq:681513 version:1.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2018-12-13 19:44:50.868981075 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-FormEncode.new.28833/python-FormEncode.changes
   2019-03-05 12:24:54.428849017 +0100
@@ -1,0 +2,16 @@
+Mon Mar  4 16:23:43 UTC 2019 - Tomáš Chvátal 
+
+- Remove online tests:
+  * remove-online-tests.patch
+- Work with new pycountry:
+  * new-pycountry.patch
+- Run tests
+
+---
+Mon Dec 10 14:55:26 UTC 2018 - Tomáš Chvátal 
+
+- Fix fdupes call
+- Update to 1.3.1:
+  * no obvious changelog
+
+---

Old:

  FormEncode-1.3.0.zip
  FormEncode-doc-infrastructure.tar.gz

New:

  FormEncode-1.3.1.tar.gz
  new-pycountry.patch
  remove-online-tests.patch



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.3t11GE/_old  2019-03-05 12:24:55.792848601 +0100
+++ /var/tmp/diff_new_pack.3t11GE/_new  2019-03-05 12:24:55.796848600 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,21 +19,22 @@
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-FormEncode
-Version:1.3.0
+Version:1.3.1
 Release:0
 Summary:HTML form validation, generation, and conversion package
 License:Python-2.0
 Group:  Development/Languages/Python
-Url:http://formencode.org
-Source: 
https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
-Source1:FormEncode-doc-infrastructure.tar.gz
-# Documentation requirements:
+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
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pycountry}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  dos2unix
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-Sphinx
-BuildRequires:  unzip
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  python2-dnspython
 BuildArch:  noarch
 %ifpython2
 Provides:   %{oldpython}-formencode = %{version}
@@ -46,40 +47,30 @@
 a declarative form of defining the validation, and decoupled processes
 for filling and generating forms.
 
-%package -n %{name}-doc
-Summary:HTML form validation, generation, and conversion package
-Group:  Development/Libraries/Python
-Provides:   %{python_module FormEncode-doc = %{version}}
-
-%description -n %{name}-doc
-This package contains documentation files for %{name}.
-
 %prep
-%setup -q -n FormEncode-%{version} -a1
-find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
-sed -i 's/\r$//g' PKG-INFO README.rst
-sed -i '/^:date:/d' docs/*.txt # fix build-compare
+%setup -q -n FormEncode-%{version}
+%patch0 -p1
+%patch1 -p1
+dos2unix README.rst
 
 %build
 %python_build
-%{_python_use_flavor python3}
-python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo && mv 
build/sphinx/html html
 
 %install
 %python_install
 
-# install documentation
-rm -r %{buildroot}%{python_sitelib}/docs # remove misplaced documentation
+# remove misplaced documentation
+%python_expand rm -r %{buildroot}%{$python_sitelib}/docs
 
-%fdupes %{buildroot}%{_prefix}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%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
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc README.rst
 %{python_sitelib}/*
 
-%files -n %{name}-doc
-%defattr(-,root,root,-)
-%doc html
-
 %changelog

++ FormEncode-doc-infrastructure.tar.gz -> FormEncode-1.3.1.tar.gz ++
 28478 lines of diff (skipped)

++ new-pycountry.patch ++
From: Chris Lamb 
Date: Mo

commit python-FormEncode for openSUSE:Factory

2018-12-13 Thread root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2018-12-13 19:44:50

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new.28833 (New)


Package is "python-FormEncode"

Thu Dec 13 19:44:50 2018 rev:12 rq:654062 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2017-10-11 22:56:25.481866597 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-FormEncode.new.28833/python-FormEncode.changes
   2018-12-13 19:44:50.868981075 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:48:11 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.S90yWn/_old  2018-12-13 19:44:51.308980502 +0100
+++ /var/tmp/diff_new_pack.S90yWn/_new  2018-12-13 19:44:51.312980497 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -28,7 +28,6 @@
 Source: 
https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
 Source1:FormEncode-doc-infrastructure.tar.gz
 # Documentation requirements:
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros





commit python-FormEncode for openSUSE:Factory

2017-10-11 Thread root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2017-10-11 22:56:24

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Wed Oct 11 22:56:24 2017 rev:11 rq:522042 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2016-03-16 10:34:29.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2017-10-11 22:56:25.481866597 +0200
@@ -1,0 +2,7 @@
+Thu Aug 24 13:38:57 UTC 2017 - jmate...@suse.com
+
+- singlespec auto-conversion
+- common -doc subpackage
+- improve packaging of docs
+
+---
@@ -255,0 +263 @@
+



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.9U20qU/_old  2017-10-11 22:56:26.377827305 +0200
+++ /var/tmp/diff_new_pack.9U20qU/_new  2017-10-11 22:56:26.397826428 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,42 +16,43 @@
 #
 
 
+%define oldpython python
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-FormEncode
 Version:1.3.0
 Release:0
-Url:http://formencode.org
 Summary:HTML form validation, generation, and conversion package
 License:Python-2.0
 Group:  Development/Languages/Python
-Source: 
http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
+Url:http://formencode.org
+Source: 
https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
 Source1:FormEncode-doc-infrastructure.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+# Documentation requirements:
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-Sphinx
 BuildRequires:  unzip
-Provides:   python-formencode = %{version}
-Obsoletes:  python-formencode < %{version}
-# Documentation requirements:
-BuildRequires:  python-Sphinx
-
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
+%ifpython2
+Provides:   %{oldpython}-formencode = %{version}
+Obsoletes:  %{oldpython}-formencode < %{version}
 %endif
+%python_subpackages
 
 %description
 FormEncode validates and converts nested structures. It allows for
 a declarative form of defining the validation, and decoupled processes
 for filling and generating forms.
 
-%package doc
+%package -n %{name}-doc
 Summary:HTML form validation, generation, and conversion package
 Group:  Development/Libraries/Python
-Requires:   %{name} = %{version}
+Provides:   %{python_module FormEncode-doc = %{version}}
 
-%description doc
+%description -n %{name}-doc
 This package contains documentation files for %{name}.
 
 %prep
@@ -61,29 +62,25 @@
 sed -i '/^:date:/d' docs/*.txt # fix build-compare
 
 %build
-python setup.py build
-python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
+%python_build
+%{_python_use_flavor python3}
+python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo && mv 
build/sphinx/html html
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
 # install documentation
-rm -r %{buildroot}/%{python_sitelib}/docs # remove misplaced documentation
-mkdir -p %{buildroot}%{_docdir}/%{name}
-cp -r README.rst build/sphinx/html %{buildroot}%{_docdir}/%{name}/
+rm -r %{buildroot}%{python_sitelib}/docs # remove misplaced documentation
 
-%fdupes %{buildroot}/%{_prefix}
+%fdupes %{buildroot}%{_prefix}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%exclude %{_docdir}/%{name}/html
-%doc %dir %{_docdir}/%{name}/
-%doc %{_docdir}/%{name}/README.rst
+%doc README.rst
 %{python_sitelib}/*
 
-%files doc
+%files -n %{name}-doc
 %defattr(-,root,root,-)
-%doc %dir %{_docdir}/%{name}/html
-%doc %{_docdir}/%{name}/html/*
+%doc html
 
 %changelog





commit python-FormEncode for openSUSE:Factory

2016-03-16 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2016-03-16 10:34:27

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2015-05-10 10:46:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2016-03-16 10:34:29.0 +0100
@@ -1,0 +2,5 @@
+Wed Mar  9 10:07:35 UTC 2016 - bwiedem...@suse.com
+
+- Drop build date from doc to fix build-compare
+
+---



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.omibG3/_old  2016-03-16 10:34:29.0 +0100
+++ /var/tmp/diff_new_pack.omibG3/_new  2016-03-16 10:34:29.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -58,6 +58,7 @@
 %setup -q -n FormEncode-%{version} -a1
 find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
 sed -i 's/\r$//g' PKG-INFO README.rst
+sed -i '/^:date:/d' docs/*.txt # fix build-compare
 
 %build
 python setup.py build





commit python-FormEncode for openSUSE:Factory

2015-05-10 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2015-05-10 10:46:16

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2013-10-25 11:16:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2015-05-10 10:46:17.0 +0200
@@ -1,0 +2,21 @@
+Tue May  5 14:33:11 UTC 2015 - benoit.mo...@gmx.fr
+
+- update to version 1.3.0:
+  * Support validation of email addresses with unicode domain names
+  * FormEncode 1.3 is no longer compatible with Python 2.3, 2.4, or
+2.5
+  * FormEncode now also runs under Python 3.2 and 3.3
+  * Validation of email addresses using resolve_domain option now
+requires the dnspython third party library instead of pyDNS
+  * The FancyValidator methods _to_python, _from_python,
+validate_python and validate_other have been renamed to
+_convert_to_python, _convert_from_python, _validate_python and
+_validate_other, respectively
+- add fdupes as BuildRequires and call it after install
+- fix end of line of README.rst
+- remove chmod of msgfmt.py: file deleted upstream
+- install html documentation in the docdir of the main package
+- do not install PKG-INFO in the documentation: already provided
+  by the egg-info
+
+---

Old:

  FormEncode-1.2.6.zip

New:

  FormEncode-1.3.0.zip



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.V8aPkv/_old  2015-05-10 10:46:17.0 +0200
+++ /var/tmp/diff_new_pack.V8aPkv/_new  2015-05-10 10:46:17.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   python-FormEncode
-Version:1.2.6
+Version:1.3.0
 Release:0
 Url:http://formencode.org
 Summary:HTML form validation, generation, and conversion package
@@ -26,6 +26,7 @@
 Source: 
http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
 Source1:FormEncode-doc-infrastructure.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  fdupes
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 BuildRequires:  unzip
@@ -56,7 +57,7 @@
 %prep
 %setup -q -n FormEncode-%{version} -a1
 find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
-sed -i 's/\r$//g' PKG-INFO formencode/i18n/msgfmt.py
+sed -i 's/\r$//g' PKG-INFO README.rst
 
 %build
 python setup.py build
@@ -64,15 +65,24 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-chmod 755 %{buildroot}%{python_sitelib}/formencode/i18n/msgfmt.py
+
+# install documentation
+rm -r %{buildroot}/%{python_sitelib}/docs # remove misplaced documentation
+mkdir -p %{buildroot}%{_docdir}/%{name}
+cp -r README.rst build/sphinx/html %{buildroot}%{_docdir}/%{name}/
+
+%fdupes %{buildroot}/%{_prefix}
 
 %files
 %defattr(-,root,root,-)
-%doc PKG-INFO README.txt
+%exclude %{_docdir}/%{name}/html
+%doc %dir %{_docdir}/%{name}/
+%doc %{_docdir}/%{name}/README.rst
 %{python_sitelib}/*
 
 %files doc
 %defattr(-,root,root,-)
-%doc build/sphinx/html/
+%doc %dir %{_docdir}/%{name}/html
+%doc %{_docdir}/%{name}/html/*
 
 %changelog




commit python-FormEncode for openSUSE:Factory

2013-10-25 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2013-10-25 11:16:22

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2013-08-20 11:44:34.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2013-10-25 11:16:23.0 +0200
@@ -1,0 +2,5 @@
+Thu Oct 24 11:05:56 UTC 2013 - speili...@suse.com
+
+- Require python-setuptools instead of distribute (upstreams merged)
+
+---



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.v6eIHt/_old  2013-10-25 11:16:23.0 +0200
+++ /var/tmp/diff_new_pack.v6eIHt/_new  2013-10-25 11:16:23.0 +0200
@@ -27,7 +27,7 @@
 Source1:FormEncode-doc-infrastructure.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
-BuildRequires:  python-distribute
+BuildRequires:  python-setuptools
 BuildRequires:  unzip
 Provides:   python-formencode = %{version}
 Obsoletes:  python-formencode < %{version}


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-FormEncode for openSUSE:Factory

2013-08-20 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2013-08-20 11:44:33

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2013-06-14 15:47:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2013-08-20 11:44:34.0 +0200
@@ -1,0 +2,8 @@
+Mon Aug  5 13:25:42 UTC 2013 - h...@urpla.net
+
+- somebody updated this package to 1.2.6 (not me)
+- added missing pieces in order to generate sphinx documentation
+- create documentation in separate -doc package
+- fix various wrong line endings
+
+---

New:

  FormEncode-doc-infrastructure.tar.gz



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.PwuJzW/_old  2013-08-20 11:44:35.0 +0200
+++ /var/tmp/diff_new_pack.PwuJzW/_new  2013-08-20 11:44:35.0 +0200
@@ -24,12 +24,16 @@
 License:Python-2.0
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
+Source1:FormEncode-doc-infrastructure.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 BuildRequires:  python-distribute
 BuildRequires:  unzip
 Provides:   python-formencode = %{version}
 Obsoletes:  python-formencode < %{version}
+# Documentation requirements:
+BuildRequires:  python-Sphinx
+
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %else
@@ -41,17 +45,34 @@
 a declarative form of defining the validation, and decoupled processes
 for filling and generating forms.
 
+%package doc
+Summary:HTML form validation, generation, and conversion package
+Group:  Development/Libraries/Python
+Requires:   %{name} = %{version}
+
+%description doc
+This package contains documentation files for %{name}.
+
 %prep
-%setup -q -n FormEncode-%{version}
+%setup -q -n FormEncode-%{version} -a1
+find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
+sed -i 's/\r$//g' PKG-INFO formencode/i18n/msgfmt.py
 
 %build
 python setup.py build
+python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+chmod 755 %{buildroot}%{python_sitelib}/formencode/i18n/msgfmt.py
 
 %files
 %defattr(-,root,root,-)
+%doc PKG-INFO README.txt
 %{python_sitelib}/*
 
+%files doc
+%defattr(-,root,root,-)
+%doc build/sphinx/html/
+
 %changelog


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-FormEncode for openSUSE:Factory

2013-06-14 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2013-06-14 15:47:03

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode"

Changes:

--- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes  
2012-03-20 11:32:55.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2013-06-14 15:47:04.0 +0200
@@ -1,0 +2,8 @@
+Mon Jun 10 12:28:02 UTC 2013 - dmuel...@suse.com
+
+- update to 1.2.5:
+  * The method field_is_empty was added to 
+  formencode.validators.FormValidator
+  * Fix packaging issue with i18n files (from Juliusz Gonera)
+
+---

Old:

  FormEncode-1.2.4.tar.gz

New:

  FormEncode-1.2.6.zip



Other differences:
--
++ python-FormEncode.spec ++
--- /var/tmp/diff_new_pack.wwQEx3/_old  2013-06-14 15:47:04.0 +0200
+++ /var/tmp/diff_new_pack.wwQEx3/_new  2013-06-14 15:47:04.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-FormEncode
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -11,21 +11,23 @@
 # case the license is the MIT License). An "Open Source License" is a
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-#
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:   python-FormEncode
-Version:1.2.4
+Version:1.2.6
 Release:0
 Url:http://formencode.org
 Summary:HTML form validation, generation, and conversion package
 License:Python-2.0
 Group:  Development/Languages/Python
-Source: 
http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
+Source: 
http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 BuildRequires:  python-distribute
+BuildRequires:  unzip
 Provides:   python-formencode = %{version}
 Obsoletes:  python-formencode < %{version}
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -41,8 +43,6 @@
 
 %prep
 %setup -q -n FormEncode-%{version}
-mv docs/_build docs/html # Use a better name for HTML docs
-sed -i "s/\r$//" docs/modules/national.txt # Fix EOL encoding
 
 %build
 python setup.py build
@@ -52,7 +52,6 @@
 
 %files
 %defattr(-,root,root,-)
-%doc docs/html
 %{python_sitelib}/*
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-FormEncode for openSUSE:Factory

2012-03-20 Thread h_root
Hello community,

here is the log from the commit of package python-FormEncode for 
openSUSE:Factory checked in at 2012-03-20 11:32:54

Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old)
 and  /work/SRC/openSUSE:Factory/.python-FormEncode.new (New)


Package is "python-FormEncode", Maintainer is ""

Changes:

New Changes file:

--- /dev/null   2012-03-17 10:42:43.883537212 +0100
+++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 
2012-03-20 11:32:55.0 +0100
@@ -0,0 +1,209 @@
+---
+Wed Mar 14 13:44:30 UTC 2012 - sasc...@suse.de
+
+- Set license to SDPX style (Python-2.0)
+- Removed outdated %clean section
+- Simplified macro usage
+- Only package HTML documentation (not the doc sources)
+
+---
+Thu Sep  1 08:46:05 UTC 2011 - sasc...@suse.de
+
+- Add provides/obsoletes for python-formencode
+
+---
+Thu Sep  1 08:38:45 UTC 2011 - sasc...@suse.de
+
+- Renamed to python-FormEncode to match upstream name
+- Properly package documentation
+
+---
+Sun Jun  7 00:01:01 CEST 2009 - l...@linux-schulserver.de
+
+- disable runtime dependency to python-setuptools
+
+---
+Mon Apr 27 17:51:38 CEST 2009 - l...@linux-schulserver.de
+
+- update to 1.2.2
+- remove FormEncode-1.2-svn-fixes.patch
+- added rpmlintrc
+
+---
+Sun Dec 14 00:00:00 CET 2008 - jf...@funktronics.ca
+
+- Apply some fixes from SVN
+
+---
+Wed Dec 03 00:00:00 CET 2008 - jf...@funktronics.ca
+
+- Update to 1.2
+  * Added :class:`formencode.validators.IPAddress`, validating IP
+  addresses, from Leandro Lucarella.
+  * Added :meth:`formencode.api.Invalid.__unicode__`
+  * In :mod:`formencode.htmlfill` use a default encoding of utf8 when
+  handling mixed ``str``/``unicode`` content.  Also do not modify
+   tags (previously ``src`` would be
+  overwritten, for no good reason).
+  * In :class:`formencode.validators.Email` allow single-character
+  domain names (like x.com).
+  * Make :class:`formencode.validators.FieldsMatch` give a normal
+  ``Invalid`` exception if you pass it a non-dictionary.  Also treat
+  all missing keys as the empty string (previously the first key was
+  required and would raise KeyError).
+  * :class:`formencode.validators.Number` works with ``inf`` float
+  values (before it would raise a OverflowError).
+  * The ``tw`` locale has been renamed to the more standard ``zh_TW``.
+  * Added Japanese and Turkish translations.
+  * Fixed some outdated translations and errors in Spanish and Greek
+  translations. Translations now managed with `Babel
+  `_.
+- 1.1
+  * Fixed the ``is_empty()`` method in
+  :class:`formencode.validators.FieldStorageUploadConverter`;
+  previously it returned the opposite of the intended result.
+  * Added a parameter to ``htmlfill.render()``: ``prefix_error``.  If
+  this parameter is true (the default) then errors automatically go
+  before the input field; if false then they go after the input field.
+  * Remove deprecated modules: ``fields``, ``formgen``, ``htmlform``,
+  ``sqlformgen``, and ``sqlschema``.
+  * Added ``formencode.htmlrename``, which renames HTML inputs.
+  * In ``formencode.htmlfill``, non-string values are compared usefully
+  (e.g., a select box with integer values).
+  * The validators ``Int`` and ``Number`` both take min/max arguments
+  (from Shannon Behrens).
+  * Validators based on ``formencode.validators.FormValidator`` will not
+  treat ``{}`` as an empty (unvalidated) value.
+  * Some adjustments to the URL validator.
+  * :class:`formencode.compound.All` does not handle empty values,
+  instead relying on sub-validators to check for emptiness.
+  * Fixed the ``if_missing`` attribute in
+  :class:`formencode.foreach.ForEach`; previously it would be the same
+  list instance, so if you modified it then it would effect future
+  ``if_missing`` values (reported by Felix Schwarz).
+  * Added formatter to :mod:`formencode.htmlfill`, so you can use
+   -- this will
+  cause the error to be swallowed, not shown to the user.
+  * Added :class:`formencode.validators.XRI` for validation i-names,
+  i-numbers, URLs, etc (as used in OpenID).
+  * Look in ``/usr/share/locale`` for locale files, in addition to the
+  normal locations.
+  * Quiet Python 2.6 deprecation warnings.
+  * Fix :class:`formencode.validators.URL`, which was accepting illegal
+  characters (like newlines) and did not accept http://domain:PORT/
+