forked from pool/python-usbsdmux
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 0d473c1cc3 | |||
| 24c9d39e05 | |||
| 6fa921bad3 | |||
| c2e1eb9b27 | |||
| c8858ad0b7 | |||
| 5f4b080b11 |
@@ -1,9 +1,94 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 7 11:47:42 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Update to 25.8:
|
||||||
|
* This release fixes a bug in which the MQTT reporting feature
|
||||||
|
could break the tool, if the MQTT broker is not available:
|
||||||
|
MQTT: Continue switching the Mux on MQTT error by @SmithChart
|
||||||
|
in #96
|
||||||
|
* usbsdmux: sd_regs: Fix ruff error regarding the use of percent
|
||||||
|
formatting by @hnez in #89
|
||||||
|
* CI: run checks on a schedule and allow workflow_dispatch by
|
||||||
|
@hnez in #90
|
||||||
|
* contrib/udev: explicitly load the sg module in the udev rule
|
||||||
|
by @hnez in #88
|
||||||
|
* Fix postal address in the LGPL by @SmithChart in #94 (Reported
|
||||||
|
by @yaneti in #91)
|
||||||
|
* Make License and Copyright Information compatible to Reuse 3.3
|
||||||
|
specification by @SmithChart in #97
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 16:31:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 24.11.1:
|
||||||
|
* Please note the breaking changes in 24.11.
|
||||||
|
- update to 24.11:
|
||||||
|
* With this release we fix an issue with the numbering of the
|
||||||
|
open drain outputs of the USB-SD-Mux FAST (see #83).
|
||||||
|
* With this release the numbering of the open drain output
|
||||||
|
changes.
|
||||||
|
* Testing: Allow running tests locally and make README-test
|
||||||
|
more verbose
|
||||||
|
* README: fixes, tweaks and re-organisation
|
||||||
|
* CI: streamline and add build and codespell targets
|
||||||
|
* QA: Use ruff instead of black + flake8 for formatting and
|
||||||
|
linting
|
||||||
|
* pyproject.toml: switch over from setup.py
|
||||||
|
* CI: add automatic publication to pypi.org and test.pypi.org
|
||||||
|
* usbsdmux: remove the deprecated service/client code paths
|
||||||
|
* usbsdmux: add ruff "UP" rules to config and fix issues
|
||||||
|
automatically
|
||||||
|
* pyproject.toml: fix fallout from the migration
|
||||||
|
* usb-sd-mux/FAST: Fix GPIO number-to-pin definition
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 13 07:52:14 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Switch from 'plugdev' group to 'disk' group for udev rule
|
||||||
|
- Update to 24.01.1:
|
||||||
|
* introduce (optional) logging of meta-data via MQTT.
|
||||||
|
See the README for more details on how to use it.
|
||||||
|
* What's Changed
|
||||||
|
- Add statistics via mqtt by @BedaKraus in #68
|
||||||
|
- README: Update DCO to follow the kernel wording by @SmithChart in #70
|
||||||
|
- Skipped 24.01:
|
||||||
|
* Our tool can now read the SCR, CID and CSD SD card registers from
|
||||||
|
the card reader ID, decode their contents and print the result on
|
||||||
|
the screen. Give the usbsdmux /dev/sg0 info command a try.
|
||||||
|
* Since the register contents are structured information we decided
|
||||||
|
to add a JSON-output, so the information can be used by other tools.
|
||||||
|
* What's Changed
|
||||||
|
- implement 'info' command to show SD card SCR, CID and CSD by @jluebbe in #58
|
||||||
|
- Add JSON status output for all commands and errors by @SmithChart in #60
|
||||||
|
- Add support for decoding SCR, CID and CSD registers by @jluebbe in #62
|
||||||
|
- Add pytest tests and a GitHub Actions workflow for SD register decoding by @jluebbe in #63
|
||||||
|
- add test that checks README.rst against usbsdmux -h output by @jluebbe in #65
|
||||||
|
- Skipped 0.3.0:
|
||||||
|
* add support for a new hardware revision of our USB-SD-Mux.
|
||||||
|
* The new hardware features two open-drain outputs and is built
|
||||||
|
around a new I2C port expander and a faster analog switch for
|
||||||
|
the SD-Card.
|
||||||
|
* Breaking Changes:
|
||||||
|
- If you are using this tool as a Python library: This release
|
||||||
|
changes the API. The usbsdmux.UsbSdMux class is now an abstract
|
||||||
|
base class and can not be instantiated directly. Use the
|
||||||
|
usbsdmux.autoselect_driver() function to obtain an instance of
|
||||||
|
the correct type.
|
||||||
|
* What's Changed:
|
||||||
|
- Cleanups for usb2642i2c by @ukleinek in #42
|
||||||
|
- create a basic debian package by @jluebbe in #38
|
||||||
|
- flake8 and black: Fix Problems and add Actions for verification by @SmithChart in #47
|
||||||
|
- README: fix typo in UDEV rule path by @remes-codasip in #54
|
||||||
|
- Drop debian packaging by @ukleinek in #53
|
||||||
|
- Add support for the USB-SD-Mux FAST by @SmithChart in #52
|
||||||
|
- Increment package version to 0.3.0 by @SmithChart in #56
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 17 08:56:58 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Thu Mar 17 08:56:58 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
- Update to 0.2.1. Main changes:
|
- Update to 0.2.1. Main changes:
|
||||||
* cli: Handle well-known Exceptions
|
* cli: Handle well-known Exceptions
|
||||||
* usb2642i2c: Do not create if device node does not exist
|
* usb2642i2c: Do not create if device node does not exist
|
||||||
* commandline: 'get' must respect hardware signal priority
|
* commandline: 'get' must respect hardware signal priority
|
||||||
- Main changes in 0.2.0:
|
- Main changes in 0.2.0:
|
||||||
* Remove the service/client split and access /dev/sg* directly
|
* Remove the service/client split and access /dev/sg* directly
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-usbsdmux
|
# spec file for package python-usbsdmux
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,25 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%define orig_name usbsdmux
|
||||||
%define skip_python2 1
|
|
||||||
%define orig_name usbsdmux
|
|
||||||
Name: python-usbsdmux
|
Name: python-usbsdmux
|
||||||
Version: 0.2.1
|
Version: 25.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tool to control an usb-sd-mux from the command line
|
Summary: Tool to control an usb-sd-mux from the command line
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: https://shop.linux-automation.com/index.php?route=product/product&product_id=50
|
URL: https://github.com/linux-automation/usbsdmux
|
||||||
Source0: https://github.com/pengutronix/usbsdmux/archive/%{version}.tar.gz#/%{orig_name}-%{version}.tar.gz
|
# Broken with 25.08:
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/u/usbsdmux/usbsdmux-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
Requires: %{orig_name}-udev
|
Requires: %{orig_name}-udev
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -49,22 +51,24 @@ Summary: Udev rules for usbsdmux
|
|||||||
Udev rules for usbsdmux
|
Udev rules for usbsdmux
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{orig_name}-%{version}
|
%autosetup -p1 -n %{orig_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# Fix interpreter
|
# Fix interpreter
|
||||||
for i in %{buildroot}%{python_sitelib}/usbsdmux/{__main__.py,ctypehelper.py,pca9536.py,service.py,usb2642eeprom.py,usb2642i2c.py,usbsdmux.py}; do
|
%{python_expand # Fix all supported python version
|
||||||
|
for i in %{buildroot}%{$python_sitelib}/usbsdmux/*.py; do
|
||||||
sed -i 's#%{_bindir}/env python3#%{_bindir}/python3#' $i
|
sed -i 's#%{_bindir}/env python3#%{_bindir}/python3#' $i
|
||||||
chmod +x $i
|
chmod +x $i
|
||||||
done
|
done
|
||||||
|
}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux
|
%python_clone -a %{buildroot}%{_bindir}/usbsdmux
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-configure
|
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-configure
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-service
|
# Install udev rules (and switch from 'plugdev' group to 'disk' group)
|
||||||
# Install udev rules
|
sed -i 's/plugdev/disk/' contrib/udev/99-usbsdmux.rules
|
||||||
mkdir -p %{buildroot}%{_udevrulesdir}
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||||
cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
||||||
# Run fdupes
|
# Run fdupes
|
||||||
@@ -73,12 +77,10 @@ cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
|||||||
%post
|
%post
|
||||||
%python_install_alternative usbsdmux
|
%python_install_alternative usbsdmux
|
||||||
%python_install_alternative usbsdmux-configure
|
%python_install_alternative usbsdmux-configure
|
||||||
%python_install_alternative usbsdmux-service
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative usbsdmux
|
%python_uninstall_alternative usbsdmux
|
||||||
%python_uninstall_alternative usbsdmux-configure
|
%python_uninstall_alternative usbsdmux-configure
|
||||||
%python_uninstall_alternative usbsdmux-service
|
|
||||||
|
|
||||||
%post -n %{orig_name}-udev
|
%post -n %{orig_name}-udev
|
||||||
%udev_rules_update
|
%udev_rules_update
|
||||||
@@ -88,13 +90,11 @@ cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license COPYING
|
%license LICENSES/LGPL-2.1-or-later.txt
|
||||||
%python_alternative %{_bindir}/usbsdmux
|
%python_alternative %{_bindir}/usbsdmux
|
||||||
%python_alternative %{_bindir}/usbsdmux-configure
|
%python_alternative %{_bindir}/usbsdmux-configure
|
||||||
%python_alternative %{_bindir}/usbsdmux-service
|
%{python_sitelib}/usbsdmux
|
||||||
%dir %{python_sitelib}/usbsdmux
|
%{python_sitelib}/usbsdmux-%{version}.dist-info
|
||||||
%{python_sitelib}/usbsdmux/*
|
|
||||||
%{python_sitelib}/*.egg-info*
|
|
||||||
|
|
||||||
%files -n %{orig_name}-udev
|
%files -n %{orig_name}-udev
|
||||||
%{_udevrulesdir}/*.rules
|
%{_udevrulesdir}/*.rules
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2600816e6b9421c906e892768f22072f4afabf1f7d3fe17e58f7320cc4d5dbf2
|
|
||||||
size 26495
|
|
||||||
3
usbsdmux-25.8.tar.gz
Normal file
3
usbsdmux-25.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fe10c3114be9769529837655c3c35670338b3ad2eed3ceca8bb1661ab0e1f468
|
||||||
|
size 49931
|
||||||
Reference in New Issue
Block a user