mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
python-apispec: add patch for fixing setup encoding
This commit is contained in:
parent
dc4a2f5b5f
commit
c9d33c5b74
12
package/python-apispec/0001-fix-setup-encoding.patch
Normal file
12
package/python-apispec/0001-fix-setup-encoding.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -uNr apispec-0.39.0-orig/setup.py apispec-0.39.0-patched/setup.py
|
||||||
|
--- apispec-0.39.0-orig/setup.py 2018-06-29 05:50:26.000000000 +0300
|
||||||
|
+++ apispec-0.39.0-patched/setup.py 2019-01-24 23:36:41.947206745 +0200
|
||||||
|
@@ -13,7 +13,7 @@
|
||||||
|
Raises RuntimeError if not found.
|
||||||
|
"""
|
||||||
|
version = ''
|
||||||
|
- with open(fname, 'r') as fp:
|
||||||
|
+ with open(fname, 'r', encoding='utf-8') as fp:
|
||||||
|
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
|
||||||
|
for line in fp:
|
||||||
|
m = reg.match(line)
|
Loading…
x
Reference in New Issue
Block a user