./devel/py-daemon, Library to implement a well-behaved Unix daemon process

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.0.1, Package name: py312-daemon-3.0.1, Maintainer: kamel.derouiche

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.


Required to run:
[devel/py-setuptools] [devel/py-lockfile] [lang/python37]

Required to build:
[textproc/py-docutils] [pkgtools/cwrappers] [net/py-twine]

Master sites:

Filesize: 79.431 KB

Version history: (Expand)


CVS history: (Expand)


   2024-01-12 15:26:59 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-daemon: updated to 3.0.1

Version 3.0.1
=============

:Released: 2023-03-08
:Maintainer: Ben Finney <ben+python@benfinney.id.au>

Bugs Fixed:

* Declare dependency on Setuptools >= 62.4.0.

  This is necessary for establishing the version information via Setuptools. We
  use ‘setuptools.command.build’, `introduced in Setuptools version 62.4.0

Added:

* PyPA recommended Project URLs for the distribution.

Version 3.0.0
=============

:Released: 2023-03-04
:Maintainer: Ben Finney <ben+python@benfinney.id.au>

Bugs Fixed:

* Refactor calculation of file descriptor ranges to close.

  When the range of candidate file descriptors is very large, the code that
  computes file descriptors to close when the daemon starts attempted to
  allocate a large amount of memory and took a long time to compute.

  Thanks to Alex Pyrgiotis for the timing test case.

  This change avoids that resource-intensive computation, and significantly
  improves the performance when importing the module and when starting the
  daemon.

  Thanks to Igor Kholopov for the implementation.

Added:

* Document a `ServiceRunner` class as an example of using `DaemonContext`.

Changed:

* Raise a TypeError if any `exclude` values are not valid file descriptors.

  Formerly, an invalid value might be silently ignored.

  Thanks to Igor Kholopov for the suggestion.

* Migrate package version handling to use Setuptools API.

  The Distutils library is deprecated for direct use; see

Removed:

* Remove redundant ‘wheel’ from the requirements specification.

  As described by the Python Packaging Authority:

      This [‘wheel’] dependency is exposed automatically by setuptools and the
      users do not need to declare it explicitly — it will be installed by PEP
      517 front-ends automatically, when building wheels.

  Thanks to Michał Górny for the implementation.

* Remove Setuptools ‘test’ command support.

  The ‘test’ command is formally deprecated, in favour of dedicated test
  runners.

* Remove Setuptools ‘register’ and ‘upload’ command support.

  The commands to publish a distribution to PyPI are removed, in favour of the
  Twine tool.

* Remove the obsolete `runner` module.

  This module was deprecated starting in `python-daemon` version 2.1.2, and is
  now removed as unmaintained.
   2023-11-07 23:38:10 by Thomas Klausner | Files touched by this commit (112)
Log message:
*: latest py-sphinx only support Python 3.9+
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2022-10-23 12:44:26 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-daemon: updated to 2.3.2

Version 2.3.2
=============

Bugs Fixed:

* Declare Twine as a development dependency (not a build dependency).
* Specify to build a wheel distribution for only Python 3 or later.
* Specify the built package requires Python 3 or later.

Removed:

* The earlier version 2.3.1 is now “yanked” from PyPI (unlisted and not an
  installation candidate), because that version incorrectly permitted
  installation on Python 2. Thanks to Nick M. for the report.
   2022-09-11 18:01:24 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-daemon: Convert to wheel.mk to fix build.

Bump PKGREVISION.
   2022-09-05 11:49:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-daemon: updated to 2.3.1

Version 2.3.1
=============

Bugs Fixed:

* Avoid operations on a closed stream file when detecting a socket.
* Correct use of names to allow `from daemon import *`.

Changed:

* Speed daemon start time by computing candidate file descriptors once.
* Remove incorrect double-patch of objects in test cases.
* Deprecate helper function `is_socket`.

  The function incorrectly causes `ValueError` when the file object is already
  closed. Migrate to the new `is_socket_file` helper function instead.

Removed:

* Drop backward-compatible helpers that provided Python 2 support.

  * declaration of source encoding ‘utf-8’
  * absolute_import
  * unicode_literals
  * module-level metaclass `type`
  * unification of str with unicode type
  * renamed standard library exceptions and modules
  * raise exception from context exception

  All these are default behaviour in Python 3 and need no special
  handling.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip