blob: c211118ab0356262d8936d03c077fc13f4772d70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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(
|