Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37635361
en ru br
ALT Linux repos
S:0.7.0-alt1

Group :: Development/Python3
RPM: python3-module-ptyprocess

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname ptyprocess

%def_with check

Name: python3-module-%oname
Version: 0.6.0
Release: alt2

Summary: Run a subprocess in a pseudo terminal
License: ISCL
Group: Development/Python3
# Source-git: https://github.com/pexpect/ptyprocess.git
Url: https://pypi.python.org/pypi/ptyprocess

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: /dev/pts
BuildRequires: python3-module-pytest
%endif

BuildArch: noarch

%description
Launch a subprocess in a pseudo terminal (pty), and interact with both
the process and its pty.

Sometimes, piping stdin and stdout is not enough. There might be a
password prompt that doesn't read from stdin, output that changes when
it's going to a pipe rather than a terminal, or curses-style interfaces
that rely on a terminal. If you need to automate these things, running
the process in a pseudo terminal (pty) is the answer.

%prep
%setup

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
tests/test_invalid_binary.py \
tests/test_preexec_fn.py

%build
%python3_build

%install
%python3_install

%check
py.test3 -v

%files
%doc README.rst docs/*.rst
%python3_sitelibdir/ptyprocess/
%python3_sitelibdir/ptyprocess-*.egg-info

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin