Skip to content

Commit

Permalink
moved to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuSCHNITZEL committed Oct 28, 2024
1 parent dc17bee commit e7c99a7
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 15 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ echo "Installing dependencies..."
echo "=========================="
apt update && apt -y install python3 python3-pip git

pip3 install setuptools
python3 setup.py install --force
python3 -m pip install .

cp ./assets/rpi_screenbrightness_mqtt.conf /etc/rpi_screenbrightness_mqtt.conf

Expand Down
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "rpi_screenbrightness_mqtt"
version = "0.6.0"
authors = [
{ name="Tobias Perschon", email="[email protected]" },
]
description = "A simple service that conntects to an mqtt broker so you can control the backlight of an rpi (touch)screen via mqtt (and eg. homeassistant)"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
dependencies = [
"rpi-backlight==2.6.0",
"paho-mqtt==2.1.0"
]

[project.urls]
Homepage = "https://github.com/tofuSCHNITZEL/rpi-screenbrightness-mqtt"
Issues = "https://github.com/tofuSCHNITZEL/rpi-screenbrightness-mqtt/issues"

[tool.pylint.main]
ignore-patterns = ["^\\.#"]

py-version = "3.11"

[tool.pylint.basic]
no-docstring-rgx = "^_"

[tool.pylint."messages control"]
disable = ["too-many-arguments", "too-many-instance-attributes", "raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead", "use-implicit-booleaness-not-comparison-to-string", "use-implicit-booleaness-not-comparison-to-zero"]

[tool.pylint.variables]
ignored-argument-names = "_.*|^ignored_|^unused_"

[tool.setuptools]
packages = ["rpi_screenbrightness_mqtt"]
13 changes: 0 additions & 13 deletions setup.py

This file was deleted.

0 comments on commit e7c99a7

Please sign in to comment.