Codebase list ptyprocess / 859a4f0
Imported Upstream version 0.5.1 Julien Puydt 8 years ago
10 changed file(s) with 37 addition(s) and 51 deletion(s). Raw diff Collapse all Expand all
+0
-7
.gitignore less more
0 __pycache__
1 *.pyc
2
3 /build/
4 /dist/
5 MANIFEST
6 docs/_build/
+0
-8
.travis.yml less more
0 language: python
1 python:
2 - "2.7"
3 - "3.3"
4 - "3.4"
5 # command to run tests
6 script: py.test --verbose --verbose
7 sudo: False
+0
-3
MANIFEST.in less more
0 include README.rst
1 graft tests
2 global-exclude __pycache__ *.pyc
0 Metadata-Version: 1.1
1 Name: ptyprocess
2 Version: 0.5.1
3 Summary: Run a subprocess in a pseudo terminal
4 Home-page: https://github.com/pexpect/ptyprocess
5 Author: Thomas Kluyver
6 Author-email: thomas@kluyver.me.uk
5656 # The short X.Y version.
5757 version = '0.5'
5858 # The full version, including alpha/beta/rc tags.
59 release = version
59 release = version + '.1'
6060
6161 # The language for content autogenerated by Sphinx. Refer to documentation
6262 # for a list of supported languages.
0 [metadata]
1 module = ptyprocess
2 author = Thomas Kluyver
3 author-email = thomas@kluyver.me.uk
4 home-page = https://github.com/pexpect/ptyprocess
5 description-file = README.rst
6 classifiers = Development Status :: 5 - Production/Stable
7 Environment :: Console
8 Intended Audience :: Developers
9 Intended Audience :: System Administrators
10 License :: OSI Approved :: ISC License (ISCL)
11 Operating System :: POSIX
12 Operating System :: MacOS :: MacOS X
13 Programming Language :: Python
14 Programming Language :: Python :: 2.7
15 Programming Language :: Python :: 3
16 Topic :: Terminals
0 """Run a subprocess in a pseudo terminal"""
01 from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError
12
2 __version__ = '0.5'
3 __version__ = '0.5.1'
5454 """
5555 global _EOF, _INTR
5656 if (_EOF is not None) and (_INTR is not None):
57 pass
57 return
5858
5959 # inherit EOF and INTR definitions from controlling process.
6060 try:
364364 # trigger an exception because os.close may be None.
365365 try:
366366 self.close()
367 # which exception, shouldnt' we catch explicitly .. ?
367 # which exception, shouldn't we catch explicitly .. ?
368368 except:
369369 pass
370370
00 #!/usr/bin/env python
11
2 import sys
32 from distutils.core import setup
43
5 with open('README.rst') as f:
6 readme = f.read()
7
8 assert sys.version_info >= (2, 7), (
9 "Only python 2.7 and later is supported by ptyprocess.")
10
114 setup(name='ptyprocess',
12 version='0.5',
13 description="Run a subprocess in a pseudo terminal",
14 long_description=readme,
5 version='0.5.1',
6 description='Run a subprocess in a pseudo terminal',
157 author='Thomas Kluyver',
16 author_email="thomas@kluyver.me.uk",
17 url="https://github.com/pexpect/ptyprocess",
18 packages=['ptyprocess'],
19 classifiers = [
20 'Development Status :: 5 - Production/Stable',
21 'Environment :: Console',
22 'Intended Audience :: Developers',
23 'Intended Audience :: System Administrators',
24 'License :: OSI Approved :: ISC License (ISCL)',
25 'Operating System :: POSIX',
26 'Operating System :: MacOS :: MacOS X',
27 'Programming Language :: Python',
28 'Programming Language :: Python :: 2.7',
29 'Programming Language :: Python :: 3',
30 'Topic :: Terminals',
31 ],
32 )
8 author_email='thomas@kluyver.me.uk',
9 url='https://github.com/pexpect/ptyprocess',
10 packages=['ptyprocess']
11 )
3333 # result of echo $ENV_KEY in output
3434 assert env_value in outp
3535
36 # exit succesfully (exit 0)
36 # exit successfully (exit 0)
3737 assert p.wait() == 0
3838
3939
4949
5050 def test_quick_spawn(self):
5151 """Spawn a very short-lived process."""
52 # so far only reproducable on Solaris 11, spawning a process
52 # so far only reproducible on Solaris 11, spawning a process
5353 # that exits very quickly raised an exception at 'inst.setwinsize',
5454 # because the pty file descriptor was quickly lost after exec().
5555 PtyProcess.spawn(['true'])