Compare commits

7 Commits

Author SHA256 Message Date
68ab1c0dea Accepting request 1286587 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bpython?expand=0&rev=19
2025-06-18 15:58:27 +00:00
d7f4ae9028 - Fix libalternatives bpython-config man page
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=39
2025-06-18 08:56:07 +00:00
7c238c10bf - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=38
2025-06-17 09:04:25 +00:00
b054938885 Accepting request 1239455 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bpython?expand=0&rev=18
2025-01-22 15:37:42 +00:00
ba23e43831 Accepting request 1239259 from home:glaubitz:branches:devel:languages:python
- Update to version 0.25
  * The `bpython-cli` rendering backend has been removed
    following deprecation in version 0.19.
  * This release is focused on Python 3.13 support.
  * Fix __signature__ support
  * #995: Fix handling of `SystemExit`
  * #996: Improve order of completion results
  * Fix build of documentation and manpages with Sphinx >= 7
  * #1001: Do not fail if modules don't have __version__
  * Remove use of distutils
  * Support for Python 3.12 and 3.13 has been added.
    Support for Python 3.7 and 3.8 has been dropped.
- Drop bpython-curses binary which was removed upstream
- Drop fix-python313-tests.patch, merged upstream
- Remove workaround for installing manpages from %install section

OBS-URL: https://build.opensuse.org/request/show/1239259
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=36
2025-01-22 09:10:24 +00:00
2773d9dc4b Accepting request 1234716 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1234716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bpython?expand=0&rev=17
2025-01-03 13:18:10 +00:00
6872a07b7e Accepting request 1234587 from home:nkrapp:branches:devel:languages:python
- Add fix-python313-tests.patch to fix tests under Python 3.13

OBS-URL: https://build.opensuse.org/request/show/1234587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=34
2025-01-03 11:04:50 +00:00
4 changed files with 45 additions and 19 deletions

View File

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

3
bpython-0.25.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Tue Jun 17 09:03:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Jan 21 12:13:55 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 0.25
* The `bpython-cli` rendering backend has been removed
following deprecation in version 0.19.
* This release is focused on Python 3.13 support.
* Fix __signature__ support
* #995: Fix handling of `SystemExit`
* #996: Improve order of completion results
* Fix build of documentation and manpages with Sphinx >= 7
* #1001: Do not fail if modules don't have __version__
* Remove use of distutils
* Support for Python 3.12 and 3.13 has been added.
Support for Python 3.7 and 3.8 has been dropped.
- Drop bpython-curses binary which was removed upstream
- Drop fix-python313-tests.patch, merged upstream
- Remove workaround for installing manpages from %install section
-------------------------------------------------------------------
Thu Jan 2 16:18:30 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Add fix-python313-tests.patch to fix tests under Python 3.13
-------------------------------------------------------------------
Wed Jul 26 06:58:24 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bpython
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
%bcond_without test
%bcond_without libalternatives
Name: python-bpython
Version: 0.24
Version: 0.25
Release: 0
Summary: Fancy Interface to the Python Interpreter
License: MIT
@@ -29,18 +30,18 @@ BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: update-desktop-files
Requires: %{name}-common = %{version}
Requires: alts
Requires: python-curtsies >= 0.4
Requires: python-greenlet
Requires: python-pygments
Requires: python-pyxdg
Requires: python-requests
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-cwcwidth
Recommends: python-jedi
Recommends: python-ndg-httpsclient
@@ -99,14 +100,8 @@ sphinx-build -b man doc/sphinx/source build/sphinx/man
%install
%pyproject_install
# install manual pages by hand, for now: gh#bpython/bpython/issues/987
mkdir -p %{buildroot}%{_mandir}/man1
mkdir %{buildroot}%{_mandir}/man5
mv build/sphinx/man/bpython.1 %{buildroot}/%{_mandir}/man1
mv build/sphinx/man/bpython-config.5 %{buildroot}/%{_mandir}/man5
%python_clone -a %{buildroot}%{_bindir}/bpython
%python_clone -a %{buildroot}%{_bindir}/bpython-curses
%python_clone -a %{buildroot}%{_bindir}/bpython-urwid
%python_clone -a %{buildroot}%{_bindir}/bpdb
%python_clone -a %{buildroot}%{_mandir}/man1/bpython.1
@@ -137,11 +132,8 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop
%pyunittest discover -v
%endif
%post
%{python_install_alternative bpython bpython-curses bpython-urwid bpdb bpython.1%{ext_man} bpython-config.5%{ext_man}}
%postun
%python_uninstall_alternative bpython
%pre
%python_libalternatives_reset_alternative bpython
%files %{python_files}
%license LICENSE
@@ -153,11 +145,16 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop
%dir %{python_sitelib}/bpython-%{version}*-info
%{python_sitelib}/bpython-%{version}*-info/*
%python_alternative %{_bindir}/bpython
%python_alternative %{_bindir}/bpython-curses
%python_alternative %{_bindir}/bpython-urwid
%python_alternative %{_bindir}/bpdb
%python_alternative %{_mandir}/man1/bpython.1%{ext_man}
%python_alternative %{_mandir}/man5/bpython-config.5%{ext_man}
# Needed because bpython-config doesn't have a binary, it's just a man page file.
%if %{with libalternatives}
%dir %{_datadir}/libalternatives/bpython-config
%{_datadir}/libalternatives/bpython-config/*%{python_version_nodots}.conf
%endif
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{python_bin_suffix}.metainfo.xml
%dir %{_datadir}/applications/