forked from pool/python-Arpeggio
Accepting request 621427 from home:sebix:branches:devel:languages:python
can also maintain it - add fix-setup-encoding.patch to fix setup.py encoding issue - update to version 1.8.0: - Fixed issue #43. *Backward incompatible change* for cleanpeg comment syntax. Please see: https://github.com/igordejanovic/Arpeggio/issues/43 - Added `file` parser param used for `DebugPrinter` to allow the output stream to be changed from stdout. This allows doctests to continue to work. Thanks ianmmoir@GitHub. - update to version 1.7.1: - Fixed bug in comment parsing optimization. - update to version 1.7: - Added re_flag parameter to RegExMatch constructor. Thanks Aluriak@GitHub. - Fix in grammar language docs. Thanks schmittlauch@GitHub. - Small fixes in examples. OBS-URL: https://build.opensuse.org/request/show/621427 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Arpeggio?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
92bb51729d
commit
7793ec5716
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a4c55909b87d3ade568aff3cbd7795eb95ff646a869fe68e4a8a4de5f8a07cc3
|
||||
size 20427
|
||||
3
Arpeggio-1.8.0.tar.gz
Normal file
3
Arpeggio-1.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:828ea85ca3c7a99125dc83000ca170c1ea1105c75cbf67a513c2e16e05e36f67
|
||||
size 20718
|
||||
30
fix-setup-encoding.patch
Normal file
30
fix-setup-encoding.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From a23376c03106779b75dc332b04b68deca57eca5a Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Wagner <sebix@sebix.at>
|
||||
Date: Sat, 7 Jul 2018 10:16:34 +0200
|
||||
Subject: [PATCH] Fix setup.py version read
|
||||
|
||||
utf-8 encoding in environment was assumed
|
||||
---
|
||||
setup.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 2b17939..0e2d39f 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -12,13 +12,14 @@
|
||||
# Parsers are defined using python language construction or PEG language.
|
||||
###############################################################################
|
||||
|
||||
+import codecs
|
||||
import os
|
||||
import sys
|
||||
from setuptools import setup
|
||||
|
||||
VERSIONFILE = "arpeggio/__init__.py"
|
||||
VERSION = None
|
||||
-for line in open(VERSIONFILE, "r").readlines():
|
||||
+for line in codecs.open(VERSIONFILE, "r", encoding='utf-8').readlines():
|
||||
if line.startswith('__version__'):
|
||||
VERSION = line.split('"')[1]
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 7 08:11:38 UTC 2018 - sebix+novell.com@sebix.at
|
||||
|
||||
- add fix-setup-encoding.patch to fix setup.py encoding issue
|
||||
- update to version 1.8.0:
|
||||
- Fixed issue #43.
|
||||
*Backward incompatible change* for cleanpeg comment syntax.
|
||||
Please see: https://github.com/igordejanovic/Arpeggio/issues/43
|
||||
- Added `file` parser param used for `DebugPrinter` to allow the
|
||||
output stream to be changed from stdout. This allows doctests to
|
||||
continue to work. Thanks ianmmoir@GitHub.
|
||||
- update to version 1.7.1:
|
||||
- Fixed bug in comment parsing optimization.
|
||||
- update to version 1.7:
|
||||
- Added re_flag parameter to RegExMatch constructor. Thanks Aluriak@GitHub.
|
||||
- Fix in grammar language docs. Thanks schmittlauch@GitHub.
|
||||
- Small fixes in examples.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 28 11:48:43 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Arpeggio
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -13,21 +13,24 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-Arpeggio
|
||||
Version: 1.6.1
|
||||
Version: 1.8.0
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Packrat parser interpreter
|
||||
Url: http://igordejanovic.net/Arpeggio/
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://igordejanovic.net/Arpeggio/
|
||||
Source: https://files.pythonhosted.org/packages/source/A/Arpeggio/Arpeggio-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
# PATCH-FIX-UPSTREAM fix-setup-encoding.patch
|
||||
Patch0: https://github.com/igordejanovic/Arpeggio/pull/44.patch#/fix-setup-encoding.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -41,6 +44,7 @@ Arpeggio) see textX
|
||||
|
||||
%prep
|
||||
%setup -q -n Arpeggio-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user