14
0
Files
python-python-daemon/python-python-daemon.spec
Tomáš Chvátal 6342cf6d5c Accepting request 687400 from home:jayvdb:coala:test-rig
- Remove unnecessary dependency on python-devel
- Remove unnecessary runtime dependency on docutils
- Update URL to https://pagure.io/python-daemon/
- Update to v2.2.3
  * Use custom fake file type for testing `fileno` behaviour.
    This works around an incompatibility in Python 2.7 `file` type that
    caused test cases to fail.
  * Promote the warning for `runner` module to a `DeprecationWarning`.
    This has been an unofficial example module from the beginning, and
    it will be removed in a future version.
- from v2.2.2
  * Remove from the build system specification a white space character
    not permitted in TOML format.
  * Implement test suite automation in virtualenvs, using Tox.
- from v2.2.1
  * Add a :PEP:`518` conformant build system specification (the
    ``pyproject.toml`` file).
- from v2.2.0
  * Correct the description of the return value for
    `daemon.is_detach_process_context_required`.
  * Set a sensible default for `Distribution.script_name`.
    This works around a bug in Setuptools which calls commands before
    the `Distribution` is initialised.
  * The test suite now relies on the test discovery feature in
    ‘unittest’. This feature is in Python version 2.7 and later.
  * Improve performance of `daemon.close_all_open_files`.

OBS-URL: https://build.opensuse.org/request/show/687400
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=19
2019-03-21 16:57:22 +00:00

74 lines
2.5 KiB
RPMSpec

#
# spec file for package python-python-daemon
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-daemon
Version: 2.2.3
Release: 0
Summary: Library to implement a well-behaved Unix daemon process
License: Apache-2.0 AND GPL-3.0-only
Group: Development/Languages/Python
URL: https://pagure.io/python-daemon/
Source: https://files.pythonhosted.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module lockfile >= 0.10}
BuildRequires: %{python_module mock >= 1.3}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testscenarios >= 0.4}
BuildRequires: %{python_module testtools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lockfile >= 0.10
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-daemon = %{version}
Obsoletes: %{oldpython}-daemon < %{version}
%endif
%python_subpackages
%description
This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon
process library".
A well-behaved Unix daemon process is tricky to get right, but the required steps are much the
same for every daemon program. A DaemonContext instance holds the behaviour and configured
process environment for the program; use the instance as a context manager to enter a daemon state.
%prep
%setup -q -n python-daemon-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_returns_standard_stream_file_descriptors fails
%python_exec -m pytest -k 'not test_returns_standard_stream_file_descriptors'
%files %{python_files}
%license LICENSE.ASF-2
%doc ChangeLog doc
%{python_sitelib}/*
%changelog