Accepting request 229861 from devel:languages:python

- fix license (ISC) (forwarded request 229706 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/229861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pexpect?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2014-04-14 18:47:32 +00:00 committed by Git OBS Bridge
commit 6b995a2269
5 changed files with 27 additions and 74 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:43c788f59dcf4bed677fd0b16891787dbf747e210ffedb6e90156fbbbd4d3b7b
size 113251

3
pexpect-3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd0045066718fba98481032303f07565cca6b22b3b7f104efe3e077a55e9ee8d
size 130404

View File

@ -1,67 +0,0 @@
---
MANIFEST.in | 15 +++++++++++++++
setup.py | 28 +++++++++++++++++++++++++++-
2 files changed, 42 insertions(+), 1 deletion(-)
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,15 @@
+include ANSI.py
+include fdpexpect.py
+include FSM.py
+include INSTALL
+include LICENSE
+include Makefile
+include MANIFEST.in
+include pexpect.py
+include pxssh.py
+include PKG-INFO
+include README
+include screen.py
+include setup.py
+recursive-include doc *
+recursive-include examples *
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,27 @@ $Revision: 485 $
$Date: 2007-07-12 15:23:15 -0700 (Thu, 12 Jul 2007) $
'''
from distutils.core import setup
-setup (name='pexpect',
+from distutils.command.bdist_rpm import bdist_rpm
+
+NAME = "python-pexpect"
+
+def getdoc():
+ import os
+ result = ['INSTALL','LICENSE','README','PKG-INFO']
+ list = os.listdir(os.path.join(os.curdir, 'doc'))
+ for file in list:
+ result.append(os.path.join('doc', file))
+ return result
+
+def getexamples():
+ import os
+ result = []
+ list = os.listdir(os.path.join(os.curdir, 'examples'))
+ for file in list:
+ result.append(os.path.join('examples', file))
+ return result
+
+setup (name=NAME,
version='2.3',
py_modules=['pexpect', 'pxssh', 'fdpexpect', 'FSM', 'screen', 'ANSI'],
description='Pexpect is a pure Python Expect. It allows easy control of other applications.',
@@ -12,6 +32,12 @@ setup (name='pexpect',
url='http://pexpect.sourceforge.net/',
license='MIT license',
platforms='UNIX',
+ data_files = [("share/doc/packages/"+NAME, getdoc()),
+ ("share/doc/packages/"+NAME+"/examples",getexamples())],
+ cmdclass = {
+ 'bdist_rpm': bdist_rpm
+ }
+
)
# classifiers = [

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Fri Apr 11 08:37:18 UTC 2014 - dmueller@suse.com
- fix license (ISC)
-------------------------------------------------------------------
Thu Apr 3 12:28:20 UTC 2014 - dmueller@suse.com
- update to 3.1:
* Fix an issue that prevented importing pexpect on Python 3 when ``sys.stdout``
was reassigned
* Improve prompt synchronisation in :mod:`~pexpect.pxssh`
* Fix pickling exception instances
* Fix handling exceptions from :func:`select.select` on Python 3
* A new :ref:`unicode API <unicode>` was introduced.
* Python 3 is now supported, using a single codebase.
* Pexpect now requires at least Python 2.6 or 3.2.
* The modules other than pexpect, such as :mod:`pexpect.fdpexpect` and
* Ignoring ``SIGHUP`` is now optional
-------------------------------------------------------------------
Thu Oct 24 12:42:54 UTC 2013 - speilicke@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pexpect
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,10 +18,10 @@
Name: python-pexpect
BuildRequires: python-devel
Version: 2.4
Version: 3.1
Release: 0
Summary: Pure Python Expect-like module
License: MIT
License: ISC
Group: Development/Libraries/Python
Url: http://pexpect.sourceforge.net/
Source: https://pypi.python.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
@ -49,10 +49,10 @@ python setup.py install --prefix="/usr" --root=%{buildroot}
%defattr(-,root,root,-)
%doc doc examples
%{python_sitelib}/ANSI.py*
%{python_sitelib}/pexpect/
%{python_sitelib}/FSM.py*
%{python_sitelib}/fdpexpect.py*
%{python_sitelib}/pexpect-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/pexpect.py*
%{python_sitelib}/pxssh.py*
%{python_sitelib}/screen.py*