forked from pool/python-ptpython
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:
77
python-ptpython.spec
Normal file
77
python-ptpython.spec
Normal 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
|
||||
Reference in New Issue
Block a user