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: Fri Dec 26 16:45:03 UTC 2025
Modified Files:
pkgsrc/www/py-django-countries: Makefile PLIST distinfo
Log Message:
py-django-countries: updated to 8.2.0
8.2.0 (25 November 2025)
Features
- Add `django_countries.django_filters.CountryFilter` for django-filters integration with support for custom `empty_label`. This filter automatically sets country choices and seamlessly integrates
with django-filters FilterSets, making it easier to add country filtering to your views.
- Enable `CountryFieldMixin` to accept `name_only`, `country_dict`, and output customization options via `Meta.extra_kwargs`. You can now configure country field serialization behavior without
explicitly declaring serializer fields, making it easier to customize output for both single and multiple country fields.
- `CountryField(country_dict=...)` now accepts either a boolean (existing behaviour) or an iterable/string of keys so you can control exactly which values appear in the serialized country dict (for
example `("code", "name", "alpha3")` or just `"alpha3"`).
- Add `COUNTRIES_FIRST_BY_LANGUAGE` and `COUNTRIES_FIRST_AUTO_DETECT` settings for dynamic country ordering based on user language. Countries can now be automatically reordered based on the current
language, with locale-based auto-detection (e.g., `fr-CA` users see Canada prepended to the French country group).
- Add support for custom `flag_url` in `COUNTRIES_OVERRIDE` setting. You can now specify a custom flag URL for overridden countries:
```python
COUNTRIES_OVERRIDE = {
"IND": {
"names": ["Indonesia"],
"ioc_code": "INA",
"flag_url": "flags/id.gif",
},
}
```
This is particularly useful when using custom country codes that need to reference existing flag images.
- Add `countries_context()` context manager for temporary, thread-local override of country configuration options. Supports all country options (`first`, `only`, `first_sort`, `first_repeat`,
`first_break`, `first_by_language`, `first_auto_detect`), enabling per-request customization based on user preferences, IP geolocation, or other dynamic factors. Each option independently overrides
its corresponding setting with the highest priority.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/www/py-django-countries/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/www/py-django-countries/PLIST
cvs rdiff -u -r1.17 -r1.18 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.19 pkgsrc/www/py-django-countries/Makefile:1.20
--- pkgsrc/www/py-django-countries/Makefile:1.19 Mon Apr 14 13:30:02 2025
+++ pkgsrc/www/py-django-countries/Makefile Fri Dec 26 16:45:03 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2025/04/14 13:30:02 adam Exp $
+# $NetBSD: Makefile,v 1.20 2025/12/26 16:45:03 adam Exp $
-DISTNAME= django-countries-7.6.1
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+DISTNAME= django_countries-8.2.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/django-countries/}
@@ -11,12 +10,19 @@ HOMEPAGE= https://github.com/SmileyChris
COMMENT= Provides a country field for Django models
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+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
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/PLIST
diff -u pkgsrc/www/py-django-countries/PLIST:1.12 pkgsrc/www/py-django-countries/PLIST:1.13
--- pkgsrc/www/py-django-countries/PLIST:1.12 Mon Apr 14 13:30:02 2025
+++ pkgsrc/www/py-django-countries/PLIST Fri Dec 26 16:45:03 2025
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.12 2025/04/14 13:30:02 adam Exp $
+@comment $NetBSD: PLIST,v 1.13 2025/12/26 16:45:03 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/django_countries/__init__.py
${PYSITELIB}/django_countries/__init__.pyc
${PYSITELIB}/django_countries/__init__.pyo
@@ -16,8 +14,12 @@ ${PYSITELIB}/django_countries/conf.pyo
${PYSITELIB}/django_countries/data.py
${PYSITELIB}/django_countries/data.pyc
${PYSITELIB}/django_countries/data.pyo
+${PYSITELIB}/django_countries/django_filters.py
+${PYSITELIB}/django_countries/django_filters.pyc
+${PYSITELIB}/django_countries/django_filters.pyo
${PYSITELIB}/django_countries/fields.py
${PYSITELIB}/django_countries/fields.pyc
+${PYSITELIB}/django_countries/fields.pyi
${PYSITELIB}/django_countries/fields.pyo
${PYSITELIB}/django_countries/filters.py
${PYSITELIB}/django_countries/filters.pyc
@@ -31,6 +33,7 @@ ${PYSITELIB}/django_countries/graphql/ty
${PYSITELIB}/django_countries/ioc_data.py
${PYSITELIB}/django_countries/ioc_data.pyc
${PYSITELIB}/django_countries/ioc_data.pyo
+${PYSITELIB}/django_countries/iso3166-1.csv
${PYSITELIB}/django_countries/locale/af/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/af/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/ar/LC_MESSAGES/django.mo
@@ -47,6 +50,7 @@ ${PYSITELIB}/django_countries/locale/de/
${PYSITELIB}/django_countries/locale/de/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/el/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/el/LC_MESSAGES/django.po
+${PYSITELIB}/django_countries/locale/en/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/en@test/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/en@test/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/eo/LC_MESSAGES/django.mo
@@ -79,6 +83,8 @@ ${PYSITELIB}/django_countries/locale/it/
${PYSITELIB}/django_countries/locale/it/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/ja/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/ja/LC_MESSAGES/django.po
+${PYSITELIB}/django_countries/locale/ka_GE/LC_MESSAGES/django.mo
+${PYSITELIB}/django_countries/locale/ka_GE/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/ko_KR/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/ko_KR/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/lt/LC_MESSAGES/django.mo
@@ -136,9 +142,6 @@ ${PYSITELIB}/django_countries/models.py
${PYSITELIB}/django_countries/models.pyc
${PYSITELIB}/django_countries/models.pyo
${PYSITELIB}/django_countries/py.typed
-${PYSITELIB}/django_countries/release.py
-${PYSITELIB}/django_countries/release.pyc
-${PYSITELIB}/django_countries/release.pyo
${PYSITELIB}/django_countries/serializer_fields.py
${PYSITELIB}/django_countries/serializer_fields.pyc
${PYSITELIB}/django_countries/serializer_fields.pyo
@@ -440,6 +443,9 @@ ${PYSITELIB}/django_countries/tests/sett
${PYSITELIB}/django_countries/tests/settings_noi18n.py
${PYSITELIB}/django_countries/tests/settings_noi18n.pyc
${PYSITELIB}/django_countries/tests/settings_noi18n.pyo
+${PYSITELIB}/django_countries/tests/test_admin_display.py
+${PYSITELIB}/django_countries/tests/test_admin_display.pyc
+${PYSITELIB}/django_countries/tests/test_admin_display.pyo
${PYSITELIB}/django_countries/tests/test_admin_filters.py
${PYSITELIB}/django_countries/tests/test_admin_filters.pyc
${PYSITELIB}/django_countries/tests/test_admin_filters.pyo
@@ -449,9 +455,15 @@ ${PYSITELIB}/django_countries/tests/test
${PYSITELIB}/django_countries/tests/test_drf.py
${PYSITELIB}/django_countries/tests/test_drf.pyc
${PYSITELIB}/django_countries/tests/test_drf.pyo
+${PYSITELIB}/django_countries/tests/test_dynamic_first.py
+${PYSITELIB}/django_countries/tests/test_dynamic_first.pyc
+${PYSITELIB}/django_countries/tests/test_dynamic_first.pyo
${PYSITELIB}/django_countries/tests/test_fields.py
${PYSITELIB}/django_countries/tests/test_fields.pyc
${PYSITELIB}/django_countries/tests/test_fields.pyo
+${PYSITELIB}/django_countries/tests/test_null_support.py
+${PYSITELIB}/django_countries/tests/test_null_support.pyc
+${PYSITELIB}/django_countries/tests/test_null_support.pyo
${PYSITELIB}/django_countries/tests/test_settings.py
${PYSITELIB}/django_countries/tests/test_settings.pyc
${PYSITELIB}/django_countries/tests/test_settings.pyo
Index: pkgsrc/www/py-django-countries/distinfo
diff -u pkgsrc/www/py-django-countries/distinfo:1.17 pkgsrc/www/py-django-countries/distinfo:1.18
--- pkgsrc/www/py-django-countries/distinfo:1.17 Fri Apr 12 07:54:31 2024
+++ pkgsrc/www/py-django-countries/distinfo Fri Dec 26 16:45:03 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.17 2024/04/12 07:54:31 adam Exp $
+$NetBSD: distinfo,v 1.18 2025/12/26 16:45:03 adam Exp $
-BLAKE2s (django-countries-7.6.1.tar.gz) = b052abd1f5c31ede2b5231e8a6ebb615653327f30f7b095109541b2551c2ddf3
-SHA512 (django-countries-7.6.1.tar.gz) = 2eb83edb3d50e37c1fae7070588f56432111c25f85b98f4c39e8162f0c81e8049ca0b6235a90b871973d809b859eb6abbda5d4a3b1f2f7c4c4cb27e723332871
-Size (django-countries-7.6.1.tar.gz) = 675623 bytes
+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
Home |
Main Index |
Thread Index |
Old Index