14
0

- Omit html docs due to hostile build system

- Update to 1.5.7
Fixes:
  * Fixed linting errors in `send_all.py` example.
    gh#SpotlightKid/python-rtmidi#184
  * Fixed (no)gil/except declarations on MIDI in callback and
    `MidiOut.sendMessage`.
    The GIL is acquired in any case for MIDI in callback and C++
    `sendMessage` call, since Cython needs to check for exceptions.
    Also remove wrong statement about the GIL being released in
    docstring for `send_message`.
    gh#SpotlightKid/python-rtmidi#185
  * Fixed errors and check for empty message correctly when passing
    an iter- or generator instead of a sequence to
    `MidiOut.send_message`.
    gh#SpotlightKid/python-rtmidi#186
    gh#SpotlightKid/python-rtmidi#188
- 1.5.6
Fixes:
  * Fixed building with `meson-python` >= 0.14.0.
    gh#SpotlightKid/python-rtmidi#177
- 1.5.5
  * Bump minimum Python version to 3.8
Fixes:
  * Fixed Cython compilation errors and warnings.
    gh#SpotlightKid/python-rtmidi#174
- 1.5.4
Changes:
  * Added `send_all.py` script to examples.
    gh#SpotlightKid/python-rtmidi#167

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rtmidi?expand=0&rev=19
This commit is contained in:
2023-11-07 00:18:40 +00:00
committed by Git OBS Bridge
parent fd472e9496
commit bdaa5a473e
4 changed files with 64 additions and 32 deletions

View File

@@ -15,28 +15,30 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-python-rtmidi
Version: 1.4.9
Version: 1.5.7
Release: 0
Summary: Python binding for the RtMidi C++ library
License: MIT
Group: Development/Languages/Python
URL: https://spotlightkid.github.io/python-rtmidi/
Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/python-rtmidi-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/python_rtmidi-%{version}.tar.gz
BuildRequires: %{python_module Cython <= 1.0.0}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module meson-python}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Cython <= 1.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: c++_compiler
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(jack)
BuildRequires: python(abi) > 3.5
BuildRequires: python(abi) > 3.8
%python_subpackages
%description
@@ -51,31 +53,14 @@ scheme of classes, methods and parameters adapted to the Python
PEP-8 conventions and requirements of the Python package naming
structure.
%package doc
Summary: HTML documentation and examples for python-rtmidi
Group: Documentation/Other
BuildArch: noarch
%description doc
Contains HTML documentation and examples for python-rtmidi.
%prep
%setup -q -n python-rtmidi-%{version}
%setup -q -n python_rtmidi-%{version}
sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py
rm src/_rtmidi.cpp
%build
%pyproject_wheel
# docs
rm docs/rtmidi.rst
rm docs/modules.rst
%{python_for_executables} ./setup.py build_ext --inplace
sphinx-apidoc -o docs/ rtmidi rtmidi/release.py
cat docs/api.rst.inc >> docs/rtmidi.rst
%make_build -C docs html
rm docs/_build/html/.buildinfo docs/_build/html/objects.inv
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
@@ -84,12 +69,10 @@ rm docs/_build/html/.buildinfo docs/_build/html/objects.inv
# which cannot be provided on OBS workers
%files %{python_files}
%license LICENSE.txt
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE.md
%doc AUTHORS.md CHANGELOG.md README.md
%doc examples
%{python_sitearch}/rtmidi
%{python_sitearch}/python_rtmidi-%{version}*-info
%files %{python_files doc}
%doc docs/_build/html examples
%changelog