Skip to content

Commit e604c86

Browse files
update dev dependencies and changelog for 0.23.0
1 parent d8a4f6e commit e604c86

File tree

10 files changed

+55
-41
lines changed

10 files changed

+55
-41
lines changed

.github/workflows/python-lint-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
# Note we don't test version 3.7 as many dev deps require >= 3.8
12-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
11+
# Note we don't test versions < 3.9 as some dev deps require >= 3.9
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313

1414
steps:
1515
- uses: actions/checkout@v3

CHANGES.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
pylibftdi changes
22
=================
33

4+
0.23.0
5+
------
6+
* Added: #12 - pid & vid selection when opening a new `Device` - thanks @maraxen!
7+
* Minor API change:
8+
* removed use of kwargs for Device() and Driver() arguments, replacing with keyword-only
9+
arguments. Tthis is unlikely to cause issues in most cases, and protects against typos
10+
or incorrect arguments.
11+
* one valid case requiring change is passing in a `libftdi_search` argument; if this is
12+
required, create a driver instance separately (with this parameter) and pass it to
13+
`Device()` using the new `driver` keyword-only parameter.
14+
* Various bumps and fixes to linting dependencies
15+
416
0.22.0
517
------
618
* Fix: #7 - support for Python3.12

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Defines an ubuntu-based dev container for development and testing of pylibftdi
22

33
# As well as providing poetry etc, this pre-installs the required libftdi1-2
4-
# package, providing libftdi 1.5 (as of Ubuntu 22.04) and all its dependencies.
4+
# package, providing libftdi 1.5 (as of Ubuntu 24.04) and all its dependencies.
55

6-
FROM ubuntu:22.04
6+
FROM ubuntu:24.04
77
WORKDIR /app
88
RUN \
99
apt-get update; \
10-
apt-get install -y libftdi1-2 python3-minimal python3-pip python3-poetry vim; \
11-
ln -s /usr/bin/python3 /usr/bin/python; # Workaround for https://github.com/python-poetry/poetry/issues/6371
10+
apt-get install -y libftdi1-2 python3-minimal python3-pip python3-poetry vim;
1211

1312
# Use in-project venvs so subsequent `poetry install` operations are quick
1413
ENV POETRY_VIRTUALENVS_IN_PROJECT=true

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010-2023 Ben Bass
1+
Copyright (c) 2010-2024 Ben Bass
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test:
2020

2121
.PHONY: lint
2222
lint:
23-
docker run --rm -t -v $$PWD:/app -w /app pylibftdi-dev:latest bash -c 'poetry install && (poetry run black --check .; poetry run ruff src tests; poetry run mypy src)'
23+
docker run --rm -t -v $$PWD:/app -w /app pylibftdi-dev:latest bash -c 'poetry install && (poetry run black --check .; poetry run ruff check src tests; poetry run mypy src)'
2424

2525
.PHONY: shell
2626
shell:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Plans
9191
License
9292
-------
9393

94-
Copyright (c) 2010-2023 Ben Bass <benbass@codedstructure.net>
94+
Copyright (c) 2010-2024 Ben Bass <benbass@codedstructure.net>
9595

9696
pylibftdi is released under the MIT licence; see the file "LICENSE.txt"
9797
for information.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def setup(app):
5050
# built documents.
5151
#
5252
# The short X.Y version.
53-
version = "0.22.0"
53+
version = "0.23.0"
5454
# The full version, including alpha/beta/rc tags.
55-
release = "0.22.0"
55+
release = "0.23.0"
5656

5757
# List of patterns, relative to source directory, that match files and
5858
# directories to ignore when looking for source files.

poetry.lock

Lines changed: 23 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pylibftdi"
3-
version="0.22.0"
3+
version="0.23.0"
44
description = "Pythonic interface to FTDI devices using libftdi."
55
license = "MIT"
66
authors = [
@@ -30,6 +30,7 @@ classifiers = [
3030
"Programming Language :: Python :: 3.10",
3131
"Programming Language :: Python :: 3.11",
3232
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
3334
"Topic :: Scientific/Engineering",
3435
"Topic :: Software Development :: Embedded Systems",
3536
"Topic :: System :: Hardware",
@@ -43,14 +44,14 @@ build-backend = "poetry.core.masonry.api"
4344
python = ">=3.7.0"
4445

4546
[tool.poetry.dev-dependencies]
46-
ruff = "^0.3.5"
47-
pytest = { version="^8.1.1", python=">=3.8" }
48-
mypy = { version="^1.9.0", python=">=3.8" }
49-
black = { version="^24.3.0", python=">=3.8" }
47+
ruff = "^0.7.3"
48+
pytest = { version="^8.3.3", python=">=3.8" }
49+
mypy = { version="^1.13.0", python=">=3.8" }
50+
black = { version="^24.10.0", python=">=3.9" }
5051

51-
[tool.ruff]
52-
lint.select = ["E", "W", "F", "B", "I", "UP", "PL"]
53-
lint.ignore = [
52+
[tool.ruff.lint]
53+
select = ["E", "W", "F", "B", "I", "UP", "PL"]
54+
ignore = [
5455
"PLR2004", # Magic value used in comparison
5556
"PLR0913", # Too many arguments to function call
5657
]

src/pylibftdi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
rather than a problem with the libftdi library.
1414
"""
1515

16-
__VERSION__ = "0.22.0"
16+
__VERSION__ = "0.23.0"
1717
__AUTHOR__ = "Ben Bass"
1818

1919

0 commit comments

Comments
 (0)