diff --git a/extensions/README.md b/extensions/README.md new file mode 100644 index 000000000000..73b786b66b6f --- /dev/null +++ b/extensions/README.md @@ -0,0 +1,6 @@ +Mypy Extensions +=============== + +The "mypy_extensions" module defines experimental extensions to the +standard "typing" module that are supported by the mypy typechecker. + diff --git a/extensions/mypy_extensions.py b/extensions/mypy_extensions.py new file mode 100644 index 000000000000..459d691f65ac --- /dev/null +++ b/extensions/mypy_extensions.py @@ -0,0 +1,10 @@ +"""Defines experimental extensions to the standard "typing" module that are +supported by the mypy typechecker. + +Example usage: + from mypy_extensions import TypedDict +""" + +# NOTE: This module must support Python 2.7 in addition to Python 3.x + +# (TODO: Declare TypedDict and other extensions here) diff --git a/extensions/setup.py b/extensions/setup.py new file mode 100644 index 000000000000..aee20d0443f3 --- /dev/null +++ b/extensions/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python + +# NOTE: This package must support Python 2.7 in addition to Python 3.x + +from distutils.core import setup + +version = '0.1-dev' +description = 'Experimental type system extensions for programs checked with the mypy typechecker.' +long_description = ''' +Mypy Extensions +=============== + +The "mypy_extensions" module defines experimental extensions to the +standard "typing" module that are supported by the mypy typechecker. +'''.lstrip() + +classifiers = [ + 'Development Status :: 2 - Pre-Alpha', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: POSIX', + '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', + 'Topic :: Software Development', +] + +setup( + name='mypy_extensions', + version=version, + description=description, + long_description=long_description, + author='David Foster', + author_email='david@dafoster.net', + url='http://www.mypy-lang.org/', + license='MIT License', + platforms=['POSIX'], + py_modules=['mypy_extensions'], + classifiers=classifiers, +)