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'
|
||||
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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user