pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/geography/py-country py-country: updated to 18.12.8
details: https://anonhg.NetBSD.org/pkgsrc/rev/82941a4ed4c7
branches: trunk
changeset: 334562:82941a4ed4c7
user: adam <adam%pkgsrc.org@localhost>
date: Fri May 31 12:37:04 2019 +0000
description:
py-country: updated to 18.12.8
18.12.8:
WARNING: This release contains a subtle but important API change that may break integrations!
Looking at 13416 I realized that I made a terrible API design choice with respect to how the get function should behave in Python. Probably under the influence of either too little or too much
whiskey I went and implemented get so that it raises a KeyError instead of doing the Pythonic thing and returning None and allowing to customize the default. There was a bit of back-and-forth around
this code in previous releases (specifically touching edge cases to have the Subdivision API behave ?reasonably?, although there doesn?t seem to be one right way there.)
Anyway, when preparing this release and reviewing 13416 and the other related issues and changes from the past I noticed my mistake an decide to fix it going forward.
So, from now on get will behave as expected in Python and yes, this means you will have to update your integration code carefully now checking for None returns instead of expecting KeyErrors. This is
work, but I think it?s worthwhile to uphold this convention within the Python community.
* Switch API from ?get + KeyError? to ? get + default=None?. This is a subtle API-breaking change. Please update carefully.
* Update to iso-codes 4.1.
diffstat:
geography/py-country/Makefile | 4 ++--
geography/py-country/PLIST | 8 +++++++-
geography/py-country/distinfo | 10 +++++-----
3 files changed, 14 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 84d005f3825e -r 82941a4ed4c7 geography/py-country/Makefile
--- a/geography/py-country/Makefile Fri May 31 10:39:29 2019 +0000
+++ b/geography/py-country/Makefile Fri May 31 12:37:04 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2018/07/05 11:39:10 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/05/31 12:37:04 adam Exp $
-DISTNAME= pycountry-18.5.26
+DISTNAME= pycountry-18.12.8
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
CATEGORIES= geography python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycountry/}
diff -r 84d005f3825e -r 82941a4ed4c7 geography/py-country/PLIST
--- a/geography/py-country/PLIST Fri May 31 10:39:29 2019 +0000
+++ b/geography/py-country/PLIST Fri May 31 12:37:04 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2018/07/05 11:39:10 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/05/31 12:37:04 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -128,6 +128,7 @@
${PYSITELIB}/pycountry/locales/cs/LC_MESSAGES/iso639_3.mo
${PYSITELIB}/pycountry/locales/csb/LC_MESSAGES/iso3166-1.mo
${PYSITELIB}/pycountry/locales/cv/LC_MESSAGES/iso3166-1.mo
+${PYSITELIB}/pycountry/locales/cy/LC_MESSAGES/iso15924.mo
${PYSITELIB}/pycountry/locales/cy/LC_MESSAGES/iso3166-1.mo
${PYSITELIB}/pycountry/locales/cy/LC_MESSAGES/iso3166-3.mo
${PYSITELIB}/pycountry/locales/cy/LC_MESSAGES/iso3166.mo
@@ -533,7 +534,12 @@
${PYSITELIB}/pycountry/locales/rw/LC_MESSAGES/iso4217.mo
${PYSITELIB}/pycountry/locales/rw/LC_MESSAGES/iso639-3.mo
${PYSITELIB}/pycountry/locales/rw/LC_MESSAGES/iso639_3.mo
+${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso15924.mo
${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso3166-1.mo
+${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso3166-2.mo
+${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso3166-3.mo
+${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso4217.mo
+${PYSITELIB}/pycountry/locales/sc/LC_MESSAGES/iso639-3.mo
${PYSITELIB}/pycountry/locales/sd/LC_MESSAGES/iso3166-1.mo
${PYSITELIB}/pycountry/locales/si/LC_MESSAGES/iso3166-1.mo
${PYSITELIB}/pycountry/locales/si/LC_MESSAGES/iso3166-3.mo
diff -r 84d005f3825e -r 82941a4ed4c7 geography/py-country/distinfo
--- a/geography/py-country/distinfo Fri May 31 10:39:29 2019 +0000
+++ b/geography/py-country/distinfo Fri May 31 12:37:04 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/07/05 11:39:10 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/05/31 12:37:04 adam Exp $
-SHA1 (pycountry-18.5.26.tar.gz) = a9217298215cdcd6535597eeaaec67e78072bc36
-RMD160 (pycountry-18.5.26.tar.gz) = 1e329727bebb5aa08feacc3604a4d5e86b164b1b
-SHA512 (pycountry-18.5.26.tar.gz) = 9760175a7926347920542a2fd2420cc3d4f36ac11df5aa6f7aaabbd9b46dd9cb61801933133a589ed35fd2e279db2a70e98340d8cf8856987dc88d6fdb715437
-Size (pycountry-18.5.26.tar.gz) = 9779056 bytes
+SHA1 (pycountry-18.12.8.tar.gz) = 5d2fd540cd254f980abf2459b6dcc56741d5303f
+RMD160 (pycountry-18.12.8.tar.gz) = 1aef86ce0594ec4f5b5f87cc56cf6c9e8c2be171
+SHA512 (pycountry-18.12.8.tar.gz) = 9797688ada8ea54c1a56a2cf4d0ad765001816c822c40077953fa71e3af285114c4b5beaf739a24432b9c6ea794952ce347a40ae0bcd9a2c00d12ddc7b45261e
+Size (pycountry-18.12.8.tar.gz) = 10026953 bytes
Home |
Main Index |
Thread Index |
Old Index