14
0

- Remove py2.patch, which has been included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screenplain?expand=0&rev=5
This commit is contained in:
2020-12-03 22:06:56 +00:00
committed by Git OBS Bridge
parent bfc270047d
commit 7f9aa7ebc9
3 changed files with 1 additions and 22 deletions

View File

@@ -1,19 +0,0 @@
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(

View File

@@ -3,6 +3,7 @@ Thu Dec 03 21:34:14 UTC 2020 - mcepl@cepl.eu
- Update to version 0.9.0+git.1597423678.4e34d1f: - Update to version 0.9.0+git.1597423678.4e34d1f:
* Don't use open, but more compatible io.open * Don't use open, but more compatible io.open
- Remove py2.patch, which has been included upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 14 16:29:32 UTC 2020 - mcepl@cepl.eu Fri Aug 14 16:29:32 UTC 2020 - mcepl@cepl.eu

View File

@@ -32,9 +32,6 @@ URL: http://www.screenplain.com/
# Source: https://files.pythonhosted.org/packages/source/s/screenplain/screenplain-%%{version}.tar.gz # Source: https://files.pythonhosted.org/packages/source/s/screenplain/screenplain-%%{version}.tar.gz
# Tarball generated from gh#vilcans/screenplain#62 # Tarball generated from gh#vilcans/screenplain#62
Source: screenplain-%{version}.tar.gz Source: screenplain-%{version}.tar.gz
# PATCH-FIX-UPSTREAM py2.patch mcepl@suse.com
# Don't use open(), but more compatible io.open()
Patch0: py2.patch
BuildRequires: %{python_module pycodestyle} BuildRequires: %{python_module pycodestyle}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module reportlab} BuildRequires: %{python_module reportlab}