15
0

- update to 1.0.1

- remove 0001-Fix-encoding-when-reading-README.rst.patch . Applied
  upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-deprecation?expand=0&rev=2
This commit is contained in:
2017-05-02 15:49:02 +00:00
committed by Git OBS Bridge
parent 3b1ee5c69e
commit c13da4531f
5 changed files with 12 additions and 39 deletions

View File

@@ -1,31 +0,0 @@
From b8043fb620271a229d91dff302079f19876d7838 Mon Sep 17 00:00:00 2001
From: Thomas Bechtold <tbechtold@suse.com>
Date: Tue, 2 May 2017 16:28:57 +0200
Subject: [PATCH] Fix encoding when reading README.rst
Closes #5
---
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index adaeea7..41d4097 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+import io
from setuptools import setup
AUTHOR = "Brian Curtin"
@@ -14,7 +15,7 @@ setup(name="deprecation",
maintainer=AUTHOR,
maintainer_email=EMAIL,
keywords=["deprecation"],
- long_description=open("README.rst").read(),
+ long_description=io.open("README.rst", encoding="utf-8").read(),
py_modules=["deprecation"],
classifiers=[
"Development Status :: 5 - Production/Stable",
--
2.12.2

3
deprecation-1.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9bff5cc91f601ef2a8a0200bc6cde3f18a48c2ed3d1ecbfc16076b14b3ad935
size 9596

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36d2a2356ca89fb73f72bfb866a2f28e183535a7f131a3b34036bc48590165b6
size 5866

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 2 15:47:16 UTC 2017 - tbechtold@suse.com
- update to 1.0.1
- remove 0001-Fix-encoding-when-reading-README.rst.patch . Applied
upstream.
-------------------------------------------------------------------
Tue May 2 14:13:34 UTC 2017 - tbechtold@suse.com

View File

@@ -19,15 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-deprecation
Version: 1.0
Version: 1.0.1
Release: 0
Summary: A library to handle automated deprecations
License: Apache-2.0
Group: Development/Languages/Python
Url: http://deprecation.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/d/deprecation/deprecation-%{version}.tar.gz
# PATCH-FIX-UPSTREAM 0001-Fix-encoding-when-reading-README.rst.patch -- https://github.com/briancurtin/deprecation/pull/6
Patch1: 0001-Fix-encoding-when-reading-README.rst.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -43,7 +41,6 @@ enable the automation of several things:
%prep
%setup -q -n deprecation-%{version}
%patch1 -p1
%build
@@ -54,7 +51,7 @@ enable the automation of several things:
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%doc README.rst LICENSE
%{python_sitelib}/*
%changelog