Update setup.py
This commit is contained in:
parent
d9f406e98d
commit
41b241cff6
15
setup.py
15
setup.py
@ -17,6 +17,8 @@ DESCRIPTION = 'My short description for my project.'
|
|||||||
URL = 'https://github.com/me/myproject'
|
URL = 'https://github.com/me/myproject'
|
||||||
EMAIL = 'me@example.com'
|
EMAIL = 'me@example.com'
|
||||||
AUTHOR = 'Awesome Soul'
|
AUTHOR = 'Awesome Soul'
|
||||||
|
REQUIRES_PYTHON = '>=3.6.0'
|
||||||
|
VERSION = None
|
||||||
|
|
||||||
# What packages are required for this module to be executed?
|
# What packages are required for this module to be executed?
|
||||||
REQUIRED = [
|
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.
|
# Load the package's __version__.py module as a dictionary.
|
||||||
about = {}
|
about = {}
|
||||||
with open(os.path.join(here, NAME, '__version__.py')) as f:
|
if not VERSION:
|
||||||
exec(f.read(), about)
|
with open(os.path.join(here, NAME, '__version__.py')) as f:
|
||||||
|
exec(f.read(), about)
|
||||||
|
else:
|
||||||
|
about['__version__'] = VERSION
|
||||||
|
|
||||||
|
|
||||||
class UploadCommand(Command):
|
class UploadCommand(Command):
|
||||||
@ -86,6 +91,7 @@ setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
author=AUTHOR,
|
author=AUTHOR,
|
||||||
author_email=EMAIL,
|
author_email=EMAIL,
|
||||||
|
python_requires=REQUIRES_PYTHON,
|
||||||
url=URL,
|
url=URL,
|
||||||
packages=find_packages(exclude=('tests',)),
|
packages=find_packages(exclude=('tests',)),
|
||||||
# If your package is a single module, use this instead of 'packages':
|
# 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
|
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 2.6',
|
|
||||||
'Programming Language :: Python :: 2.7',
|
|
||||||
'Programming Language :: Python :: 3',
|
'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 :: 3.6',
|
||||||
'Programming Language :: Python :: Implementation :: CPython',
|
'Programming Language :: Python :: Implementation :: CPython',
|
||||||
'Programming Language :: Python :: Implementation :: PyPy'
|
'Programming Language :: Python :: Implementation :: PyPy'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user