pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/geography/py-country
Module Name: pkgsrc
Committed By: adam
Date: Fri May 31 12:37:04 UTC 2019
Modified Files:
pkgsrc/geography/py-country: Makefile PLIST distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/geography/py-country/Makefile \
pkgsrc/geography/py-country/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/geography/py-country/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/geography/py-country/Makefile
diff -u pkgsrc/geography/py-country/Makefile:1.4 pkgsrc/geography/py-country/Makefile:1.5
--- pkgsrc/geography/py-country/Makefile:1.4 Thu Jul 5 11:39:10 2018
+++ pkgsrc/geography/py-country/Makefile Fri May 31 12:37:04 2019
@@ -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/}
Index: pkgsrc/geography/py-country/distinfo
diff -u pkgsrc/geography/py-country/distinfo:1.4 pkgsrc/geography/py-country/distinfo:1.5
--- pkgsrc/geography/py-country/distinfo:1.4 Thu Jul 5 11:39:10 2018
+++ pkgsrc/geography/py-country/distinfo Fri May 31 12:37:04 2019
@@ -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
Index: pkgsrc/geography/py-country/PLIST
diff -u pkgsrc/geography/py-country/PLIST:1.3 pkgsrc/geography/py-country/PLIST:1.4
--- pkgsrc/geography/py-country/PLIST:1.3 Thu Jul 5 11:39:10 2018
+++ pkgsrc/geography/py-country/PLIST Fri May 31 12:37:04 2019
@@ -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_MES
${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_MES
${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
Home |
Main Index |
Thread Index |
Old Index