pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-swiftclient py-swiftclient: updated to 3.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/141ac773487f
branches:  trunk
changeset: 375010:141ac773487f
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Feb 02 08:36:10 2018 +0000

description:
py-swiftclient: updated to 3.5.0

3.5.0

* Allow for object uploads > 5GB from stdin.

  When uploading from standard input, swiftclient will turn the upload
  into an SLO in the case of large objects. By default, input larger
  than 10MB will be uploaded as an SLO with 10MB segment sizes. Users
  can also supply the --segment-size option to alter that
  threshold and the SLO segment size. One segment is buffered in
  memory (which is why 10MB default was chosen).

* The --meta option can now be set on the upload command.

* Updated PyPy test dependency references to be more accurate
  on different distros.

* Various other minor bug fixes and improvements.

diffstat:

 www/py-swiftclient/ALTERNATIVES            |   2 ++
 www/py-swiftclient/Makefile                |  28 +++++++++++++++++++---------
 www/py-swiftclient/PLIST                   |   6 +++---
 www/py-swiftclient/distinfo                |  11 +++++------
 www/py-swiftclient/patches/patch-setup.cfg |  15 ---------------
 5 files changed, 29 insertions(+), 33 deletions(-)

diffs (108 lines):

diff -r c05676aa36b9 -r 141ac773487f www/py-swiftclient/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-swiftclient/ALTERNATIVES   Fri Feb 02 08:36:10 2018 +0000
@@ -0,0 +1,2 @@
+bin/swift @PREFIX@/bin/swift@PYVERSSUFFIX@
+man/man1/swift.1 @PREFIX@/@PKGMANDIR@/man1/swift@PYVERSSUFFIX@.1
diff -r c05676aa36b9 -r 141ac773487f www/py-swiftclient/Makefile
--- a/www/py-swiftclient/Makefile       Fri Feb 02 08:19:41 2018 +0000
+++ b/www/py-swiftclient/Makefile       Fri Feb 02 08:36:10 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2018/01/26 22:37:00 jperkin Exp $
+# $NetBSD: Makefile,v 1.4 2018/02/02 08:36:10 adam Exp $
 
-DISTNAME=      python-swiftclient-3.4.0
+DISTNAME=      python-swiftclient-3.5.0
 PKGNAME=       ${DISTNAME:S/python/${PYPKGPREFIX}/}
-CATEGORIES=    www
+CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-swiftclient/}
 
 MAINTAINER=    triaxx%NetBSD.org@localhost
@@ -10,18 +10,28 @@
 COMMENT=       Python bindings to the OpenStack Object Storage API
 LICENSE=       apache-2.0
 
-PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36
+#PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36
+
+DEPENDS+=      ${PYPKGPREFIX}-keystone>=0.7.0:../../emulators/py-keystone
+DEPENDS+=      ${PYPKGPREFIX}-requests>=1.1:../../devel/py-requests
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six
 
-DEPENDS+= ${PYPKGPREFIX}-futures>=3.1:../../devel/py-futures
-DEPENDS+= ${PYPKGPREFIX}-keystone>=0.7.0:../../emulators/py-keystone
-DEPENDS+= ${PYPKGPREFIX}-requests>=1.1:../../devel/py-requests
-DEPENDS+= ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six
+.include "../../lang/python/pyversion.mk"
+
+.if "${PYPKGPREFIX}" == "py27"
+DEPENDS+=      ${PYPKGPREFIX}-futures>=3.1:../../devel/py-futures
+.endif
 
 SUBST_CLASSES+=                manpath
 SUBST_STAGE.manpath=   pre-configure
 SUBST_MESSAGE.manpath= fixing man path
 SUBST_FILES.manpath=   setup.cfg
-SUBST_SED.manpath=     -e 's,@PKGMANDIR@,${PKGMANDIR},'
+SUBST_SED.manpath=     -e 's,share/man,${PKGMANDIR},'
+
+post-install:
+       cd ${DESTDIR}${PREFIX} && \
+       ${MV} bin/swift bin/swift${PYVERSSUFFIX} && \
+       ${MV} man/man1/swift.1 man/man1/swift${PYVERSSUFFIX}.1 || ${TRUE}
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
diff -r c05676aa36b9 -r 141ac773487f www/py-swiftclient/PLIST
--- a/www/py-swiftclient/PLIST  Fri Feb 02 08:19:41 2018 +0000
+++ b/www/py-swiftclient/PLIST  Fri Feb 02 08:36:10 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2018/01/26 17:20:08 triaxx Exp $
-bin/swift
+@comment $NetBSD: PLIST,v 1.3 2018/02/02 08:36:10 adam Exp $
+bin/swift${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -38,4 +38,4 @@
 ${PYSITELIB}/swiftclient/version.py
 ${PYSITELIB}/swiftclient/version.pyc
 ${PYSITELIB}/swiftclient/version.pyo
-man/man1/swift.1
+man/man1/swift${PYVERSSUFFIX}.1
diff -r c05676aa36b9 -r 141ac773487f www/py-swiftclient/distinfo
--- a/www/py-swiftclient/distinfo       Fri Feb 02 08:19:41 2018 +0000
+++ b/www/py-swiftclient/distinfo       Fri Feb 02 08:36:10 2018 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2018/01/26 17:20:08 triaxx Exp $
+$NetBSD: distinfo,v 1.3 2018/02/02 08:36:10 adam Exp $
 
-SHA1 (python-swiftclient-3.4.0.tar.gz) = 99806d83a5cd12a663b41ce87c98643f9c4c58d7
-RMD160 (python-swiftclient-3.4.0.tar.gz) = f954bcd88b58774b3e88f89c3f63ee620cb77d97
-SHA512 (python-swiftclient-3.4.0.tar.gz) = c7def24f22ced03316ccb74fcd7426b071597a3c7576c14f98fd6d864d6ee3e8a7666966ca2d07b6d996546bfcc2497ab654a67ab0228705f078985a35b97457
-Size (python-swiftclient-3.4.0.tar.gz) = 175823 bytes
-SHA1 (patch-setup.cfg) = d1c8b80afbbda1d2c37a0a88bc4f55c3180d4980
+SHA1 (python-swiftclient-3.5.0.tar.gz) = e1f7fb6364fd21af6cdf9399caef306d252ddec7
+RMD160 (python-swiftclient-3.5.0.tar.gz) = ce367226c299f2bf4b36a66787ebb58ecf61c863
+SHA512 (python-swiftclient-3.5.0.tar.gz) = 0132d13e325e83f4ef0150fd66bbf4f6e7400c065e4410481b41d33da1c086726e6eb9c61a8063f32bd9103e5dd2071c1f1c28232a6300cbfe80bd57bac04c0a
+Size (python-swiftclient-3.5.0.tar.gz) = 182598 bytes
diff -r c05676aa36b9 -r 141ac773487f www/py-swiftclient/patches/patch-setup.cfg
--- a/www/py-swiftclient/patches/patch-setup.cfg        Fri Feb 02 08:19:41 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-setup.cfg,v 1.1 2018/01/26 17:20:08 triaxx Exp $
-
-Fix the invalid hardcoded MANPATH.
-
---- setup.cfg.orig     2017-07-27 08:00:29.000000000 +0000
-+++ setup.cfg
-@@ -30,7 +30,7 @@ packages = 
- scripts = 
-       bin/swift
- data_files = 
--      share/man/man1 = doc/manpages/swift.1
-+      @PKGMANDIR@/man1 = doc/manpages/swift.1
- 
- [extras]
- keystone = 



Home | Main Index | Thread Index | Old Index