diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..5b819dd --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include README.rst +graft tests +global-exclude __pycache__ *.pyc diff --git a/flit.ini b/flit.ini deleted file mode 100644 index 27928ca..0000000 --- a/flit.ini +++ /dev/null @@ -1,17 +0,0 @@ -[metadata] -module = ptyprocess -author = Thomas Kluyver -author-email = thomas@kluyver.me.uk -home-page = https://github.com/pexpect/ptyprocess -description-file = README.rst -classifiers = Development Status :: 5 - Production/Stable - Environment :: Console - Intended Audience :: Developers - Intended Audience :: System Administrators - License :: OSI Approved :: ISC License (ISCL) - Operating System :: POSIX - Operating System :: MacOS :: MacOS X - Programming Language :: Python - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3 - Topic :: Terminals diff --git a/ptyprocess/__init__.py b/ptyprocess/__init__.py index c831e41..4a40d11 100644 --- a/ptyprocess/__init__.py +++ b/ptyprocess/__init__.py @@ -1,4 +1,3 @@ -"""Run a subprocess in a pseudo terminal""" from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError __version__ = '0.5.1' diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a7d93a5 --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python + +import sys +from distutils.core import setup + +with open('README.rst') as f: + readme = f.read() + +assert sys.version_info >= (2, 7), ( + "Only python 2.7 and later is supported by ptyprocess.") + +setup(name='ptyprocess', + version='0.5', + description="Run a subprocess in a pseudo terminal", + long_description=readme, + author='Thomas Kluyver', + author_email="thomas@kluyver.me.uk", + url="https://github.com/pexpect/ptyprocess", + packages=['ptyprocess'], + classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: ISC License (ISCL)', + 'Operating System :: POSIX', + 'Operating System :: MacOS :: MacOS X', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Topic :: Terminals', + ], +)