From 41b241cff6bb331b65eeb70c930c3daf40dac77a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 09:20:26 -0500 Subject: [PATCH] Update setup.py --- setup.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 930439b..19965ef 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,8 @@ DESCRIPTION = 'My short description for my project.' URL = 'https://github.com/me/myproject' EMAIL = 'me@example.com' AUTHOR = 'Awesome Soul' +REQUIRES_PYTHON = '>=3.6.0' +VERSION = None # What packages are required for this module to be executed? REQUIRED = [ @@ -37,8 +39,11 @@ with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: # Load the package's __version__.py module as a dictionary. about = {} -with open(os.path.join(here, NAME, '__version__.py')) as f: - exec(f.read(), about) +if not VERSION: + with open(os.path.join(here, NAME, '__version__.py')) as f: + exec(f.read(), about) +else: + about['__version__'] = VERSION class UploadCommand(Command): @@ -86,6 +91,7 @@ setup( long_description=long_description, author=AUTHOR, author_email=EMAIL, + python_requires=REQUIRES_PYTHON, url=URL, packages=find_packages(exclude=('tests',)), # If your package is a single module, use this instead of 'packages': @@ -102,12 +108,7 @@ setup( # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy'