From ad3ccf163573d16bf4c9a8b7c79543e95d836f5cb0020bc82fd148c73bb057b6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:44 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + ptpython-0.41.tar.gz | 3 ++ python-ptpython.changes | 17 +++++++++ python-ptpython.spec | 77 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ptpython-0.41.tar.gz create mode 100644 python-ptpython.changes create mode 100644 python-ptpython.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ptpython-0.41.tar.gz b/ptpython-0.41.tar.gz new file mode 100644 index 0000000..a935899 --- /dev/null +++ b/ptpython-0.41.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a78b27a85c5dbe9d89376e7f3aa70a9d8fa15cb45ee5f73a3cc3963b9b528ac1 +size 42542 diff --git a/python-ptpython.changes b/python-ptpython.changes new file mode 100644 index 0000000..8e73d9c --- /dev/null +++ b/python-ptpython.changes @@ -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 + diff --git a/python-ptpython.spec b/python-ptpython.spec new file mode 100644 index 0000000..f4add44 --- /dev/null +++ b/python-ptpython.spec @@ -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