From ffb476c5871925f89cb40448c8dd7c2cbd0946f1 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Sat, 4 May 2024 11:11:41 +0200 Subject: [PATCH] Moved to poetry, ready to publish --- README.md | 7 +++---- build.sh | 9 --------- pyproject.toml | 3 +++ setup.cfg | 21 --------------------- 4 files changed, 6 insertions(+), 34 deletions(-) delete mode 100755 build.sh delete mode 100644 setup.cfg diff --git a/README.md b/README.md index b1c1c6d..f30cfde 100644 --- a/README.md +++ b/README.md @@ -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--py3-none-any.whl` ### GPIO and PWM diff --git a/build.sh b/build.sh deleted file mode 100755 index ad90ac1..0000000 --- a/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -if [ "$1" = "clean" ]; then - rm -rf build - rm -rf dist - rm -rf *.egg-info -fi - -python -m build . diff --git a/pyproject.toml b/pyproject.toml index 51fbd0e..de1d3e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,9 @@ readme = "README.md" python = "^3.11" docopt = "^0.6.2" +[tool.poetry.scripts] +pulses = "pulses.cli:main" + [build-system] requires = ["poetry-core"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 4bb0890..0000000 --- a/setup.cfg +++ /dev/null @@ -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