Skip to content

Commit

Permalink
Merge pull request #6 from pimoroni/patch-release-prep
Browse files Browse the repository at this point in the history
Prep for release.
  • Loading branch information
Gadgetoid committed Apr 11, 2024
2 parents 6400480 + ccdce55 commit 293d903
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/as7343-python/test.yml?branch=main)](https://github.com/pimoroni/as7343-python/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/as7343-python/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/as7343-python?branch=main)
[![PyPi Package](https://img.shields.io/pypi/v/as7343.svg)](https://pypi.python.org/pypi/as7343)
[![Python Versions](https://img.shields.io/pypi/pyversions/as7343.svg)](https://pypi.python.org/pypi/as7343)
[![PyPi Package](https://img.shields.io/pypi/v/pimoroni-as7343.svg)](https://pypi.python.org/pypi/pimoroni-as7343)
[![Python Versions](https://img.shields.io/pypi/pyversions/pimoroni-as7343.svg)](https://pypi.python.org/pypi/pimoroni-as7343)

Suitable for detecting the properties of ambient light, light passing through a liquid or light reflected from an object the AS7343 spectral sensor has 6 spectral channels at 450 (violet), 500 (blue), 550 (green), 570 (yellow), 600 (orange) and 650nm (red).

# Installing

Stable library from PyPi:

* Just run `python3 -m pip install as7343`
* Just run `python3 -m pip install pimoroni-as7343`

Latest/development library from GitHub:

Expand Down
8 changes: 2 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
LIBRARY_NAME=$(grep -m 1 name pyproject.toml | awk -F" = " '{print substr($2,2,length($2)-2)}')
MODULE_NAME="as7343"
CONFIG_FILE=config.txt
CONFIG_DIR="/boot/firmware"
DATESTAMP=$(date "+%Y-%m-%d-%H-%M-%S")
Expand Down Expand Up @@ -58,11 +59,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 @@ -345,7 +341,7 @@ if confirm "Would you like to generate documentation?"; then
inform "Installing pdoc. Please wait..."
pip_pkg_install pdoc
inform "Generating documentation.\n"
if $PYTHON -m pdoc "$LIBRARY_NAME" -o "$RESOURCES_DIR/docs" > /dev/null; then
if $PYTHON -m pdoc "$MODULE_NAME" -o "$RESOURCES_DIR/docs" > /dev/null; then
inform "Documentation saved to $RESOURCES_DIR/docs"
success "Done!"
else
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[project]
name = "as7343"
name = "pimoroni-as7343"
dynamic = ["version", "readme"]
description = "python library for the AS7343 spectral sensor"
license = {file = "LICENSE"}
Expand Down Expand Up @@ -109,7 +109,7 @@ ignore = [
'requirements-dev.txt'
]

[pimoroni]
[tool.pimoroni]
apt_packages = []
configtxt = []
commands = []

0 comments on commit 293d903

Please sign in to comment.