pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-atpublic



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Sep 30 09:23:19 UTC 2026

Modified Files:
        pkgsrc/devel/py-atpublic: Makefile PLIST distinfo

Log Message:
py-atpublic: updated to 8.0.1

8.0.1 (2026-09-21)

* The source distribution ships ``tests/``, ``docs/``, and ``conftest.py`` again.  8.0.0 shipped
  only ``src/public/``, so downstream packagers had no way to run the test suite against the
  released sdist.  (:GL:`30`)
* The ``install`` extra now requires ``atpublic-install >= 1.0.0``.  Unbounded it could resolve to
  the ``0.1.0a1`` prerelease, since installers fall back to a prerelease for a requirement that has
  no final release.  ``atpublic-install`` in turn now requires ``atpublic >= 8.0.0``, the first
  final release to export ``install()`` from the package itself.

8.0.0 (2026-09-18)

New features

* ``public()`` and ``private()`` now accept a single positional argument, which can be an object
  imported from another module, a module or submodule, or a string.  The resolved name is added to
  (or removed from) the ``__all__`` of the module where the call appears.  A string is used as
  given, and must be a valid Python identifier that isn't a reserved word; ``ValueError`` is raised
  otherwise.  When no name can be inferred, such as is the case with a constant or an instance,
  ``TypeError`` is raised, pointing you at the keyword argument form.  (:MR:`53`)
* ``@public`` and ``@private`` can now be installed into ``builtins`` at interpreter startup by
  installing the new ``install`` extra, i.e. ``pip install atpublic[install]``.  This pulls in the
  companion ``atpublic-install`` package, which enables the builtins at interpreter startup time via
  ``.pth`` or ``.start`` files.  (:MR:`51`)
* ``install()``, which adds ``@public`` and ``@private`` to ``builtins``, is now exported from the
  package itself, so it can be called as ``from public import install``.  Previously it was only
  reachable as ``public._startup.install``, which still works but is no longer the documented
  spelling.

Backward incompatibilities

* ``@private`` no longer creates an ``__all__`` when the module doesn't already have one.
  Previously, privatizing a name in a module with no ``__all__`` left an empty one behind, which is
  not the same thing as not having one: an empty ``__all__`` exports nothing, while no ``__all__``
  exports every name that doesn't start with an underscore.
* ``public(thing)`` and ``private(thing)`` used to operate on ``sys.modules[thing.__module__]``,
  i.e. the module where ``thing`` was *defined*.  Passing in an imported object therefore added the
  name to the wrong module's ``__all__``, and in the case of ``private()``, removed it from the
  wrong module's ``__all__``.  Both functions now always use the globals of the module where the
  call appears.  Use as a decorator is unaffected, since a decorator is applied where its target is
  defined.
* The implementation modules are now private, having been renamed with a leading underscore:
  ``public.modules``, ``public.private``, ``public.public``, and ``public.types`` are now
  ``public._modules``, ``public._private``, ``public._public``, and ``public._types``.  Import the
  package itself instead, as in ``from public import public, private, populate_all``.  Among other
  things this settles what ``public.public`` refers to; it used to name both a module and the
  function of the same name that the package exports.

Other changes

* Switch to `pyrefly <https://pyrefly.org/>`_ for type checking.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/py-atpublic/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-atpublic/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/py-atpublic/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-atpublic/Makefile
diff -u pkgsrc/devel/py-atpublic/Makefile:1.17 pkgsrc/devel/py-atpublic/Makefile:1.18
--- pkgsrc/devel/py-atpublic/Makefile:1.17      Sat Nov 29 17:48:41 2025
+++ pkgsrc/devel/py-atpublic/Makefile   Wed Sep 30 09:23:19 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2025/11/29 17:48:41 adam Exp $
+# $NetBSD: Makefile,v 1.18 2026/09/30 09:23:19 adam Exp $
 
