pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/py-GeoIP



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Wed Oct 19 13:31:17 UTC 2016

Modified Files:
        pkgsrc/net/py-GeoIP: Makefile PLIST distinfo

Log Message:
Update net/py-GeoIP to 1.3.2

1.3.2
- The description for org_by_name incorrectly directed people to
  use name_by_addr rather than name_by_name.
- Previously GeoIP.country_names was populated from
  GeoIP_country_name in the libGeoIP C API. Some versions of the
  libGeoIP include non-ASCII ISO-8859-1 characters in these names,
  causing encoding errors under Python. When installed under
  Python 3, this API now uses UTF-8 country names to populate
  this dict.

1.3.1
- Strings with non-ASCII characters would throw a UTF-8 decoding
  error. In Python 3, all strings from the database are in UTF-8
  and using set_charset to set the character set to something
  other than UTF-8 will throw an ValueError exception.

1.3.0
- Python 3 support and significant code cleanup.
- The methods name_by_addr, name_by_addr_v6, name_by_name, and
  name_by_name_v6 were added for ISP, Org, and ASNum lookups.
- Portability fixes.
- Expose GEOIP_MMAP_CACHE from the C library.
- Unit tests were added.

1.2.9
- Packaging fix. PyPI-only release.

1.2.8
- Remove unused code.
- Fix low memory error handling and refcount issues on error
  reported by Matt Domsch

1.2.7
- Add example test_netspeedcell.py


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/net/py-GeoIP/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/py-GeoIP/PLIST
cvs rdiff -u -r1.6 -r1.7 pkgsrc/net/py-GeoIP/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/py-GeoIP/Makefile
diff -u pkgsrc/net/py-GeoIP/Makefile:1.17 pkgsrc/net/py-GeoIP/Makefile:1.18
--- pkgsrc/net/py-GeoIP/Makefile:1.17   Sat Jul  9 13:03:59 2016
+++ pkgsrc/net/py-GeoIP/Makefile        Wed Oct 19 13:31:17 2016
@@ -1,17 +1,22 @@
-# $NetBSD: Makefile,v 1.17 2016/07/09 13:03:59 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2016/10/19 13:31:17 fhajny Exp $
 
-DISTNAME=      GeoIP-Python-1.2.7
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/Python-//}
+DISTNAME=      geoip-api-python-1.3.2
+PKGNAME=       ${PYPKGPREFIX}-GeoIP-${DISTNAME:S/geoip-api-python-//}
 CATEGORIES=    net python geography
-MASTER_SITES=  http://geolite.maxmind.com/download/geoip/api/python/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=maxmind/}
 
 MAINTAINER=    bartosz.kuzma%gmail.com@localhost
-HOMEPAGE=      http://www.maxmind.com/app/python
-COMMENT=       GeoIP support for Python
+HOMEPAGE=      https://github.com/maxmind/geoip-api-python/
+COMMENT=       GeoIP Legacy Python API
 LICENSE=       gnu-lgpl-v2.1
 
+GITHUB_PROJECT=        geoip-api-python
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
 PYTHON_VERSIONS_INCOMPATIBLE=  34 35 # not yet ported as of 1.2.7
 
-.include "../../lang/python/distutils.mk"
+EGG_NAME=      GeoIP-${PKGVERSION_NOREV}
+
+.include "../../lang/python/egg.mk"
 .include "../../net/GeoIP/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/py-GeoIP/PLIST
diff -u pkgsrc/net/py-GeoIP/PLIST:1.3 pkgsrc/net/py-GeoIP/PLIST:1.4
--- pkgsrc/net/py-GeoIP/PLIST:1.3       Sun Apr  8 20:21:52 2012
+++ pkgsrc/net/py-GeoIP/PLIST   Wed Oct 19 13:31:17 2016
@@ -1,3 +1,6 @@
-@comment $NetBSD: PLIST,v 1.3 2012/04/08 20:21:52 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2016/10/19 13:31:17 fhajny Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/GeoIP.so
-${PYSITELIB}/${EGG_FILE}

Index: pkgsrc/net/py-GeoIP/distinfo
diff -u pkgsrc/net/py-GeoIP/distinfo:1.6 pkgsrc/net/py-GeoIP/distinfo:1.7
--- pkgsrc/net/py-GeoIP/distinfo:1.6    Wed Nov  4 00:35:29 2015
+++ pkgsrc/net/py-GeoIP/distinfo        Wed Oct 19 13:31:17 2016
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2015/11/04 00:35:29 agc Exp $
+$NetBSD: distinfo,v 1.7 2016/10/19 13:31:17 fhajny Exp $
 
-SHA1 (GeoIP-Python-1.2.7.tar.gz) = 0af5f5d06bc81b5427019d28ba029e8c31dec9eb
-RMD160 (GeoIP-Python-1.2.7.tar.gz) = 4abb50a70ce15e8305e786593ddd2de15efed129
-SHA512 (GeoIP-Python-1.2.7.tar.gz) = 9f6b37f781f1f1676394b472051790143cbff2a12770f2dfe1652238805cc1109259a2e3e80e376ec1165244b73f875f5dbd03db9c4f40869200e307fbd0a20c
-Size (GeoIP-Python-1.2.7.tar.gz) = 15938 bytes
+SHA1 (geoip-api-python-1.3.2.tar.gz) = caf93ed2dcd6ae43cc49691ea51d33ad2bcf7c0d
+RMD160 (geoip-api-python-1.3.2.tar.gz) = 622df285ec8d7270a5fe2f57774f5a387e944818
+SHA512 (geoip-api-python-1.3.2.tar.gz) = 284209a6894d55ef95844c5c4c7aafff99ebcb13996e5ff64a0c31b38677e13c11d51fd8b0250d0fa097f15805c27b572d5aa12c2b217a839afe3cdd0851c414
+Size (geoip-api-python-1.3.2.tar.gz) = 35674 bytes



Home | Main Index | Thread Index | Old Index