Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to gpiod for Bookworm/Pi 5 and beyond #182

Merged
merged 27 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
11fb4fe
Repackage to hatch/pyproject.toml.
Gadgetoid Nov 20, 2023
de42fb4
QA: Apply isort suggestions.
Gadgetoid Nov 20, 2023
faa14c8
QA: Apply ruff suggestions.
Gadgetoid Nov 20, 2023
624ca6e
QA: Apply codespell suggestions.
Gadgetoid Nov 20, 2023
0865247
Packaging: Add pillow as an example dependency.
Gadgetoid Nov 20, 2023
fe70476
Add resolution parameter to InkyMockImpression.
corranwebster Nov 20, 2023
b8635c0
QA: Apply cherry-picked Black suggestions.
Gadgetoid Nov 20, 2023
532e306
QA: Examples: Apply cherry-picked Black suggestions.
Gadgetoid Nov 20, 2023
88b8ea8
Begin port to gpiod.
Gadgetoid Nov 21, 2023
4feb1e4
Add auto dither to what.
Gadgetoid Nov 21, 2023
e5ab9ee
Sync with boilerplate.
Gadgetoid Jan 11, 2024
0fb414a
Inky 7.3: port to gpiod.
Gadgetoid Feb 6, 2024
b14439a
Packaging: Add dependencies and setup commands.
Gadgetoid Feb 6, 2024
f1eebde
QA: Fix tests.
Gadgetoid Feb 6, 2024
70d8d22
All: Always use software CS.
Gadgetoid Feb 6, 2024
cd66f78
Inky: Fix SPI CS, normalise image conversion.
Gadgetoid Feb 7, 2024
841bffa
Packaging: Add pillow as a dependency.
Gadgetoid Feb 7, 2024
a6f270a
QA: Include gpiod/gpiodevice mocks in auto tests.
Gadgetoid Feb 7, 2024
ffcc67a
All: Revert to using line numbers.
Gadgetoid Feb 7, 2024
caac90e
Sync with boilerplate.
Gadgetoid Jun 27, 2024
99ac046
Packaging: add example requirements file.
Gadgetoid Jun 27, 2024
47d6aaf
CI: Test install.
Gadgetoid Jun 27, 2024
bd6bf4c
CI: Sync with boilerplate for cleaned up names.
Gadgetoid Jun 27, 2024
113285e
Update README.md
helgibbons Jun 27, 2024
87b48d0
Add tests for set_image.
Gadgetoid Apr 10, 2024
0135ce3
Inky: remove unecessary canvas paste.
Gadgetoid Apr 10, 2024
85e868b
CI: Fix duplicate ENV in build.yml.
Gadgetoid Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sync with boilerplate.
  • Loading branch information
Gadgetoid committed Jun 27, 2024
commit caac90e1e589c0d04a8dc9a62a07aa8c66619b61
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ endif
@echo "deploy: build and upload to PyPi"
@echo "tag: tag the repository with the current version\n"

version:
@hatch version

install:
./install.sh --unstable

Expand All @@ -47,7 +50,7 @@ pytest:
nopost:
@bash check.sh --nopost

tag:
tag: version
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"

build: check
Expand Down
8 changes: 2 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ find_config() {
if [ ! -f "$CONFIG_DIR/$CONFIG_FILE" ]; then
fatal "Could not find $CONFIG_FILE!"
fi
else
if [ -f "/boot/$CONFIG_FILE" ] && [ ! -L "/boot/$CONFIG_FILE" ]; then
warning "Oops! It looks like /boot/$CONFIG_FILE is not a link to $CONFIG_DIR/$CONFIG_FILE"
warning "You might want to fix this!"
fi
fi
inform "Using $CONFIG_FILE in $CONFIG_DIR"
}
Expand Down Expand Up @@ -156,7 +151,8 @@ function apt_pkg_install {
sudo apt update
APT_HAS_UPDATED=true
fi
sudo apt install -y "$PACKAGES"
# shellcheck disable=SC2086
sudo apt install -y $PACKAGES
check_for_error
if [ -f "$UNINSTALLER" ]; then
echo "apt uninstall -y $PACKAGES" >> "$UNINSTALLER"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ commands =
python -m build --no-isolation
python -m twine check dist/*
isort --check .
ruff .
ruff check .
codespell .
deps =
check-manifest
Expand Down
Loading