Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 85bbc7d

Browse files
committed
Universal wheels again (:
1 parent 5b16f2b commit 85bbc7d

File tree

3 files changed

+17
-31
lines changed

3 files changed

+17
-31
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: python
23
python:
34
- '2.7'

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

setup.py

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from __future__ import absolute_import, division, print_function
66

77
from codecs import StreamReader, open
8-
from sys import version_info
98

109
from setuptools import find_packages, setup
1110

@@ -15,34 +14,6 @@
1514
long_description = f.read()
1615

1716

18-
##
19-
# For compatibility with versions of pip < 9, we will determine
20-
# dependencies at runtime.
21-
# Maybe once Travis upgrades their containers to use a newer version,
22-
# we'll switch to the newer syntax (:
23-
install_dependencies = [
24-
'filters',
25-
'six',
26-
27-
# ``security`` extra wasn't introduced until 2.4.1
28-
# http://docs.python-requests.org/en/latest/community/updates/#id35
29-
'requests[security] >= 2.4.1',
30-
]
31-
32-
unit_test_dependencies = [
33-
'nose',
34-
]
35-
36-
if version_info[0] < 3:
37-
install_dependencies.extend([
38-
'typing',
39-
])
40-
41-
unit_test_dependencies.extend([
42-
'mock', # 'mock; python_version < "3.0"',
43-
])
44-
45-
4617
##
4718
# Off we go!
4819
setup(
@@ -68,15 +39,27 @@
6839
],
6940
},
7041

71-
install_requires = install_dependencies,
42+
install_requires = [
43+
'filters',
44+
'six',
45+
46+
# ``security`` extra wasn't introduced until 2.4.1
47+
# http://docs.python-requests.org/en/latest/community/updates/#id35
48+
'requests[security] >= 2.4.1',
49+
50+
'typing; python_version < "3.0"',
51+
],
7252

7353
extras_require = {
7454
'ccurl': ['pyota-ccurl'],
7555
},
7656

7757
test_suite = 'test',
7858
test_loader = 'nose.loader:TestLoader',
79-
tests_require = unit_test_dependencies,
59+
tests_require = [
60+
'mock; python_version < "3.0"',
61+
'nose',
62+
],
8063

8164
license = 'MIT',
8265

0 commit comments

Comments
 (0)