17
0

9 Commits

Author SHA256 Message Date
4e41ebfb5b Accepting request 1284647 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1284647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=24
2025-06-11 14:19:15 +00:00
106b9d2975 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=44
2025-06-11 06:23:38 +00:00
0ed239bbef Accepting request 1238445 from devel:languages:python
- Use libalternatives instead of update-alternatives, bsc#1235782

OBS-URL: https://build.opensuse.org/request/show/1238445
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=23
2025-01-17 17:37:27 +00:00
b601192434 - fix alternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=42
2025-01-17 09:04:10 +00:00
03d7bc041a Accepting request 1238041 from home:nkrapp:branches:devel:languages:python
- Use libalternatives instead of update-alternatives, bsc#1235782

OBS-URL: https://build.opensuse.org/request/show/1238041
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=41
2025-01-15 12:59:49 +00:00
115a27c3a7 Accepting request 1202966 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1202966
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=22
2024-09-25 19:52:53 +00:00
36557fefe5 Accepting request 1202917 from home:ecsos:python
- Fix build error under Leap.

OBS-URL: https://build.opensuse.org/request/show/1202917
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=39
2024-09-24 12:58:28 +00:00
f837178fc9 Accepting request 1190525 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=21
2024-08-01 20:03:16 +00:00
77b169025b Accepting request 1190290 from home:glaubitz:branches:devel:languages:python
- Cherry-pick upstream patch to fix tests with Python 3.13
  * replace-deprecated-unittest-function.patch

OBS-URL: https://build.opensuse.org/request/show/1190290
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=37
2024-07-30 20:04:36 +00:00
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 11 05:49:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri Jan 17 09:03:51 UTC 2025 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -34,7 +34,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pyserial/pyseri
# PATCH-FIX-UPSTREAM - pyserial/pyserial#757 - Replace deprecated unittest.findTestCases function
Patch1: https://github.com/pyserial/pyserial/pull/757.patch#/replace-deprecated-unittest-function.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
@@ -85,12 +87,12 @@ find serial -type f -not -name 'miniterm.py' -exec chmod a-x {} +
touch test/__init__.py
%build
%python_build
%pyproject_wheel
make %{?_smp_mflags} -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation
sed -i -e "1{s|^#![[:space:]]*\/.*bin.*$|#!%{_bindir}/python3|}" examples/*.py
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pyserial-miniterm
%python_clone -a %{buildroot}%{_bindir}/pyserial-ports
@@ -122,7 +124,7 @@ rm documentation/_build/doctrees/environment.pickle
%python_alternative pyserial-miniterm
%python_alternative pyserial-ports
%{python_sitelib}/serial/
%{python_sitelib}/pyserial-%{version}-py*.egg-info
%{python_sitelib}/pyserial-%{version}.dist-info
%if 0%{?suse_version} > 1500
%files -n %{name}-doc