Hello community,

here is the log from the commit of package python-pyparsing for 
openSUSE:Factory checked in at 2018-11-26 10:14:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyparsing (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyparsing.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyparsing"

Mon Nov 26 10:14:58 2018 rev:28 rq:651320 version:2.3.1~test5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyparsing/python-pyparsing.changes        
2018-09-10 12:29:51.718833166 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyparsing.new.19453/python-pyparsing.changes 
    2018-11-26 10:15:04.682100018 +0100
@@ -1,0 +2,34 @@
+Thu Nov 22 17:53:10 UTC 2018 - Jan Engelhardt <[email protected]>
+
+- Use more specific RPM group.
+
+-------------------------------------------------------------------
+Wed Nov 21 17:48:41 CET 2018 - [email protected]
+
+- Upgrade to the current upstrem master with additional patches
+  to make the test suite pass.
+
+-------------------------------------------------------------------
+Sat Nov 17 22:59:29 CET 2018 - [email protected]
+
+- Add all tests.
+
+-------------------------------------------------------------------
+Thu Nov 15 08:46:10 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.3.0:
+  * Updates to migrate source repo to GitHub
+  * Fix deprecation warning in Python 3.7 re: importing collections.abc
+  * Fix Literal/Keyword bug raising IndexError instead of ParseException
+  * Added simple_unit_tests.py, as a collection of easy-to-follow unit
+  * tests for various classes and features of the pyparsing library.
+  * Primary intent is more to be instructional than actually rigorous
+  * testing. Complex tests can still be added in the unitTests.py file.
+  * New features added to the Regex class
+
+-------------------------------------------------------------------
+Thu Nov 15 08:45:05 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Fix URL to point to existing github
+
+-------------------------------------------------------------------

Old:
----
  pyparsing-2.2.0.tar.gz
  python-pyparsing-doc.changes
  python-pyparsing-doc.spec

New:
----
  _multibuild
  pyparsing-2.3.1~test5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyparsing.spec ++++++
--- /var/tmp/diff_new_pack.5NDtNZ/_old  2018-11-26 10:15:06.762097582 +0100
+++ /var/tmp/diff_new_pack.5NDtNZ/_new  2018-11-26 10:15:06.766097577 +0100
@@ -12,23 +12,41 @@
 # 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/
 #
 
 
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%bcond_without test
+%else
+%bcond_with test
+%endif
+%if %{with test}
+Name:           python-pyparsing-%{flavor}
+%else
 Name:           python-pyparsing
-Version:        2.2.0
+%endif
+Version:        2.3.1~test5
 Release:        0
 Summary:        Grammar Parser Library for Python
 License:        MIT AND GPL-2.0-or-later AND GPL-3.0-or-later
 Group:          Development/Languages/Python
-URL:            http://pyparsing.wikispaces.com/
-Source:         
https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-%{version}.tar.gz
+URL:            https://github.com/pyparsing/pyparsing/
+# Upstream tarball from the master branch with gh#pyparsing/pyparsing#47
+Source:         pyparsing-%{version}.tar.gz
+# Source:         
https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-%%{version}.tar.gz
 BuildRequires:  %{python_module base}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  python2-unittest2
+BuildRequires:  python3-Sphinx
+%if %{with test}
+BuildRequires:  %{python_module nose}
+%endif
 # do not add dependencies on setuptools and ideally not even full "python";
 # this is now a dependency of setuptools
 Requires:       python-base
@@ -45,27 +63,49 @@
 expressions. The pyparsing module provides a library of classes that client
 code uses to construct the grammar directly in Python code.
 
+%package -n %{name}-docs
+Summary:        Documentation files for %name
+Group:          Documentation/HTML
+
+%description -n %{name}-docs
+HTML Documentation and examples for %name.
+
 %prep
-%setup -q -n pyparsing-%{version}
+%setup -q -n pyparsing-2.3.1
 
 %build
 %python_build
-# Fix wrong EOL encoding:
-sed -i 's/\r$//' CHANGES LICENSE README examples/*
+# export PYTHONPATH=..:../examples
+python3 setup.py build_sphinx -v
 
 %install
+%if ! %{with test}
 %python_install
 # ensure egg-info is a directory
-%{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info
+%{python_expand rm -rf %{buildroot}%{$python_sitelib}/*.egg-info
 cp -r pyparsing.egg-info 
%{buildroot}%{$python_sitelib}/pyparsing-%{version}-py%{$python_version}.egg-info
 }
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%check
+%if %{with test}
+export PYTHONPATH=.:example
+%python_exec setup.py nosetests -v
+%endif
 
 %files %{python_files}
+%if ! %{with test}
 %license LICENSE
-%doc CHANGES README
+%doc CHANGES README.rst
 %{python_sitelib}/pyparsing.py*
 %pycache_only %{python_sitelib}/__pycache__/*
 %{python_sitelib}/pyparsing-%{version}-py*.egg-info/
+%endif
+
+%files -n %{name}-docs
+%if ! %{with test}
+%doc examples build/sphinx/html
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to