forked from pool/python-pudb
Accepting request 620344 from home:mcepl
- Update to 2018.1: * Show variables that start with an underscore in the var view * Show length of array types in var view * Don't crash on var state changes if no variable shown * set socket REUSEADDR opt for the remote debugger * set default value of 'Go to Line' to None instead of empty string * update Go-to-Line UI with File/Current Line/Go to Line * Placate new Flake8; add some license headers * check 'safely_stringify_for_pudb' on the type #276 * Use urwid.util.calc_text_pos() in make_canvas() * Use text_width() in var_view * Create text_width() help function for getting the (terminal) width of… * Don't return early when "returning" from a module - Setup alterantives - Initial packaging effort - Packaged 2017.1.4 - Enabled tests, with TestFileSourceCodeProvider.test_get_lines excluded (https://github.com/inducer/pudb/issues/304) OBS-URL: https://build.opensuse.org/request/show/620344 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pudb?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
pudb-2018.1.tar.gz
Normal file
3
pudb-2018.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8d8b974641b7a7a2a721af01c9dce5eac8e05a2ceebc2680725ba8eef1ca876e
|
||||||
|
size 56771
|
29
python-pudb.changes
Normal file
29
python-pudb.changes
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 22:40:15 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Update to 2018.1:
|
||||||
|
* Show variables that start with an underscore in the var view
|
||||||
|
* Show length of array types in var view
|
||||||
|
* Don't crash on var state changes if no variable shown
|
||||||
|
* set socket REUSEADDR opt for the remote debugger
|
||||||
|
* set default value of 'Go to Line' to None instead of empty string
|
||||||
|
* update Go-to-Line UI with File/Current Line/Go to Line
|
||||||
|
* Placate new Flake8; add some license headers
|
||||||
|
* check 'safely_stringify_for_pudb' on the type #276
|
||||||
|
* Use urwid.util.calc_text_pos() in make_canvas()
|
||||||
|
* Use text_width() in var_view
|
||||||
|
* Create text_width() help function for getting the (terminal) width of…
|
||||||
|
* Don't return early when "returning" from a module
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 22:36:33 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Setup alterantives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 21:43:41 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Initial packaging effort
|
||||||
|
- Packaged 2017.1.4
|
||||||
|
- Enabled tests, with TestFileSourceCodeProvider.test_get_lines
|
||||||
|
excluded (https://github.com/inducer/pudb/issues/304)
|
95
python-pudb.spec
Normal file
95
python-pudb.spec
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pudb
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define upstream_name pudb
|
||||||
|
%define module_name pudb
|
||||||
|
%define py_maj_ver %(c=%{python})
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-pudb
|
||||||
|
Version: 2018.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A full-screen, console-based Python debugger
|
||||||
|
Group: Development/Tools/Debuggers
|
||||||
|
License: MIT
|
||||||
|
URL: http://mathema.tician.de/software/pudb
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module pytest-runner}
|
||||||
|
BuildRequires: %{python_module pytest-mock}
|
||||||
|
BuildRequires: %{python_module urwid}
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
PuDB is a full-screen, console-based visual debugger for Python.
|
||||||
|
|
||||||
|
Its goal is to provide all the niceties of modern GUI-based debuggers in
|
||||||
|
a more lightweight and keyboard-friendly package. PuDB allows you to
|
||||||
|
debug code right where you write and test it--in a terminal. If you've
|
||||||
|
worked with the excellent (but nowadays ancient) DOS-based Turbo Pascal
|
||||||
|
or C tools, PuDB's UI might look familiar.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
|
|
||||||
|
sed -i '1{\@^#! %{_bindir}/env python@d}' pudb/debugger.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
mv -v %{buildroot}%{_bindir}/%{upstream_name} \
|
||||||
|
%{buildroot}%{_bindir}/%{upstream_name}-%{python2_bin_suffix}
|
||||||
|
mv -v %{buildroot}%{_bindir}/%{upstream_name}3 \
|
||||||
|
%{buildroot}%{_bindir}/%{upstream_name}-%{python3_bin_suffix}
|
||||||
|
%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
|
||||||
|
# from the non-update-alternatives-ified package:
|
||||||
|
[ -h %{_bindir}/pudb ] || rm -vf %{_bindir}/pudb
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pudb
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pudb
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PYTHONPATH=$(pwd -P)
|
||||||
|
export LC_ALL=en_US.utf8
|
||||||
|
# https://github.com/inducer/pudb/issues/304
|
||||||
|
%python_expand py.test-%{$python_version} -k 'not test_get_lines'
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/%{module_name}
|
||||||
|
%{python_sitelib}/%{module_name}*.egg-info
|
||||||
|
%python_alternative %{_bindir}/%{upstream_name}
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user