pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-django-countries



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Sep  3 09:22:39 UTC 2026

Modified Files:
        pkgsrc/www/py-django-countries: Makefile distinfo

Log Message:
py-django-countries: updated to 9.0.0

9.0.0 (10 June 2026)

Features

- Nullable `CountryField` (with `null=True`) now returns `None` instead of `Country(code=None)` when the database value is NULL. This makes the nullability explicit at the field level rather than 
inside the `Country` object, resulting in cleaner typing where `Country.code` is always a `str` (never `None`).

  **Breaking change:** Code that previously checked `obj.country.code is None` should now check `obj.country is None`. The common pattern `if obj.country:` continues to work unchanged.
- Add Django 6.0 and Python 3.14 support. Drop Django 3.2, 5.0, 5.1 and Python 3.8, 3.9. Minimum DRF bumped to 3.14.
- Add an opt-in `Countries.sorted(locale=...)` helper to return country choices sorted by translated display names.

Bugfixes

- Fix multiple type stub issues in `fields.pyi`: correct return types for `Country.name`, `Country.alpha3`, `Country.ioc_code` (now `str` instead of `str | None`), `Country.numeric` (now `int | None` 
instead of `str | None`), and `MultipleCountriesDescriptor.__iter__` (now `Iterator[Country]` instead of `Any`). Also add missing `blank_label` attribute and accept positional `verbose_name` argument 
in `CountryField.__init__` overloads.
- Exclude .mypy_cache directory from source distributions (was 73% of the sdist).

Improved Documentation

- Clarify that multiple=True returns a MultipleCountriesDescriptor, not a plain list.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/py-django-countries/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/www/py-django-countries/distinfo

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

Modified files:

Index: pkgsrc/www/py-django-countries/Makefile
diff -u pkgsrc/www/py-django-countries/Makefile:1.20 pkgsrc/www/py-django-countries/Makefile:1.21
--- pkgsrc/www/py-django-countries/Makefile:1.20        Fri Dec 26 16:45:03 2025
+++ pkgsrc/www/py-django-countries/Makefile     Thu Sep  3 09:22:39 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2025/12/26 16:45:03 adam Exp $
+# $NetBSD: Makefile,v 1.21 2026/09/03 09:22:39 adam Exp $
 
-DISTNAME=      django_countries-8.2.0
+DISTNAME=      django_countries-9.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-countries/}
@@ -11,18 +11,15 @@ COMMENT=    Provides a country field for Dj
 LICENSE=       mit
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-uv-build>=0.9.6:../../devel/py-uv-build
-DEPENDS+=      ${PYPKGPREFIX}-asgiref-[0-9]*:../../www/py-asgiref
-DEPENDS+=      ${PYPKGPREFIX}-django>=3.2:../../www/py-django
-DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+DEPENDS+=      ${PYPKGPREFIX}-asgiref>=0:../../www/py-asgiref
+DEPENDS+=      ${PYPKGPREFIX}-django>=4.2:../../www/py-django
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=0:../../devel/py-typing-extensions
 
 USE_LANGUAGES= # none
 
 REPLACE_PYTHON+=       django_countries/data.py
 REPLACE_PYTHON+=       django_countries/makesprite.py
 
-post-extract:
-       ${RM} -f -r ${WRKSRC}/django_countries/.mypy_cache
-
 .include "../../lang/python/application.mk"
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-django-countries/distinfo
diff -u pkgsrc/www/py-django-countries/distinfo:1.18 pkgsrc/www/py-django-countries/distinfo:1.19
--- pkgsrc/www/py-django-countries/distinfo:1.18        Fri Dec 26 16:45:03 2025
+++ pkgsrc/www/py-django-countries/distinfo     Thu Sep  3 09:22:39 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2025/12/26 16:45:03 adam Exp $
+$NetBSD: distinfo,v 1.19 2026/09/03 09:22:39 adam Exp $
 
-BLAKE2s (django_countries-8.2.0.tar.gz) = 630ceb271e650199a8f0a066a7f82f8492324ba75cdb2bf9db064065069cdb2b
-SHA512 (django_countries-8.2.0.tar.gz) = 71f7f3dc6ac5b8fb46bb5b34ec08fbae305a57e8a3464a3ad2cbfebb94cf80b157b87afe92626cd956db4db7cb24c335f6f410569f26373bc34247f90b7e9346
-Size (django_countries-8.2.0.tar.gz) = 2455542 bytes
+BLAKE2s (django_countries-9.0.0.tar.gz) = 3c30ecc83671f998b5f8ba06027530e0ff1b5f88f6ea6c9643e374f62b61228e
+SHA512 (django_countries-9.0.0.tar.gz) = 1fa938f56b6c9d6501630608aa92b46a8de27578866a40d7285e63e83d57d00b3b9171608efe0d6cd39757a9631ce52487e77f591279a88d727bd381511a685c
+Size (django_countries-9.0.0.tar.gz) = 614144 bytes



Home | Main Index | Thread Index | Old Index