5 Star 0 Fork 4

src-openEuler / python-ptyprocess
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-ptyprocess.spec 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
yaokai13 提交于 2020-11-09 15:18 +08:00 . remove python2 subpackage
%global with_tests 0%{?_with_tests:1}
Name: python-ptyprocess
Version: 0.6.0
Release: 4
Summary: Run a subprocess in a pseudo terminal
License: ISC
URL: https://github.com/pexpect/ptyprocess
Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-pytest
%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.
%package -n python%{python3_pkgversion}-ptyprocess
Summary: Run a subprocess in a pseudo terminal
%python_provide python%{python3_pkgversion}-ptyprocess
%description -n python%{python3_pkgversion}-ptyprocess
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
%autosetup -n ptyprocess-%{version} -p1
%build
LC_ALL=en_US.UTF-8 \
%py3_build
%install
LC_ALL=en_US.UTF-8 \
%py3_install
%check
%if %{with_tests}
%{_bindir}/py.test-3.* -v
%endif
%files -n python%{python3_pkgversion}-ptyprocess
%doc LICENSE README.rst
%{python3_sitelib}/ptyprocess/
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
%changelog
* Mon Nov 09 2020 leiju <leiju4@huawei.com> - 0.6.0-4
- remove python2 subpackage
* Tue Feb 18 2020 chenli <chenli147@huawei.com> - 0.6.0-3
- init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-ptyprocess.git
git@gitee.com:src-openeuler/python-ptyprocess.git
src-openeuler
python-ptyprocess
python-ptyprocess
openEuler-20.03-LTS-SP3

搜索帮助