Accepting request 306351 from home:benoit_monin:branches:devel:languages:python

- update to version 3.6
- clean the test and example directories
- remove stray backup files in doc
- remove unneeded executable bit of testlex.py
- remove CFLAGS export: unneeded
- do not drop executable bit of everything in test since it contains subdirectories
- remove useless clean section
- remove README from package: not provided anymore

OBS-URL: https://build.opensuse.org/request/show/306351
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=24
This commit is contained in:
Denisart Benjamin 2015-05-16 12:51:27 +00:00 committed by Git OBS Bridge
parent bfca13fb0f
commit 5ddb8cb6ee
4 changed files with 68 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b
size 138342

3
ply-3.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61367b9eb2f4b819f69ea116750305270f1df8859992c9e356d6a851f25a4b47
size 281690

View File

@ -1,3 +1,59 @@
-------------------------------------------------------------------
Mon May 11 12:39:33 UTC 2015 - benoit.monin@gmx.fr
- update to version 3.6:
* If PLY is unable to create the 'parser.out' or 'parsetab.py'
files due to permission issues, it now just issues a warning
message and continues to operate
* Fixed some issues related to use of packages and table file
modules
- additional changes from version 3.5:
* Added support for defaulted_states in the parser
* Fixed debug logging in the parser
* Added actions to be defined to character literals (Issue #32)
* Import of the 'parsetab.py' file is now constrained to only
consider the directory specified by the outputdir argument to
yacc()
* Changed default output directory to be the same as that in
which the yacc grammar is defined
* Changed the parsetab.py file signature slightly so that the
parsetab won't regenerate if created on a different major
version of Python
* Fixed Issue #44 call_errorfunc() should return the result of
errorfunc()
* Support for versions of Python <2.7 is officially dropped
* Fixed bug related to calling yacc(start=...)
* Added skipped tests for PyPy and Java
* Added filter to make unit tests pass under 'python -3'
* Fixed CPP_INTEGER regex in ply/cpp.py (Issue 21)
* Fixed yacc validation bugs when from __future__ import
unicode_literals is being used
* Added support for Travis-CI
* Added a .gitignore file
* Fixed validation problems for source files that include a
different source code encoding specifier
* Fixed unit tests for yacc to eliminate random failures due to
dict hash value randomization in Python 3.3
* Fixed comment whitespace processing bugs in ply/cpp.py
* Fixed token names in ply/ctokens.py to match rule names
* Changes to functions available in panic mode error recover
* Fixed some problems with line and position tracking and the use
of error symbols
* Change to doc string handling in lex module
* Fixed issue #1: Fixed _tabversion. It should use __tabversion__
instead of __version__
* Fixed issue #8: Literals empty list causes IndexError
* Fixed issue #12: Typo in code snippet in documentation
* Fixed issue #10: Correctly escape t_XOREQUAL pattern.
- clean the test and example directories
- remove stray backup files in doc
- remove unneeded executable bit of testlex.py
- remove CFLAGS export: unneeded
- do not drop executable bit of everything in test since
it contains subdirectories
- remove useless clean section
- remove README from package: not provided anymore
-------------------------------------------------------------------
Wed Jan 2 19:44:41 UTC 2013 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-ply
#
# 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
@ -18,7 +18,7 @@
%define modname ply
Name: python-%{modname}
Version: 3.4
Version: 3.6
Release: 0
Url: http://www.dabeaz.com/ply/
Summary: Python Lex & Yacc
@ -67,21 +67,22 @@ It is compatible with both Python 2 and Python 3.
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
# clean the test and example directories
find test example -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
# remove stray backup files
rm doc/ply.html~ doc/ply.html.bak
# remove unneeded executable bit
chmod -x test/testlex.py
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod a-x test/*
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ANNOUNCE CHANGES README TODO
%doc ANNOUNCE CHANGES TODO
%python_sitelib/%{modname}*
%files doc