Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 33 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
name: CI
name: CI Test_LCD

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- uses: actions/setup-python@v4
with:
python-version: 3.10
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -

- name: Add poetry to PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Update lock file
run: |
poetry update --lock

- name: Instala dependencias
run: |
poetry install

- name: Update dependencies
run: |
poetry update

- name: Ejecuta pruebas
run: |
poetry run pytest
poetry run test
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Publish
#####
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
You can install the library using pip:

```bash
pip install rpilcd
pip install LCDRPi

poetry install
```

The library depends on `smbus` for I2C communication and `RPi.GPIO` for pin control. These will be installed automatically.
Expand Down
2 changes: 1 addition & 1 deletion example/I2c_Rasp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from RPiLCD import I2C
from LCDRPi import I2C
from time import sleep

lcd = I2C(address=0x27, width=16, rows=2)
Expand Down
776 changes: 771 additions & 5 deletions poetry.lock

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rpilcd"
version = "0.1.0"
name = "LCDRP"
version = "1.0.0"
description = "Esta librería es para el manejo de pantallas LCD en la Raspberry Pi"
authors = ["Esteban, herrerazanecheverry@gmail.com"]
license = "LGPL"
Expand All @@ -9,19 +9,27 @@ packages = [
{ include = "RPiLCD", from = "src" }
]
keywords = ["raspberrypi", "lcd", "i2c", "display"]
classifiers = [
"Programming Language :: Python :: 3"
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.poetry.dependencies]
python = ">=3.10"
python = ">=3.9,<3.11"
smbus = ">=1.1.post2,<2.0"
rpi-gpio = ">=0.7.1,<0.8.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
pytest-cov = "^4.0"
setuptools = "<80.9.0"
twine = "^6.1.0"

[tool.poetry.scripts]
test = "pytest:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=1.0.0", "setuptools >= 77.0.3"]
build-backend = "poetry.core.masonry.api"
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[metadata]
name = RPiLCD
version = 0.1.0
name = LCDRP
version = 1.0.0
author = Esteban
author_email = herrerazanecheverry@gmail.com
description = Librería para controlar LCD en Raspberry Pi
long_description = file: README.rst
long_description_content_type = text/x-rst
author = Esteban
author_email = herrerazanecheverry@gmail.com
license = LGPLv3
keywords = raspberry, raspberry pi, lcd, liquid crystal, rpi, i2c, displayScreen
url = https://github.com/Exploit34/RPiLCD

[options]
packages = find:
python_requires = >=3.10
python_requires = >=3.9,<3.12
install_requires =
smbus2
RPi.GPIO
smbus
rpi-gpio
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
readme = open("README.rst").read()

setup (
name="RPiLCD",
version="0.1.0",
name="LCDRP",
version="1.0.0",
author="Esteban",
author_email="herrerazanecheverry@gmail.com",
description="Librería para controlar LCD en Raspberry Pi",
long_description=readme,
long_description_content_type="text/x-rst",
author="Esteban",
author_email="herrerazanecheverry@gmail.com",
license="LGPLv3",
url = "https://github.com/Exploit34/RPiLCD",
url="https://github.com/Exploit34/RPiLCD",
keywords='raspberry, raspberry pi, lcd, liquid crystal, rpi, i2c, displayScreen',
packages=["RPiLCD"]
)
Loading