Skip to content

Commit

Permalink
Remove globals from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Holiverh committed Sep 10, 2017
1 parent 2a00556 commit e769b51
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,26 @@
import setuptools


install_requires = [
"docopt>=0.6.2",
"monotonic",
"requests>=2.0",
"six>=1.6",
]
if sys.version_info[0] == 2:
install_requires.append("enum34>=1.1")


def readme():
"""Load README contents."""
path = os.path.join(os.path.dirname(__file__), 'README.rst')
path = os.path.join(os.path.dirname(__file__), "README.rst")
with open(path) as readme:
return readme.read()


def install_requires():
"""Determine installation requirements."""
requirements = [
"docopt>=0.6.2",
"monotonic",
"requests>=2.0",
"six>=1.6",
]
if sys.version_info[0] == 2:
requirements.append("enum34>=1.1")
return requirements


setuptools.setup(
name="python-valve",
version="0.2.0",
Expand All @@ -33,7 +36,7 @@ def readme():
author="Oliver Ainsworth",
author_email="ottajay@googlemail.com",
packages=setuptools.find_packages(),
install_requires=install_requires,
install_requires=install_requires(),
extras_require={
"development": [
"pylint",
Expand Down

0 comments on commit e769b51

Please sign in to comment.