Skip to content

Commit

Permalink
Update python-python-rtmidi to version 1.5.7 / rev 10 via SR 1123698
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1123698
by user mia + anag+factory
- 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
  • Loading branch information
mia authored and bmwiedemann committed Nov 7, 2023
1 parent bdd1cac commit fa07475
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 30 deletions.
Binary file modified packages/p/python-python-rtmidi/.files
Binary file not shown.
37 changes: 37 additions & 0 deletions packages/p/python-python-rtmidi/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,41 @@ Changes:
<comment></comment>
<requestid>1096208</requestid>
</revision>
<revision rev="10" vrev="1">
<srcmd5>cc71265435c7b19d1444e92391fc26e8</srcmd5>
<version>1.5.7</version>
<time>1699388777</time>
<user>anag+factory</user>
<comment>- 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` &gt;= 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</comment>
<requestid>1123698</requestid>
</revision>
</revisionlist>
49 changes: 49 additions & 0 deletions packages/p/python-python-rtmidi/python-python-rtmidi.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Mon Nov 6 23:47:32 UTC 2023 - Mia Herkt <[email protected]>

- 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 <[email protected]>

Expand Down
41 changes: 12 additions & 29 deletions packages/p/python-python-rtmidi/python-python-rtmidi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand All @@ -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
1 change: 0 additions & 1 deletion packages/p/python-python-rtmidi/python-rtmidi-1.4.9.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-python-rtmidi/python_rtmidi-1.5.7.tar.gz

0 comments on commit fa07475

Please sign in to comment.