Skip to content

Commit

Permalink
Merge pull request #504 from MinchinWeb/conditional-dependencies
Browse files Browse the repository at this point in the history
Allow wheels to determine the required dependencies
  • Loading branch information
ramonsaraiva committed Jan 5, 2018
2 parents 66ac193 + 61f4808 commit abeb2c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,6 +12,7 @@
nosetests.xml

local/
build/
dist/
docs/_build/
.idea
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Expand Up @@ -26,10 +26,6 @@ def grep(attrname):

file_text = read(fpath('arrow/__init__.py'))

install_requires = ['python-dateutil']
if sys.version_info[0] < 3:
install_requires.append('backports.functools_lru_cache==1.2.1')

setup(
name='arrow',
version=grep('__version__'),
Expand All @@ -41,7 +37,12 @@ def grep(attrname):
license='Apache 2.0',
packages=['arrow'],
zip_safe=False,
install_requires=install_requires,
install_requires=[
'python-dateutil',
],
extras_require={
":python_version=='2.7'": ['backports.functools_lru_cache>=1.2.1'],
},
test_suite="tests",
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit abeb2c2

Please sign in to comment.