From f18aff55a9cdad6520cd8258efb3db048b298243f84e33c583cac19926876749 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Sat, 16 May 2015 12:54:36 +0000
Subject: [PATCH] Accepting request 306498 from
home:benoit_monin:branches:devel:languages:python
- update to version 2.0.5
- update package license: changed upstream to apache-2.0
- point the source URL to pypi
- set a minimum version for python-devel
- remove python-MiniMock from build dependencies
- add python-docutils, python-mock, python-testscenarios,
python-testtools, python-unittest2 as test dependencies
- set a minimum version for python-lockfile
- remove sed call to fix non-executable script: fixed upstream
- run the test during build
- add LICENSE.ASF-2 and doc to package documentation
OBS-URL: https://build.opensuse.org/request/show/306498
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=9
---
python-daemon-1.5.5.tar.bz2 | 3 --
python-daemon-2.0.5.tar.gz | 3 ++
python-python-daemon.changes | 102 +++++++++++++++++++++++++++++++++++
python-python-daemon.spec | 25 +++++----
4 files changed, 121 insertions(+), 12 deletions(-)
delete mode 100644 python-daemon-1.5.5.tar.bz2
create mode 100644 python-daemon-2.0.5.tar.gz
diff --git a/python-daemon-1.5.5.tar.bz2 b/python-daemon-1.5.5.tar.bz2
deleted file mode 100644
index c1c7577..0000000
--- a/python-daemon-1.5.5.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ed4b25e014ff6f49e4c78e248242fcb29580034f02ee347e3c70d8d41c29a5fd
-size 33949
diff --git a/python-daemon-2.0.5.tar.gz b/python-daemon-2.0.5.tar.gz
new file mode 100644
index 0000000..1032c5f
--- /dev/null
+++ b/python-daemon-2.0.5.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:afde4fa433d94d007206ee31a0941d55b5eb232a5422b670aad628547b46bf68
+size 71298
diff --git a/python-python-daemon.changes b/python-python-daemon.changes
index 2dc954d..1ac1904 100644
--- a/python-python-daemon.changes
+++ b/python-python-daemon.changes
@@ -1,3 +1,105 @@
+-------------------------------------------------------------------
+Tue May 12 11:38:14 UTC 2015 - benoit.monin@gmx.fr
+
+- update to version 2.0.5:
+ * Refine compatibility of exceptions for file operations.
+ * Specify the text encoding when opening the changelog file.
+- additional changes from version 2.0.4
+ * Record version info via Setuptools commands.
+ * Remove the custom Setuptools entry points. This closes Alioth
+ bug#314948.
+- additional changes from version 2.0.3
+ * Break circular import dependency for ‘setup.py’.
+ * Refactor all initial metadata functionality to
+ ‘daemon._metadata’.
+ * Distribute ‘version’ (and its tests) only in source, not
+ install.
+ * Build a “universal” (Python 2 and Python 3) wheel.
+- additional changes from version 2.0.2
+ * Declare test-time dependency on recent ‘unittest2’.
+ * Declare packaging-time dependency on ‘docutils’ library.
+ * Include unit tests for ‘version’ module with source
+ distribution.
+ * Record version info consistent with distribution metadata.
+- additional changes from version 2.0.1
+ * Include the ‘version’ module with source distribution.
+- additional changes from version 2.0
+ * Support both Python 3 (version 3.2 or later) and Python 2
+ (version 2.7 or later).
+ * Document the API of all functions comprehensively in docstrings.
+ * Add a hacking guide for developers.
+ * Add explicit credit for contributors.
+ * Document the security impact of the default umask.
+ * Specify explicit text or binary mode when opening files.
+ * Preserve exception context in custom exceptions.
+ * Declare compatibility with current Python versions.
+ * Depend on Python 3 compatible libraries.
+ * Update package homepage to Alioth hosted project page.
+ * Use ‘pydoc.splitdoc’ to get package description text.
+ * Remove ASCII translation of package description, not needed now
+ the docstring is a proper Unicode text value.
+ * Include test suite with source distribution.
+ * Move package metadata to ‘daemon/_metadata.py’.
+ * Migrate to JSON (instead of Python) for serialised version info.
+ * Add unit tests for metadata.
+ * Store and retrieve version info in Setuptools metadata.
+ * Migrate to ‘str.format’ for interpolation of values into text.
+ * Migrate to ‘mock’ library for mock objects in tests.
+ * Migrate to ‘testscenarios’ library for unit test scenarios.
+ * Migrate to ‘unittest2’ library for back-ported improvements.
+ Remove custom test suite creation.
+ * Discriminate Python 2-and-3 compatible usage of dict methods.
+ * Discriminate Python 2-and-3 compatible bytes versus text.
+ * Declare explicit absolute and relative imports.
+ * Discriminate between different ‘fileno’ method behaviours. In
+ Python 3, ‘StringIO.fileno’ is callable but raises an exception.
+ * Migrate to built-in ‘next’ function.
+ * Wrap the ‘fromlist’ parameter of ‘__import__’ for Python 3
+ compatibility.
+ * Wrap function introspection for Python 3 compatibility.
+ * Wrap standard library imports where names changed in Python 3.
+- additional changes from version 1.6.1
+ * Use unambiguous “except FooType as foo” syntax. This is to ease
+ the port to Python 3, where the ambiguous comma usage is an
+ error.
+ * Ensure a ‘basestring’ name bound to the base type for strings.
+ This is to allow checks to work on Python 2 and 3.
+ * Specify versions of Python supported, as trove classifiers.
+ * Update copyright notices.
+ * Add editor hints for most files.
+ * Distinguish continuation-line indentation versus block
+ indentation.
+ * Use unicode literals by default, specifying bytes where
+ necessary. This is to ease the port to Python 3, where the
+ default string type is unicode.
+ * Update copyright notices.
+ * Update the GPL license file to version 3, as declared in our
+ copyright notices.
+ * Change license of library code to Apache License 2.0.
+- additional changes from version 1.6
+ * Use absolute imports to disambiguate provenance of names.
+ * setup.py: Require ‘lockfile >=0.9’.
+ * daemon/pidfile.py: Renamed from ‘daemon/pidlockfile.py’. Change
+ references elsewhere to use this new name.
+ * test/test_pidfile.py: Renamed from ‘test/test_pidlockfile.py’.
+ Change references elsewhere to use this new name.
+ * daemon/pidfile.py: Remove functionality now migrated to
+ ‘lockfile’ library.
+ * FAQ: Add some entries and re-structure the document.
+ * Use ‘unicode’ data type for all text values.
+ * Prepare for Python 3 upgrade by tweaking some names and imports.
+ * MANIFEST.in: Include the documentation in the distribution.
+- update package license: changed upstream to apache-2.0
+- point the source URL to pypi
+- set a minimum version for python-devel
+- remove python-MiniMock from build dependencies
+- add python-docutils, python-mock, python-testscenarios,
+ python-testtools, python-unittest2 as test dependencies
+- set a minimum version for python-lockfile
+- remove sed call to fix non-executable script: fixed upstream
+- run the test during build
+- add LICENSE.ASF-2 and doc to package documentation
+
-------------------------------------------------------------------
Thu Oct 24 11:12:38 UTC 2013 - speilicke@suse.com
diff --git a/python-python-daemon.spec b/python-python-daemon.spec
index 01ad5ca..1e4f86e 100644
--- a/python-python-daemon.spec
+++ b/python-python-daemon.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-python-daemon
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,18 +17,23 @@
Name: python-python-daemon
-Version: 1.5.5
+Version: 2.0.5
Release: 0
Url: http://pypi.python.org/pypi/python-daemon/
Summary: Library to implement a well-behaved Unix daemon process
-License: Python-2.0
+License: Apache-2.0
Group: Development/Languages/Python
-Source: python-daemon-%{version}.tar.bz2
+Source: https://pypi.python.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: python-MiniMock
-BuildRequires: python-devel
+BuildRequires: python-devel >= 2.7
+BuildRequires: python-docutils
+BuildRequires: python-lockfile >= 0.10
+BuildRequires: python-mock >= 1.0
BuildRequires: python-setuptools
-Requires: python-lockfile
+BuildRequires: python-testscenarios >= 0.4
+BuildRequires: python-testtools
+BuildRequires: python-unittest2 >= 0.6
+Requires: python-lockfile >= 0.10
Provides: python-daemon = %{version}
Obsoletes: python-daemon < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -47,7 +52,6 @@ process environment for the program; use the instance as a context manager to en
%prep
%setup -q -n python-daemon-%{version}
-sed -i "1d" daemon/version/version_info.py # Fix non-executable script
%build
python setup.py build
@@ -55,9 +59,12 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%check
+python setup.py -q test
+
%files
%defattr(-,root,root,-)
-%doc ChangeLog
+%doc ChangeLog LICENSE.ASF-2 doc
%{python_sitelib}/*
%changelog