Fri Jan 12 14:26:59 2024 UTC (135d)
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.


(adam)
diff -r1.28 -r1.29 pkgsrc/devel/py-daemon/Makefile
diff -r1.6 -r1.7 pkgsrc/devel/py-daemon/PLIST
diff -r1.12 -r1.13 pkgsrc/devel/py-daemon/distinfo

cvs diff -r1.28 -r1.29 pkgsrc/devel/py-daemon/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-daemon/Makefile 2023/11/07 22:37:59 1.28
+++ pkgsrc/devel/py-daemon/Makefile 2024/01/12 14:26:59 1.29
@@ -1,27 +1,26 @@ @@ -1,27 +1,26 @@
1# $NetBSD: Makefile,v 1.28 2023/11/07 22:37:59 wiz Exp $ 1# $NetBSD: Makefile,v 1.29 2024/01/12 14:26:59 adam Exp $
2 2
3DISTNAME= python-daemon-2.3.2 3DISTNAME= python-daemon-3.0.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//}
5PKGREVISION= 1 
6CATEGORIES= devel python 5CATEGORIES= devel python
7MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-daemon/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-daemon/}
8 7
9MAINTAINER= kamel.derouiche@gmail.com 8MAINTAINER= kamel.derouiche@gmail.com
10HOMEPAGE= https://pagure.io/python-daemon/ 9HOMEPAGE= https://pagure.io/python-daemon/
11COMMENT= Library to implement a well-behaved Unix daemon process 10COMMENT= Library to implement a well-behaved Unix daemon process
12LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
13 12
14TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel 13TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
15DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils 14DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
16DEPENDS+= ${PYPKGPREFIX}-lockfile>=0.10:../../devel/py-lockfile 15DEPENDS+= ${PYPKGPREFIX}-lockfile>=0.10:../../devel/py-lockfile
17DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools 16DEPENDS+= ${PYPKGPREFIX}-setuptools>=62.4.0:../../devel/py-setuptools
18TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage 17TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
19TEST_DEPENDS+= ${PYPKGPREFIX}-testscenarios>=0.4:../../devel/py-testscenarios 18TEST_DEPENDS+= ${PYPKGPREFIX}-testscenarios>=0.4:../../devel/py-testscenarios
20TEST_DEPENDS+= ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools 19TEST_DEPENDS+= ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools
21 20
22USE_LANGUAGES= # none 21USE_LANGUAGES= # none
23 22
24PYTHON_VERSIONS_INCOMPATIBLE= 27 38 23PYTHON_VERSIONS_INCOMPATIBLE= 27 38
25 24
26.include "../../lang/python/wheel.mk" 25.include "../../lang/python/wheel.mk"
27.include "../../mk/bsd.pkg.mk" 26.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/devel/py-daemon/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/py-daemon/PLIST 2023/10/28 19:56:58 1.6
+++ pkgsrc/devel/py-daemon/PLIST 2024/01/12 14:26:59 1.7
@@ -1,22 +1,19 @@ @@ -1,22 +1,19 @@
1@comment $NetBSD: PLIST,v 1.6 2023/10/28 19:56:58 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.7 2024/01/12 14:26:59 adam Exp $
 2${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.ASF-2
 3${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.GPL-3
 4${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 5${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 6${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 7${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
2${PYSITELIB}/daemon/__init__.py 8${PYSITELIB}/daemon/__init__.py
3${PYSITELIB}/daemon/__init__.pyc 9${PYSITELIB}/daemon/__init__.pyc
4${PYSITELIB}/daemon/__init__.pyo 10${PYSITELIB}/daemon/__init__.pyo
5${PYSITELIB}/daemon/_metadata.py 11${PYSITELIB}/daemon/_metadata.py
6${PYSITELIB}/daemon/_metadata.pyc 12${PYSITELIB}/daemon/_metadata.pyc
7${PYSITELIB}/daemon/_metadata.pyo 13${PYSITELIB}/daemon/_metadata.pyo
8${PYSITELIB}/daemon/daemon.py 14${PYSITELIB}/daemon/daemon.py
9${PYSITELIB}/daemon/daemon.pyc 15${PYSITELIB}/daemon/daemon.pyc
10${PYSITELIB}/daemon/daemon.pyo 16${PYSITELIB}/daemon/daemon.pyo
11${PYSITELIB}/daemon/pidfile.py 17${PYSITELIB}/daemon/pidfile.py
12${PYSITELIB}/daemon/pidfile.pyc 18${PYSITELIB}/daemon/pidfile.pyc
13${PYSITELIB}/daemon/pidfile.pyo 19${PYSITELIB}/daemon/pidfile.pyo
14${PYSITELIB}/daemon/runner.py 
15${PYSITELIB}/daemon/runner.pyc 
16${PYSITELIB}/daemon/runner.pyo 
17${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.ASF-2 
18${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.GPL-3 
19${PYSITELIB}/${WHEEL_INFODIR}/METADATA 
20${PYSITELIB}/${WHEEL_INFODIR}/RECORD 
21${PYSITELIB}/${WHEEL_INFODIR}/WHEEL 
22${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt 

cvs diff -r1.12 -r1.13 pkgsrc/devel/py-daemon/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-daemon/distinfo 2022/10/23 10:44:26 1.12
+++ pkgsrc/devel/py-daemon/distinfo 2024/01/12 14:26:59 1.13
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.12 2022/10/23 10:44:26 adam Exp $ 1$NetBSD: distinfo,v 1.13 2024/01/12 14:26:59 adam Exp $
2 2
3BLAKE2s (python-daemon-2.3.2.tar.gz) = 78be73ea8e04e7542ff18714ec1573badf63ced542f71720b078448d797c87e3 3BLAKE2s (python-daemon-3.0.1.tar.gz) = d08e0c78df38e095c3560de18d46aad436df9a647cf8933b09d551e2eb3d5687
4SHA512 (python-daemon-2.3.2.tar.gz) = d9f6e6c376a496fae96bd9efed0a56d00a137617a3d1d5ef74802ef176bc813bb1d49bbb9164cdbec03213529f944b32b257bcc64283abfa4a3522ff00826bfd 4SHA512 (python-daemon-3.0.1.tar.gz) = ea35ec3e930e533ef08a492aa36492a958c9258857cdc75ab2ddb6688a7d8990282cfa0f63ee5cb6b7036b9cb71be03631d5d0d58788a08052425a441bce4e9a
5Size (python-daemon-2.3.2.tar.gz) = 83127 bytes 5Size (python-daemon-3.0.1.tar.gz) = 81337 bytes