3 Commits

Author SHA1 Message Date
112c117da9 Expand supported python versions 2024-05-12 08:59:30 +02:00
f28cbb920d Move to 1.0.0 2024-05-04 11:12:13 +02:00
ffb476c587 Moved to poetry, ready to publish 2024-05-04 11:11:41 +02:00
6 changed files with 10 additions and 38 deletions

View File

@ -6,12 +6,11 @@ Pulses is a python module to drive LEDs on RPi using PWM (Pulse Width Modulation
1. Clone the repo
`git clone https://web.mistrali.pw/gitea/musicalbox/pulses.git`
`https://gitea.mistrali.pw/musicalbox/pulses.git`
2. `apt-get install python3-venv`
3. `pip install requirements-dev.txt`
4. `./build.sh`
5. `pip install dist/pulses-0.90-py3-none-any.whl`
4. `poetry build`
5. `pip install dist/pulses-<version>-py3-none-any.whl`
### GPIO and PWM

View File

@ -1,9 +0,0 @@
#!/bin/sh
if [ "$1" = "clean" ]; then
rm -rf build
rm -rf dist
rm -rf *.egg-info
fi
python -m build .

View File

@ -77,7 +77,7 @@ class ledPulse(threading.Thread):
pass
if self.supported:
import RPi.GPIO as GPIO
import RPi.GPIO as GPIO # type: ignore
GPIO.setwarnings(False) # disable warnings
GPIO.setmode(GPIO.BCM) # set pin numbering system
GPIO.setup(self.gpio, GPIO.OUT) # set GPIO for output

View File

@ -1,14 +1,17 @@
[tool.poetry]
name = "pulses"
version = "0.90"
version = "1.0.1"
description = "Pulse LEDs on RPi"
authors = ["Andrea Mistrali <andrea@mistrali.pw>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
python = ">=3.9,<4.0"
docopt = "^0.6.2"
[tool.poetry.scripts]
pulses = "pulses.cli:main"
[build-system]
requires = ["poetry-core"]

View File

@ -1,2 +1,2 @@
build
poetry
ipython

View File

@ -1,21 +0,0 @@
[metadata]
name = pulses
version = 0.90
author = Andrea Mistrali
author_email = akelge@gmail.com
platform = linux
description = RPI led(s) and display brightness
long_description = file: README.md
keywords = graylog, py3
license = BSD 3-Clause License
[options]
packages = pulses
python_requires = >=3
include_package_data = True
install_requires =
docopt
[options.entry_points]
console_scripts =
pulses = pulses.cli:main