summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-05-31 12:37:04 +0000
committeradam <adam@pkgsrc.org>2019-05-31 12:37:04 +0000
commitad9bd8ca61ce4aa75e8d6306f89f02f1d28e7803 (patch)
tree943bd48bdda48cf55894c574017ff7282ea95781
parent628841fd1eef82d5c51ed56de482949c080f464a (diff)
downloadpkgsrc-ad9bd8ca61ce4aa75e8d6306f89f02f1d28e7803.tar.gz
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.
-rw-r--r--geography/py-country/Makefile4
-rw-r--r--geography/py-country/PLIST8
-rw-r--r--geography/py-country/distinfo10
3 files changed, 14 insertions, 8 deletions
diff --git a/geography/py-country/Makefile b/geography/py-country/Makefile
index 8a58144d422..e9d0af8e461 100644
--- a/geography/py-country/Makefile
+++ b/geography/py-country/Makefile
@@ -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 --git a/geography/py-country/PLIST b/geography/py-country/PLIST
index c6af057f28d..eff241d6dc8 100644
--- a/geography/py-country/PLIST
+++ b/geography/py-country/PLIST
@@ -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/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/iso3166.mo
${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 --git a/geography/py-country/distinfo b/geography/py-country/distinfo
index 952ef00a0a8..a2464cf99b7 100644
--- a/geography/py-country/distinfo
+++ b/geography/py-country/distinfo
@@ -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