Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2017 16:07:07 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r456914 - in head/www/py-pyocclient: . files
Message-ID:  <201712211607.vBLG77TF014064@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu Dec 21 16:07:07 2017
New Revision: 456914
URL: https://svnweb.freebsd.org/changeset/ports/456914

Log:
  www/py-pyocclient: Update to 0.4
  
  - Allow build for Python 3.x
  
  PR:		224068
  Submitted by:	lbdm@privacychain.ch
  Approved by:	che@bein.link (maintainer timeout, 2 weeks)

Added:
  head/www/py-pyocclient/files/
  head/www/py-pyocclient/files/patch-setup.py   (contents, props changed)
Modified:
  head/www/py-pyocclient/Makefile
  head/www/py-pyocclient/distinfo

Modified: head/www/py-pyocclient/Makefile
==============================================================================
--- head/www/py-pyocclient/Makefile	Thu Dec 21 15:47:10 2017	(r456913)
+++ head/www/py-pyocclient/Makefile	Thu Dec 21 16:07:07 2017	(r456914)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	pyocclient
-PORTVERSION=	0.1
+PORTVERSION=	0.4
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,12 @@ COMMENT=	Python Owncloud client library
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.0.1:www/py-requests@${FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.0.1:www/py-requests@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${FLAVOR}
 
-NO_ARCH=	yes
-USES=		python:2.7
+USES=		python
 USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
 
 .include <bsd.port.mk>

Modified: head/www/py-pyocclient/distinfo
==============================================================================
--- head/www/py-pyocclient/distinfo	Thu Dec 21 15:47:10 2017	(r456913)
+++ head/www/py-pyocclient/distinfo	Thu Dec 21 16:07:07 2017	(r456914)
@@ -1,2 +1,3 @@
-SHA256 (pyocclient-0.1.tar.gz) = b3505e4973bfadda11f9f5d426018f9ea3a373c3ef47b77324ed4f88f195ff43
-SIZE (pyocclient-0.1.tar.gz) = 11749
+TIMESTAMP = 1512341546
+SHA256 (pyocclient-0.4.tar.gz) = d8604f32cf10497a06e57b163b5f9c9bbe2e874a3606c39beeb1453133d563a6
+SIZE (pyocclient-0.4.tar.gz) = 24285

Added: head/www/py-pyocclient/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-pyocclient/files/patch-setup.py	Thu Dec 21 16:07:07 2017	(r456914)
@@ -0,0 +1,30 @@
+Fix reading of utf-8 formatted files in setup script and fix build
+with Python 3.x.
+
+https://github.com/owncloud/pyocclient/commit/aa6b4374a779bf0f9e060117b2e8d1e810342bc8
+
+--- setup.py.orig	2017-01-26 05:22:41 UTC
++++ setup.py
+@@ -3,18 +3,19 @@
+ # vim: expandtab shiftwidth=4 softtabstop=4
+ #
+ from setuptools import setup
++import io
+ 
+ version = '0.4'
+ 
+ long_description = (
+-    open('README.rst').read()
++    io.open('README.rst', encoding='utf-8').read()
+     + '\n' +
+     'Contributors\n'
+     '============\n'
+     + '\n' +
+-    open('docs/source/CONTRIBUTORS.rst').read()
++    io.open('docs/source/CONTRIBUTORS.rst', encoding='utf-8').read()
+     + '\n' +
+-    open('CHANGES.rst').read()
++    io.open('CHANGES.rst', encoding='utf-8').read()
+     + '\n')
+ 
+ setup(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712211607.vBLG77TF014064>