commit 3b1ee5c69eaaa4cfd81ea225fd18f1586d9901fe53d1ca3c7bc0d8146101ae7c Author: Thomas Bechtold Date: Tue May 2 14:31:35 2017 +0000 - Initial packaging (version 1.0) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-deprecation?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Fix-encoding-when-reading-README.rst.patch b/0001-Fix-encoding-when-reading-README.rst.patch new file mode 100644 index 0000000..9c9676c --- /dev/null +++ b/0001-Fix-encoding-when-reading-README.rst.patch @@ -0,0 +1,31 @@ +From b8043fb620271a229d91dff302079f19876d7838 Mon Sep 17 00:00:00 2001 +From: Thomas Bechtold +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 + diff --git a/deprecation-1.0.tar.gz b/deprecation-1.0.tar.gz new file mode 100644 index 0000000..36ba066 --- /dev/null +++ b/deprecation-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36d2a2356ca89fb73f72bfb866a2f28e183535a7f131a3b34036bc48590165b6 +size 5866 diff --git a/python-deprecation.changes b/python-deprecation.changes new file mode 100644 index 0000000..cd7497a --- /dev/null +++ b/python-deprecation.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 2 14:13:34 UTC 2017 - tbechtold@suse.com + +- Initial packaging (version 1.0) diff --git a/python-deprecation.spec b/python-deprecation.spec new file mode 100644 index 0000000..7414586 --- /dev/null +++ b/python-deprecation.spec @@ -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