-DISTNAME=      atpublic-7.0.0
+DISTNAME=      atpublic-8.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/atpublic/}
@@ -10,8 +10,8 @@ HOMEPAGE=     https://public.readthedocs.io/
 COMMENT=       @public decorator for Python
 LICENSE=       apache-2.0
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
-TEST_DEPENDS+= ${PYPKGPREFIX}-sybil-[0-9]*:../../devel/py-sybil
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0:../../devel/py-hatchling
+TEST_DEPENDS+= ${PYPKGPREFIX}-sybil>=0:../../devel/py-sybil
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/devel/py-atpublic/PLIST
diff -u pkgsrc/devel/py-atpublic/PLIST:1.6 pkgsrc/devel/py-atpublic/PLIST:1.7
--- pkgsrc/devel/py-atpublic/PLIST:1.6  Tue May 20 12:06:56 2025
+++ pkgsrc/devel/py-atpublic/PLIST      Wed Sep 30 09:23:19 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2025/05/20 12:06:56 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2026/09/30 09:23:19 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -6,16 +6,22 @@ ${PYSITELIB}/${WHEEL_INFODIR}/licenses/L
 ${PYSITELIB}/public/__init__.py
 ${PYSITELIB}/public/__init__.pyc
 ${PYSITELIB}/public/__init__.pyo
-${PYSITELIB}/public/modules.py
-${PYSITELIB}/public/modules.pyc
-${PYSITELIB}/public/modules.pyo
-${PYSITELIB}/public/private.py
-${PYSITELIB}/public/private.pyc
-${PYSITELIB}/public/private.pyo
-${PYSITELIB}/public/public.py
-${PYSITELIB}/public/public.pyc
-${PYSITELIB}/public/public.pyo
+${PYSITELIB}/public/_modules.py
+${PYSITELIB}/public/_modules.pyc
+${PYSITELIB}/public/_modules.pyo
+${PYSITELIB}/public/_private.py
+${PYSITELIB}/public/_private.pyc
+${PYSITELIB}/public/_private.pyo
+${PYSITELIB}/public/_public.py
+${PYSITELIB}/public/_public.pyc
+${PYSITELIB}/public/_public.pyo
+${PYSITELIB}/public/_resolve.py
+${PYSITELIB}/public/_resolve.pyc
+${PYSITELIB}/public/_resolve.pyo
+${PYSITELIB}/public/_startup.py
+${PYSITELIB}/public/_startup.pyc
+${PYSITELIB}/public/_startup.pyo
+${PYSITELIB}/public/_types.py
+${PYSITELIB}/public/_types.pyc
+${PYSITELIB}/public/_types.pyo
 ${PYSITELIB}/public/py.typed
-${PYSITELIB}/public/types.py
-${PYSITELIB}/public/types.pyc
-${PYSITELIB}/public/types.pyo

Index: pkgsrc/devel/py-atpublic/distinfo
diff -u pkgsrc/devel/py-atpublic/distinfo:1.15 pkgsrc/devel/py-atpublic/distinfo:1.16
--- pkgsrc/devel/py-atpublic/distinfo:1.15      Sat Nov 29 17:48:41 2025
+++ pkgsrc/devel/py-atpublic/distinfo   Wed Sep 30 09:23:19 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2025/11/29 17:48:41 adam Exp $
+$NetBSD: distinfo,v 1.16 2026/09/30 09:23:19 adam Exp $
 
-BLAKE2s (atpublic-7.0.0.tar.gz) = 8fa62128e75430242e4a38f77e93ee32a0b7dfca170a7df11aaf39fc8d2df744
-SHA512 (atpublic-7.0.0.tar.gz) = cb1bc639e49edfb3a34e075faa28a68d8e8528e26d1600f55e5dbff67f9b12da13c82d30fd4413a7c09bc4816eb1f72517ef42aea00c2ebe0d790daa5b7f7df0
-Size (atpublic-7.0.0.tar.gz) = 17801 bytes
+BLAKE2s (atpublic-8.0.1.tar.gz) = 0482c2766cd5ada2988bf61735e0e13d6b3c8e9209b1bab5f18b92423f5e389e
+SHA512 (atpublic-8.0.1.tar.gz) = 6a38c1c787626c3c943c718d3370e3b3a710d030c51ae80598ccfefb9faf6aa44059950022163d56a65f21615cdcc6bcf759d8dd04c1954f984fbe7ded761b52
+Size (atpublic-8.0.1.tar.gz) = 27401 bytes



Home | Main Index | Thread Index | Old Index