Skip to content

Commit 47b1d6a

Browse files
davidfstrgvanrossum
authored andcommitted
Create mypy_extensions package. (#2228)
Closes #2210. See also #2206.
1 parent b70daf6 commit 47b1d6a

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

extensions/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Mypy Extensions
2+
===============
3+
4+
The "mypy_extensions" module defines experimental extensions to the
5+
standard "typing" module that are supported by the mypy typechecker.
6+

extensions/mypy_extensions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""Defines experimental extensions to the standard "typing" module that are
2+
supported by the mypy typechecker.
3+
4+
Example usage:
5+
from mypy_extensions import TypedDict
6+
"""
7+
8+
# NOTE: This module must support Python 2.7 in addition to Python 3.x
9+
10+
# (TODO: Declare TypedDict and other extensions here)

extensions/setup.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env python
2+
3+
# NOTE: This package must support Python 2.7 in addition to Python 3.x
4+
5+
from distutils.core import setup
6+
7+
version = '0.1-dev'
8+
description = 'Experimental type system extensions for programs checked with the mypy typechecker.'
9+
long_description = '''
10+
Mypy Extensions
11+
===============
12+
13+
The "mypy_extensions" module defines experimental extensions to the
14+
standard "typing" module that are supported by the mypy typechecker.
15+
'''.lstrip()
16+
17+
classifiers = [
18+
'Development Status :: 2 - Pre-Alpha',
19+
'Environment :: Console',
20+
'Intended Audience :: Developers',
21+
'License :: OSI Approved :: MIT License',
22+
'Operating System :: POSIX',
23+
'Programming Language :: Python :: 2',
24+
'Programming Language :: Python :: 2.7',
25+
'Programming Language :: Python :: 3',
26+
'Programming Language :: Python :: 3.3',
27+
'Programming Language :: Python :: 3.4',
28+
'Programming Language :: Python :: 3.5',
29+
'Topic :: Software Development',
30+
]
31+
32+
setup(
33+
name='mypy_extensions',
34+
version=version,
35+
description=description,
36+
long_description=long_description,
37+
author='David Foster',
38+
author_email='[email protected]',
39+
url='http://www.mypy-lang.org/',
40+
license='MIT License',
41+
platforms=['POSIX'],
42+
py_modules=['mypy_extensions'],
43+
classifiers=classifiers,
44+
)

0 commit comments

Comments
 (0)