File project.diff of Package python-pyramid_simpleform

--- python-pyramid_simpleform.changes.orig
+++ python-pyramid_simpleform.changes
@@ -1,4 +1,19 @@
 -------------------------------------------------------------------
+Mon Sep 28 11:45:07 UTC 2020 - hpj@urpla.net
+
+- Update to version 0.7.0~git20180505.673cc10:
+  * update URLs
+  * Update index.rst
+  * update readme with RTD URL - closes #34
+  * update readme with current URLs - ref: #34
+  * add latexpdf builder; refactor
+  * tell Sphinx where to find the source start file and other parameters for latex
+  * add missing convert_images.sh shell script
+  * add pyramid_mako to docs_extras - PEP8 whitespace
+  * auto-update version; fix Sphinx deprecations warnings
+  * use pylons-sphinx-theme for docs
+
+-------------------------------------------------------------------
 Wed Feb  4 12:14:13 UTC 2015 - hpj@urpla.net
 
 - apply git e22834c5
--- python-pyramid_simpleform.spec.orig
+++ python-pyramid_simpleform.spec
@@ -1,8 +1,8 @@
 #
 # spec file for package python-pyramid_simpleform
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
+# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2013-2020 LISA GmbH, Bingen, Germany
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,45 +17,39 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyramid_simpleform
-Version:        0.6.1
+Version:        0.7.0~git20180505.673cc10
 Release:        0
-Url:            http://bitbucket.org/danjac/pyramid_simpleform
-Summary:        FormEncode and WebHelpers for pyramid
+Url:            https://github.com/Pylons/pyramid_simpleform
+Summary:        Pyramid FormEncode and WebHelpers
 License:        MIT
 Group:          Development/Languages/Python
-Source:         http://pypi.python.org/packages/source/p/pyramid_simpleform/pyramid_simpleform-%{version}.tar.gz
-Source1:        pyramid_simpleform-docs.tar.gz
-Patch0:         pyramid_simpleform-git-7004f60f.patch
-Patch1:         pyramid_simpleform-git-e22834c5.patch
-Patch2:         pyramid_simpleform-fixtests.diff
+Source:         pyramid_simpleform-%{version}.tar.xz
+BuildRequires:  %{python_module FormEncode}
+BuildRequires:  %{python_module WebHelpers2}
+BuildRequires:  %{python_module pyramid}
+BuildRequires:  %{python_module pyramid-mako}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+# Documentation build requirements:
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-pylons-sphinx-themes
 Requires:       python-FormEncode
-Requires:       python-WebHelpers
+Requires:       python-WebHelpers2
 Requires:       python-pyramid
-Requires:       python-pyramid_mako
-BuildRequires:  python-FormEncode
-BuildRequires:  python-WebHelpers
-BuildRequires:  python-pyramid
-BuildRequires:  python-pyramid_mako
-
 # Documentation requirements:
-BuildRequires:  python-Sphinx
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-BuildRequires:  python-ordereddict
-BuildRequires:  python-unittest2
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+BuildRequires:  %{python_module Sphinx}
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Simple form utilities for using Pyramid with FormEncode and WebHelpers.
 
 Documentation: -doc package or http://packages.python.org/pyramid_simpleform/
 
-
 %package doc
 Summary:        FormEncode and WebHelpers for pyramid
 Group:          Development/Languages/Python
@@ -65,28 +59,30 @@ Requires:       %{name} = %{version}
 This package contains documentation files for %{name}.
 
 %prep
-%setup -q -n pyramid_simpleform-%{version} -a1
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q -n pyramid_simpleform-%{version} 
+%autopatch -p1
+sed -i 's|, 1, (0, 0, 0)||' docs/conf.py
 
 %build
-python setup.py build
-python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
+%python_build
+python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-python setup.py test
+%pytest pyramid_simpleform/tests.py
+#%%python_exec setup.py test
 
-%files
-%defattr(-,root,root,-)
-%doc README.txt
-%{python_sitelib}/*
+%files %{python_files}
+%license LICENSE.txt
+%doc README.md
+%{python_sitelib}/pyramid_simpleform
+%{python_sitelib}/pyramid_simpleform-*-py*.egg-info
+%pycache_only %{python_sitelib}/pyramid_simpleform/__pycache__
 
 %files doc
-%defattr(-,root,root,-)
 %doc build/sphinx/html
 
 %changelog
openSUSE Build Service is sponsored by