forked from pool/python-Arpeggio
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
31 lines
903 B
Diff
31 lines
903 B
Diff
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]
|
|
|