- Initial packaging (version 1.0)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-deprecation?expand=0&rev=1
This commit is contained in:
commit
3b1ee5c69e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
31
0001-Fix-encoding-when-reading-README.rst.patch
Normal file
31
0001-Fix-encoding-when-reading-README.rst.patch
Normal file
@ -0,0 +1,31 @@
|
||||
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.tar.gz
Normal file
3
deprecation-1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:36d2a2356ca89fb73f72bfb866a2f28e183535a7f131a3b34036bc48590165b6
|
||||
size 5866
|
4
python-deprecation.changes
Normal file
4
python-deprecation.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 2 14:13:34 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- Initial packaging (version 1.0)
|
60
python-deprecation.spec
Normal file
60
python-deprecation.spec
Normal file
@ -0,0 +1,60 @@
|
||||
#
|
||||
# spec file for package python-deprecation
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-deprecation
|
||||
Version: 1.0
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
The `deprecation` library provides a `deprecated` decorator and a
|
||||
`fail_if_not_removed` decorator for your tests. Together, the two
|
||||
enable the automation of several things:
|
||||
|
||||
%prep
|
||||
%setup -q -n deprecation-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user