forked from Stewori/pytypes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (45 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os.path
from setuptools import setup
here = os.path.dirname(__file__)
readme_path = os.path.join(here, 'README.rst')
readme = open(readme_path, 'rb').read().decode('utf-8')
# On PyPI we want to display the logo with adjusted font:
readme = readme.replace('pytypes_logo_text.png', 'pytypes_logo_text_pypi.png')
setup(
name='pytypes',
use_scm_version={
'version_scheme': 'post-release',
'local_scheme': 'dirty-tag'
},
description='Typing toolbox for Python 3 _and_ 2.',
long_description=readme,
url='https://github.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'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'
],
setup_requires=['setuptools_scm >= 1.7.0'],
extras_require={
':python_version == "2.7"': 'typing',
':python_version == "3.3"': 'typing >= 3.5',
':python_version == "3.4"': 'typing >= 3.5'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)