14
0

Accepting request 612007 from devel:languages:python:misc

Python REPL build on top of prompt_toolkit

OBS-URL: https://build.opensuse.org/request/show/612007
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ptpython?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-24 20:56:44 +00:00
committed by Git OBS Bridge
commit ad3ccf1635
5 changed files with 121 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
ptpython-0.41.tar.gz Normal file
View File

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

17
python-ptpython.changes Normal file
View File

@@ -0,0 +1,17 @@
-------------------------------------------------------------------
Thu May 24 17:38:09 UTC 2018 - toddrme2178@gmail.com
- spec file cleanups
-------------------------------------------------------------------
Wed Oct 18 16:45:24 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Update to version 0.41
* See changelog at https://github.com/jonathanslenders/ptpython/blob/da2c5281f60c2d8a92749709219771ffaa84220f/CHANGELOG
-------------------------------------------------------------------
Thu Mar 5 10:21:06 UTC 2015 - toddrme2178@gmail.com
- Initial version

77
python-ptpython.spec Normal file
View File

@@ -0,0 +1,77 @@
#
# spec file for package python-ptpython
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ptpython
Version: 0.41
Release: 0
Summary: Python REPL build on top of prompt_toolkit
License: ISC
Group: Development/Languages/Python
Url: https://github.com/jonathanslenders/ptpython
Source: https://files.pythonhosted.org/packages/source/p/ptpython/ptpython-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module docopt}
BuildRequires: %{python_module jedi >= 0.9.0}
BuildRequires: %{python_module parso >= 0.1.0}
BuildRequires: %{python_module prompt_toolkit >= 1.0.14}
# /SECTION
Requires: python-Pygments
Requires: python-docopt
Requires: python-jedi >= 0.9.0
Requires: python-prompt_toolkit >= 1.0.14
Recommends: python-parso >= 0.1.0
Recommends: python-jupyter_ipython
BuildArch: noarch
%python_subpackages
%description
Ptpython is an advanced Python REPL. It should work on all
Python versions from 2.6 up to 3.5 and work cross platform (Linux,
BSD, OS X and Windows).
%prep
%setup -q -n ptpython-%{version}
sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
rm %{buildroot}%{_bindir}/ptpython
rm %{buildroot}%{_bindir}/ptipython
%files %{python_files}
%doc CHANGELOG README.rst
%license LICENSE
%python2_only %{_bindir}/ptpython2
%python2_only %{_bindir}/ptipython2
%python3_only %{_bindir}/ptpython3
%python3_only %{_bindir}/ptipython3
%{python_sitelib}/*
%changelog