Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install error due to enum34 dependency using Python 3.4+, pip 19.0+, and pyproject.toml #49

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@
import os
from distutils import dir_util
from distutils.command.clean import clean as _clean
import sys

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

install_requires = ['setuptools>=19.2', 'future>=0.15.2', 'requests>=2.9.1']

# enum introduced in Python 3.4 so not required on 3.4+
if sys.version_info < (3, 4):
install_requires.append('enum34>=1.1.6')


class Clean(_clean):
def remove_dir(self, dir_to_del):
Expand Down Expand Up @@ -75,8 +82,7 @@ def run(self):

packages=find_packages(exclude=['contrib', 'docs', 'tests']),

install_requires=['setuptools>=19.2',
'future>=0.15.2', 'enum34>=1.1.6', 'requests>=2.9.1'],
install_requires=install_requires,

# $> pip install -e ".[dev,test, docs, release]"
extras_require={
Expand Down