pkgsrc-Changes archive

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

CVS commit: pkgsrc/geography/py-maxminddb



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Dec  3 14:18:12 UTC 2025

Modified Files:
        pkgsrc/geography/py-maxminddb: Makefile distinfo

Log Message:
py-maxminddb: updated to 3.0.0

3.0.0 (2025-10-15)

* IMPORTANT: Python 3.10 or greater is required. If you are using an older
  version, please use an earlier release.
* Databases can now be loaded from buffers. This can be done by passing in a
  buffer as the database and using mode ``MODE_FD``. Pull request by Emanuel
  Seemann.
* The C extension now supports Python 3.13+ free-threading mode and is
  thread-safe for concurrent reads on platforms with pthread support (such as
  Linux and macOS) and Windows. On other platforms, the extension will use
  GIL-based protection.
* The C extension now uses PEP 489 multi-phase initialization, enabling
  proper subinterpreter support and module isolation for Python 3.12+. This
  modernizes the extension to use heap types instead of static types and
  implements per-module state management. Key benefits include support for
  Python 3.12+ isolated subinterpreters, multiple independent module
  instances, and future-proofing for Python 3.14's InterpreterPoolExecutor.
* **BREAKING**: The pure Python ``maxminddb.reader.Metadata`` class has been
  converted to a frozen dataclass. The ``__repr__`` format has changed from
  ``maxminddb.reader.Metadata(...)`` to ``Metadata(...)``. More importantly,
  all Metadata attributes are now readonly and cannot be modified after
  creation. If you were modifying metadata attributes after object creation,
  you will need to update your code. All functionality remains the same,
  including the ``node_byte_size`` and ``search_tree_size`` properties. Note:
  The C extension's Metadata class has always been readonly, so this change
  brings the pure Python implementation into consistency with the C extension.
* MODE constants have been converted to an ``IntEnum`` (``maxminddb.const.Mode``).
  The old constants (``MODE_AUTO``, ``MODE_FILE``, etc.) remain available for
  backward compatibility and are now aliases to the enum members. This provides
  better IDE support and type safety while maintaining full backward
  compatibility. You can now use either ``Mode.FILE`` or ``MODE_FILE`` - both
  work identically. Since ``IntEnum`` is int-compatible, existing code using
  the constants will continue to work without modification.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/geography/py-maxminddb/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/geography/py-maxminddb/distinfo

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

Modified files:

Index: pkgsrc/geography/py-maxminddb/Makefile
diff -u pkgsrc/geography/py-maxminddb/Makefile:1.11 pkgsrc/geography/py-maxminddb/Makefile:1.12
--- pkgsrc/geography/py-maxminddb/Makefile:1.11 Sun Aug 10 09:10:30 2025
+++ pkgsrc/geography/py-maxminddb/Makefile      Wed Dec  3 14:18:11 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2025/08/10 09:10:30 adam Exp $
+# $NetBSD: Makefile,v 1.12 2025/12/03 14:18:11 adam Exp $
 
-DISTNAME=      maxminddb-2.8.2
+DISTNAME=      maxminddb-3.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    geography python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/maxminddb/}

Index: pkgsrc/geography/py-maxminddb/distinfo
diff -u pkgsrc/geography/py-maxminddb/distinfo:1.7 pkgsrc/geography/py-maxminddb/distinfo:1.8
--- pkgsrc/geography/py-maxminddb/distinfo:1.7  Sun Aug 10 09:10:30 2025
+++ pkgsrc/geography/py-maxminddb/distinfo      Wed Dec  3 14:18:11 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2025/08/10 09:10:30 adam Exp $
+$NetBSD: distinfo,v 1.8 2025/12/03 14:18:11 adam Exp $
 
-BLAKE2s (maxminddb-2.8.2.tar.gz) = 79f49b0925103d513c80eed3d1e0b4d0e9f4c19a4bf5bf73c54cea60ef4bca14
-SHA512 (maxminddb-2.8.2.tar.gz) = cbf4d38116be7b20faeff9962221fda568ffeb8e121b609593a3aff57d56f80475e976204f9bbd7449b48a264b4be264d57b1d3b48c598de025892182409a603
-Size (maxminddb-2.8.2.tar.gz) = 194388 bytes
+BLAKE2s (maxminddb-3.0.0.tar.gz) = 423fb5e4ff141b3c5d49a98fda42f8e4cade1724dffe21a669773bfaa3671af7
+SHA512 (maxminddb-3.0.0.tar.gz) = 7555322acf43a5a7f07e393c01661d5b4f3004c0125a8bddbcd73a518486eaa2a298d38210d4774c1ed39f9ac2b0a6d3baf2723608770a461365f7e8e0b0382d
+Size (maxminddb-3.0.0.tar.gz) = 199784 bytes



Home | Main Index | Thread Index | Old Index