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

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Mon Nov 6 23:47:32 UTC 2023 - Mia Herkt <mia@0x0.st>
- 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
- 1.5.3, 1.5.2
Changes:
* Updated `rtmidi` submodule.
gh#SpotlightKid/python-rtmidi#156
- 1.5.1, 1.5.0
Fixes:
* Fixed memleak in `midiutils.list_{in,out}put_ports` function.
gh#SpotlightKid/python-rtmidi#103
* Fixed compilation with PyPy3.
Documentation:
* Clarified return types in docstrings.
* Converted readme, changelog, authors, and install docs to
Markdown.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 27 12:56:49 UTC 2023 - Edgar Aichinger <edogawa@aon.at> Tue Jun 27 12:56:49 UTC 2023 - Edgar Aichinger <edogawa@aon.at>

View File

@@ -15,28 +15,30 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: python-python-rtmidi Name: python-python-rtmidi
Version: 1.4.9 Version: 1.5.7
Release: 0 Release: 0
Summary: Python binding for the RtMidi C++ library Summary: Python binding for the RtMidi C++ library
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://spotlightkid.github.io/python-rtmidi/ 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 Sphinx}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module meson-python}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Cython <= 1.0.0} BuildRequires: %{python_module wheel}
BuildRequires: c++_compiler BuildRequires: c++_compiler
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(jack)
BuildRequires: python(abi) > 3.5 BuildRequires: python(abi) > 3.8
%python_subpackages %python_subpackages
%description %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 PEP-8 conventions and requirements of the Python package naming
structure. 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 %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 sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py
rm src/_rtmidi.cpp rm src/_rtmidi.cpp
%build %build
%pyproject_wheel %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 %install
%pyproject_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %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 # which cannot be provided on OBS workers
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.md
%doc AUTHORS.rst CHANGELOG.rst README.rst %doc AUTHORS.md CHANGELOG.md README.md
%doc examples
%{python_sitearch}/rtmidi %{python_sitearch}/rtmidi
%{python_sitearch}/python_rtmidi-%{version}*-info %{python_sitearch}/python_rtmidi-%{version}*-info
%files %{python_files doc}
%doc docs/_build/html examples
%changelog %changelog

View File

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

View File

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