From f5ec57c3576f237b3aff5c1eb43cce23a7379611 Mon Sep 17 00:00:00 2001 From: Karl-Petter Lindegaard Date: Thu, 10 Sep 2026 19:30:16 +0200 Subject: [PATCH 1/2] Replace nonfunctioning pypi download badge --- README.md | 2 +- doc/index.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9ba8c6..6fa91ec 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A drop-in replacement for smbus-cffi/smbus-python in pure Python ![Python Versions](https://img.shields.io/pypi/pyversions/smbus2.svg) [![PyPi Version](https://img.shields.io/pypi/v/smbus2.svg)](https://pypi.org/project/smbus2/) -[![PyPI - Downloads](https://img.shields.io/pypi/dm/smbus2)](https://pypi.org/project/smbus2/) +[![PyPI - Downloads](https://api.pepy.tech/badge/smbus2/month)](https://pypi.org/project/smbus2/) # Introduction diff --git a/doc/index.md b/doc/index.md index 2238dd9..4daafb6 100644 --- a/doc/index.md +++ b/doc/index.md @@ -6,6 +6,7 @@ [![](https://readthedocs.org/projects/smbus2/badge/?version=latest)](http://smbus2.readthedocs.io/en/latest/?badge=latest) [![](https://img.shields.io/pypi/pyversions/smbus2.svg)](https://pypi.python.org/pypi/smbus2) [![](https://img.shields.io/pypi/v/smbus2.svg)](https://pypi.python.org/pypi/smbus2) +[![](https://api.pepy.tech/badge/smbus2/month)](https://pypi.org/project/smbus2/) **smbus2** is a pure-Python, drop-in replacement for the `python-smbus` / `python3-smbus` Linux SMBus bindings. It wraps the Linux kernel's I2C/SMBus `ioctl` From 231a824fc02b957ae5d95e25d7edf9f4f2a34d32 Mon Sep 17 00:00:00 2001 From: Karl-Petter Lindegaard Date: Thu, 10 Sep 2026 19:32:13 +0200 Subject: [PATCH 2/2] Silence sonar warnings for docs build --- .github/workflows/python-build-test.yml | 2 +- doc/requirements.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-build-test.yml b/.github/workflows/python-build-test.yml index 488cd8d..fbd59f2 100644 --- a/.github/workflows/python-build-test.yml +++ b/.github/workflows/python-build-test.yml @@ -67,7 +67,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r doc/requirements.txt + python -m pip install --only-binary=:all: -r doc/requirements.txt - name: Build docs with Sphinx run: | cd doc diff --git a/doc/requirements.txt b/doc/requirements.txt index d10ba6b..d82325e 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,3 +1,3 @@ -sphinx>=7 -sphinx-rtd-theme -myst-parser +sphinx==9.1.0 +sphinx-rtd-theme==3.1.0 +myst-parser==5.1.0