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

Commit

Permalink
Universal wheels again (:
Browse files Browse the repository at this point in the history
  • Loading branch information
todofixthis committed Aug 16, 2017
1 parent 5b16f2b commit 85bbc7d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,3 +1,4 @@
dist: trusty
language: python
python:
- '2.7'
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
45 changes: 14 additions & 31 deletions setup.py
Expand Up @@ -5,7 +5,6 @@
from __future__ import absolute_import, division, print_function

from codecs import StreamReader, open
from sys import version_info

from setuptools import find_packages, setup

Expand All @@ -15,34 +14,6 @@
long_description = f.read()


##
# For compatibility with versions of pip < 9, we will determine
# dependencies at runtime.
# Maybe once Travis upgrades their containers to use a newer version,
# we'll switch to the newer syntax (:
install_dependencies = [
'filters',
'six',

# ``security`` extra wasn't introduced until 2.4.1
# http://docs.python-requests.org/en/latest/community/updates/#id35
'requests[security] >= 2.4.1',
]

unit_test_dependencies = [
'nose',
]

if version_info[0] < 3:
install_dependencies.extend([
'typing',
])

unit_test_dependencies.extend([
'mock', # 'mock; python_version < "3.0"',
])


##
# Off we go!
setup(
Expand All @@ -68,15 +39,27 @@
],
},

install_requires = install_dependencies,
install_requires = [
'filters',
'six',

# ``security`` extra wasn't introduced until 2.4.1
# http://docs.python-requests.org/en/latest/community/updates/#id35
'requests[security] >= 2.4.1',

'typing; python_version < "3.0"',
],

extras_require = {
'ccurl': ['pyota-ccurl'],
},

test_suite = 'test',
test_loader = 'nose.loader:TestLoader',
tests_require = unit_test_dependencies,
tests_require = [
'mock; python_version < "3.0"',
'nose',
],

license = 'MIT',

Expand Down

0 comments on commit 85bbc7d

Please sign in to comment.