1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-12 14:59:13 -04:00
ports/www/py-pyocclient/files/patch-setup.py
Tobias Kortkamp b6c5c27475 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)
2017-12-21 16:07:07 +00:00

30 lines
774 B
Python

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(