Skip to content

Commit

Permalink
Prefix package name.
Browse files Browse the repository at this point in the history
For some reason the package as7343 cannot be uploaded to pypi,
I attempted to resolve this with pypi/support#3556

Stick a pimoroni- prefix in front of the package name to "fix" this.
  • Loading branch information
Gadgetoid committed Apr 11, 2024
1 parent 7418df9 commit ccdce55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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
3 changes: 2 additions & 1 deletion 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 @@ -340,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
2 changes: 1 addition & 1 deletion 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

0 comments on commit ccdce55

Please sign in to comment.