py-django-countries: updated to 7.5.1

7.5.1 (1 February 2023)
=======================

- Make ``CountryField`` queryset filters also work with country codes in
  addition to names.

- Switch to ``pyproject.toml`` rather than ``setup.py`` to fix installation
  issues with pip 23.0+.


7.5 (12 December 2022)
======================

- Rename Turkey to Türkiye.

- A change in v7.4 introduced multi-choice countries being stored sorted and
  deduplicated. This remains the default behaviour going forwards, but these
  can now be overridden via arguments on the ``CountryField``.

- Improve translation fallback handling, fixing a threading race condition that
  could cause odd translation issues. Thanks to Jan Wróblewski and Antoine
  Fontaine for their help in resolving this.
  This also fixes translation issues with older Python 3.6/3.7 versions.

- Add Python 3.11, drop Python 3.6 and Django 2.2 support.


7.4.2 (10 October 2022)
=======================

- Fix error when using ``USE_I18N = False``.


7.4.1 (7 October 2022)
======================

- Fix broken translations due to last common country names fix.


7.4 (7 October 2022)
====================

- Fixed Traditional Chinese translation (needed to be ``locale/zh_Hant``).

- Update flag of Honduras.

- Add Django 4.0 and 4.1 to the test matrix, dropping 3.0 and 3.1

- Add Django Rest Framework 3.13 and 3.14, dropping 3.11.

- Multi-choice countries are now stored sorted and with duplicates stripped.
  Thanks flbraun and Jens Diemer!

- Fix common country names not being honoured in non-English translations (only
  fixed for Python 3.8+).


7.3.2 (4 March 2022)
====================

- Fix slowdown introduced in v7.3 caused by always using country name lookups
  for field comparisons. ``filter(country="New Zealand")`` will no longer match
  now, but instead new ``__name`` and ``__iname`` filters have been added to
  achieve this.


7.3.1 (1 March 2022)
====================

- Typing compatibility fixes for Python <3.9.


7.3 (28 February 2022)
======================

- Make full English country names work in database lookups, for example,
  ``Person.objects.filter(country__icontains="zealand")``.
This commit is contained in:
adam 2023-08-30 14:41:43 +00:00
parent 9a9e6e6327
commit 8458e097df
3 changed files with 16 additions and 9 deletions

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.15 2023/07/13 10:03:27 wiz Exp $
# $NetBSD: Makefile,v 1.16 2023/08/30 14:41:43 adam Exp $
DISTNAME= django-countries-7.2.1
DISTNAME= django-countries-7.5.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/django-countries/}
@ -11,8 +10,9 @@ HOMEPAGE= https://github.com/SmileyChris/django-countries
COMMENT= Provides a country field for Django models
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-asgiref-[0-9]*:../../www/py-asgiref
DEPENDS+= ${PYPKGPREFIX}-django>=3:../../www/py-django3
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
USE_LANGUAGES= # none

View File

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.9 2021/05/14 18:58:14 adam Exp $
@comment $NetBSD: PLIST,v 1.10 2023/08/30 14:41:43 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@ -48,6 +48,8 @@ ${PYSITELIB}/django_countries/locale/de/LC_MESSAGES/django.mo
${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@test/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/en@test/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/eo/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/eo/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/es/LC_MESSAGES/django.mo
@ -122,6 +124,8 @@ ${PYSITELIB}/django_countries/locale/zh_CN/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/zh_CN/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/zh_Hans/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/zh_Hans/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/locale/zh_Hant/LC_MESSAGES/django.mo
${PYSITELIB}/django_countries/locale/zh_Hant/LC_MESSAGES/django.po
${PYSITELIB}/django_countries/makesprite.py
${PYSITELIB}/django_countries/makesprite.pyc
${PYSITELIB}/django_countries/makesprite.pyo
@ -430,6 +434,9 @@ ${PYSITELIB}/django_countries/tests/models.pyo
${PYSITELIB}/django_countries/tests/settings.py
${PYSITELIB}/django_countries/tests/settings.pyc
${PYSITELIB}/django_countries/tests/settings.pyo
${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_filters.py
${PYSITELIB}/django_countries/tests/test_admin_filters.pyc
${PYSITELIB}/django_countries/tests/test_admin_filters.pyo

View File

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.15 2021/10/26 11:30:31 nia Exp $
$NetBSD: distinfo,v 1.16 2023/08/30 14:41:43 adam Exp $
BLAKE2s (django-countries-7.2.1.tar.gz) = 21a1e7074a53406e59f4c92f0ec6f48c0cc98738b48a695879654d63aeef238b
SHA512 (django-countries-7.2.1.tar.gz) = 8136d124bc6c02024ae16c3ab023fde7ef8ec20a47702fa621c266ec060d7422dce714e80ddfb0141d577cdbaf2fb7c5f7b27d172e21d7ef2ecb4d958720cca8
Size (django-countries-7.2.1.tar.gz) = 649955 bytes
BLAKE2s (django-countries-7.5.1.tar.gz) = 68d00606a5c2423af065503b4aea2f1dab8be02059d64f91651216a427ad481c
SHA512 (django-countries-7.5.1.tar.gz) = 8fd8125d4df99f0d7e5d312289d1901bc87724df284d167a7b29e3e0f018e5f9b752c988e4d379ef8e0410d6f16dcfa2ebb5a05db25aa8961c99661a97d521ea
Size (django-countries-7.5.1.tar.gz) = 660484 bytes