summaryrefslogtreecommitdiff
path: root/www/py-gandi.cli/files/patch-setup.py
blob: e3f2a4235b768d322329724e4adbdc14718e4350 (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
31
32
33
--- setup.py.orig	2015-04-01 08:43:36 UTC
+++ setup.py
@@ -6,10 +6,11 @@ import os
 import sys
 
 from setuptools import setup, find_packages
+from io import open
 
 here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.md')).read()
-CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
+README = open(os.path.join(here, 'README.md'), encoding='utf-8').read()
+CHANGES = open(os.path.join(here, 'CHANGES.rst'), encoding='utf-8').read()
 
 
 with open(os.path.join(here, 'gandi', 'cli', '__init__.py')) as v_file:
@@ -18,7 +19,7 @@ with open(os.path.join(here, 'gandi', 'c
 
 requires = ['setuptools', 'pyyaml', 'click<=4.0', 'requests', 'IPy']
 
-tests_require = ['nose', 'coverage', 'tox', 'httpretty==0.8.6']
+tests_require = ['nose', 'httpretty==0.8.6' ]
 if sys.version_info < (2, 7):
     tests_require += ['unittest2', 'importlib']
 
@@ -52,6 +53,7 @@ setup(name='gandi.cli',
       zip_safe=False,
       install_requires=requires,
       tests_require=tests_require,
+      test_suite='gandi.cli.tests',
       extras_require=extras_require,
       entry_points="""\
 [console_scripts]