forked from pool/python-screenplain
Accepting request 826707 from home:mcepl:work
Initial submission of the new package OBS-URL: https://build.opensuse.org/request/show/826707 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screenplain?expand=0&rev=1
This commit is contained in:
19
py2.patch
Normal file
19
py2.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index fdc9b53..5db7014 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -3,9 +3,11 @@
|
||||
from setuptools import setup
|
||||
|
||||
# read the contents of your README file
|
||||
-from os import path
|
||||
-this_directory = path.abspath(path.dirname(__file__))
|
||||
-with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
+import os.path
|
||||
+import io
|
||||
+
|
||||
+this_directory = os.path.abspath(os.path.dirname(__file__))
|
||||
+with io.open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
Reference in New Issue
Block a user