Skip to content

Commit

Permalink
First iteration of Poetry packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusCZ committed Dec 18, 2023
1 parent 0a31acc commit 1071299
Show file tree
Hide file tree
Showing 10 changed files with 3,018 additions and 72 deletions.
15 changes: 15 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
max-line-length = 79
extend-ignore = E203, W503
ignore =
E501,
F601,
F811,
F841
exclude =
.tox
build
dist
.eggs
docs/conf.py
node_modules
7 changes: 7 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# Required
version: 2

python:
install:
- method: pip
path: .
extra_requirements:
- docs

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Just a test.
2,893 changes: 2,893 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

99 changes: 83 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,86 @@
[tool.black]
line-length = 79
target-version = ["py37", "py38"]
[tool.poetry]
name = "ledfx"
version = "2.0.84"
description = "A network based light effect controller"
authors = ["Your Name <you@example.com>"]
license = "MIT License"
readme = "README.md"
packages = [{include = "ledfx"}]

[tool.isort]
profile = "black"
line_length = 79
# The following are the default values applied when profile="black"
# multi_line_output = 3
# include_trailing_comma = True
# force_grid_wrap = 0
# use_parentheses = True
# ensure_newline_before_comments = True
[tool.poetry.scripts]
ledfx = 'ledfx.__main__:main'

[tool.poetry.dependencies]
numpy = "~=1.23"
wheel = ">=0.36.2"
python = ">=3.8.1,<3.11"
sphinx = "<7.0.0"
sphinxcontrib-websupport = "1.2.4"
sphinxcontrib-httpdomain = "1.8.1"
sphinx-autodoc-typehints = "1.23.0"
sphinx-autodoc-annotation = "1.0-1"
sphinx-autobuild = "^2020.9.1"
sphinx_rtd_theme = "1.2.2"
sphinx-toolbox = "3.4.0"
rstcheck = "6.1.2"
aiohttp = ">=3.8.3,<3.9.0"
aiohttp-cors = ">=0.7.0"
aubio = ">=0.4.9"
cython = ">=0.29.21"
certifi = ">=2020.12.5"
multidict = ">=5.0.0,<5.1.0"
openrgb-python = ">=0.2.10,<0.3.0"
paho-mqtt = ">1.5.1"
psutil = ">=5.8.0"
pyserial = ">=3.5"
pystray = ">=0.17"
python-rtmidi = ">=1.5.6,<1.6.0"
requests = ">=2.28.2,<2.29.0"
sacn = ">=1.6.3,<1.7.0"
sentry-sdk = "1.14.0"
sounddevice = ">=0.4.2,<0.5.0"
samplerate = ">=0.1.0"
icmplib = ">=3.0.3,<3.1.0"
voluptuous = ">=0.12.1,<0.13.0"
zeroconf = ">=0.39.4,<0.40.0"
pillow = ">=8.4.0"
flux-led = ">=0.28.35"
python-osc = ">=1.8.3,<1.9.0"
pywin32 = {version = ">=302", platform = "win32"}
uvloop = {version = ">=0.16.0", markers = "sys_platform != 'win32'"}
rpi-ws281x = {version = ">=4.3.0", platform = "linux"}
python-mbedtls = {version = "~=2.7.1", markers = "(sys_platform == 'linux' and platform_machine != 'aarch64' and platform_machine != 'armv7l') or sys_platform == 'win32' or sys_platform == 'darwin'"}


[tool.poetry.group.dev.dependencies]
flake8 = ">=6.0.0,<6.1.0"
black = ">=23.3.0,<23.4.0"
isort = ">=5.12.0,<5.13.0"
pre-commit = ">=3.3.0,<3.4.0"
cython = ">=0.29.21,<0.30.0"

[tool.pytest.ini_options]
addopts = "tests"
testpaths = "tests"
norecursedirs = [
"dist",
"build",
".tox",
]

[tool.poetry.extras]
docs = [
"sphinx",
"sphinxcontrib-websupport",
"sphinxcontrib-httpdomain",
"sphinx-autodoc-typehints",
"sphinx-autodoc-annotation",
"sphinx-autobuild",
"sphinx-rtd-theme",
"sphinx-toolbox",
"rstcheck",
]

[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=49.2.1", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
19 changes: 19 additions & 0 deletions pyproject_backup.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tool.black]
line-length = 79
target-version = ["py37", "py38"]

[tool.isort]
profile = "black"
line_length = 79
# The following are the default values applied when profile="black"
# multi_line_output = 3
# include_trailing_comma = True
# force_grid_wrap = 0
# use_parentheses = True
# ensure_newline_before_comments = True

[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=49.2.1", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
File renamed without changes.
File renamed without changes.
56 changes: 0 additions & 56 deletions setup.cfg

This file was deleted.

File renamed without changes.

0 comments on commit 1071299

Please sign in to comment.