commit python-Parsley for openSUSE:Factory
Hello community, here is the log from the commit of package python-Parsley for openSUSE:Factory checked in at 2018-08-31 10:43:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Parsley (Old) and /work/SRC/openSUSE:Factory/.python-Parsley.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-Parsley" Fri Aug 31 10:43:40 2018 rev:2 rq:631543 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Parsley/python-Parsley.changes 2015-06-15 17:47:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-Parsley.new/python-Parsley.changes 2018-08-31 10:44:15.947189715 +0200 @@ -1,0 +2,15 @@ +Sat Aug 25 18:05:32 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. Strip storytelling from description. + +------------------------------------------------------------------- +Thu Aug 23 11:17:06 UTC 2018 - tchvatal@suse.com + +- Version update to 1.3: + * support py3 + * tests redone in pytest +- Run all tests +- Switch to singlespec +- Do not generate the docu and obsolete the doc subpkg + +------------------------------------------------------------------- Old: ---- Parsley-1.2.tar.gz New: ---- Parsley-1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Parsley.spec ++++++ --- /var/tmp/diff_new_pack.hxlM4X/_old 2018-08-31 10:44:16.371190221 +0200 +++ /var/tmp/diff_new_pack.hxlM4X/_new 2018-08-31 10:44:16.375190226 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Parsley # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,98 +18,69 @@ %define oname Parsley - +%define oldpython python Name: python-Parsley -Version: 1.2 +Version: 1.3 Release: 0 -Summary: Parsing and pattern matching made easy +Summary: PEG algorithm based parser generator License: MIT Group: Development/Libraries/Python -Url: http://github.com/washort/parsley +URL: http://github.com/washort/parsley Source: https://pypi.python.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz -%if 0%{?suse_version} +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -%endif -# Documentation requirements: -BuildRequires: python-Sphinx -# Testing requirements: -BuildRequires: python-Twisted -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%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 +BuildRequires: python-rpm-macros +Provides: python-parsley +Obsoletes: %{oldpython}-Parsley-doc +Obsoletes: python-Parsley-doc BuildArch: noarch -%endif +%python_subpackages %description -Parsley is a parsing library for people who find parsers scary or annoying. I -wrote it because I wanted to parse a programming language, and tools like PLY -or ANTLR or Bison were very hard to understand and integrate into my Python -code. Most parser generators are based on LL or LR parsing algorithms that -compile to big state machine tables. It was like I had to wake up a different -section of my brain to understand or work on grammar rules. - -Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so each -expression in the grammar rules works like a Python expression. In particular, -alternatives are evaluated in order, unlike table-driven parsers such as yacc, -bison or PLY. +Parsley is a parsing library. Most parser generators like ANTLR and +Bison are based on LL or LR parsing algorithms that compile to big +state machine tables, whereas Parsley, like pyparsing and +ZestyParser, uses the PEG algorithm, so each expression in the +grammar rules works like a Python expression. In particular, +alternatives are evaluated in order, unlike table-driven parsers such +as yacc, bison or PLY. The binaries are prefixed with parsley-. -%package doc -Summary: Parsing and pattern matching made easy -Group: Development/Libraries/Python -Requires: %{name} = %{version} - -%description doc -This package contains documentation files for %{name}. - %prep %setup -q -n %{oname}-%{version} +# Remove with bump, missing fixtures +rm -f ometa/test/test_vm_builder.py %build -python setup.py build -# Generate HTML documentation -pushd doc -make html && rm _build/html/.buildinfo -popd +export LANG=en_US.UTF-8 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +export LANG=en_US.UTF-8 +%python_install mkdir %{buildroot}/%{_bindir} # rename binaries in order to avoid name clashes with other system packages for f in {generate_parser,stage}; do + sed -i \ + -e "s|^#!%{_bindir}/env python$|#!%{_bindir}/python3|" \ + bin/$f cp -v bin/$f %{buildroot}/%{_bindir}/parsley-$f done -%if 0%{?suse_version} - %fdupes -s %{buildroot}%{_prefix} -%endif - -# Correct what fdupes didn't find, because docs are later installed -rm -f doc/_build/html/_downloads/tutorial3-netstrings.py -ln -sf ../_static/listings/tutorial3-netstrings2.py doc/_build/html/_downloads/tutorial3-netstrings2.py -rm -f doc/html/_downloads/tutorial3-netstring-reversal.py -ln -sf ../_static/listings/tutorial3-netstring-reversal.py doc//_build/html/_downloads/tutorial3-netstring-reversal.py +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -pushd ometa/test -PYTHONPATH='../..' python -m unittest test_builder test_pymeta test_runtime -popd - -%files -%defattr(-,root,root) -%doc LICENSE NEWS PKG-INFO README -%{_bindir}/parsley* -%{python_sitelib}/parsley.* -%{python_sitelib}/ometa -%{python_sitelib}/terml -%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info - -%files doc -%defattr(-,root,root) -%doc doc/_build/html examples +export LANG=en_US.UTF-8 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} ometa/test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} terml/test + +%files %{python_files} +%license LICENSE +%doc NEWS PKG-INFO README +%python3_only %{_bindir}/parsley* +%{python_sitelib}/* %changelog ++++++ Parsley-1.2.tar.gz -> Parsley-1.3.tar.gz ++++++ ++++ 9250 lines of diff (skipped)
participants (1)
-
root