14
0
forked from pool/python-pudb

* Update to 2020.1:

- Use Jedi for completion in the built-in shell
  - Add vi keys for sidebar
  - Clean up vi key handling, remove duplication
  - add -m switch to run as module
  - Require Py3.6
  - Use h/l to collapse/open containers in var view
  - feat: add reverse remote pudb
* Fix dealing with alternatives.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pudb?expand=0&rev=16
This commit is contained in:
2021-01-19 17:25:16 +00:00
committed by Git OBS Bridge
parent 00cf0d1269
commit 51dda9d6e2
4 changed files with 21 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pudb
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pudb
Version: 2019.2
Version: 2020.1
Release: 0
Summary: A full-screen, console-based Python debugger
License: MIT
@@ -57,17 +57,10 @@ sed -i '1{\@^#! %{_bindir}/env python@d}' pudb/debugger.py
%install
%python_install
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
%if %{with python2}
mv -v %{buildroot}%{_bindir}/%{upstream_name} \
%{buildroot}%{_bindir}/%{upstream_name}-%{python2_bin_suffix}
%endif
mv -v %{buildroot}%{_bindir}/%{upstream_name}3 \
%{buildroot}%{_bindir}/%{upstream_name}-%{python3_bin_suffix}
mv -v %{buildroot}%{_bindir}/pudb{*,}
%python_clone -a %{buildroot}%{_bindir}/pudb
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%prepare_alternative %{upstream_name}
%pre
# Since /usr/bin/pudb became ghosted to be used with
# update-alternatives, we have to get rid of the old binary resulting
@@ -90,6 +83,6 @@ export LC_ALL=en_US.utf8
%license LICENSE
%{python_sitelib}/%{module_name}
%{python_sitelib}/%{module_name}*.egg-info
%python_alternative %{_bindir}/%{upstream_name}
%python_alternative %{_bindir}/pudb
%changelog