Accepting request 613322 from home:TheBlackCat:branches:devel:languages:python

- Update to 3.11
  * Fixed some minor bugs related to re flags and token order.  
  * Added a set_lexpos() method to grammar symbols.  Github issue #148.
  * Mostly minor bug fixes and small code cleanups.

OBS-URL: https://build.opensuse.org/request/show/613322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=34
This commit is contained in:
Tomáš Chvátal 2018-05-31 16:01:59 +00:00 committed by Git OBS Bridge
parent bfab450618
commit d0084ed86d
4 changed files with 20 additions and 12 deletions

View File

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

BIN
ply-3.11.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu May 31 15:39:30 UTC 2018 - toddrme2178@gmail.com
- Update to 3.11
* Fixed some minor bugs related to re flags and token order.
* Added a set_lexpos() method to grammar symbols. Github issue #148.
* Mostly minor bug fixes and small code cleanups.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-ply # spec file for package python-ply
# #
# 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ply Name: python-ply
Version: 3.10 Version: 3.11
Release: 0 Release: 0
Summary: Python Lex & Yacc Summary: Python Lex & Yacc
License: BSD-3-Clause License: BSD-3-Clause
@ -27,6 +27,7 @@ Url: http://www.dabeaz.com/ply/
Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz
Patch0: python-ply-shebangs.patch Patch0: python-ply-shebangs.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@ -47,7 +48,6 @@ It is compatible with both Python 2 and Python 3.
Summary: Python Lex & Yacc Summary: Python Lex & Yacc
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Languages/Python Group: Development/Languages/Python
Requires: %{name} = %{version}
%description -n %{name}-doc %description -n %{name}-doc
PLY is yet another implementation of lex and yacc for Python. Some notable PLY is yet another implementation of lex and yacc for Python. Some notable
@ -71,7 +71,6 @@ find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
%fdupes doc %fdupes doc
%fdupes example %fdupes example
%fdupes test
%build %build
%python_build %python_build
@ -81,20 +80,21 @@ find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
export PYTHONPATH=%{buildroot}%{python_sitelib}
pushd test pushd test
%python_exec testlex.py %{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
%python_exec testyacc.py $python -B testlex.py
$python -B testyacc.py
}
popd
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ANNOUNCE CHANGES TODO %doc ANNOUNCE CHANGES README.md TODO
%{python_sitelib}/* %{python_sitelib}/*
%files -n %{name}-doc %files -n %{name}-doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc/ %doc doc/
%doc example/ %doc example/
%doc test/
%changelog %changelog