remake pyproject with poetry 2

This commit is contained in:
2025-01-15 12:30:27 +00:00
parent a6f52be9ac
commit cf7301712c
2 changed files with 98 additions and 27 deletions

View File

@@ -1,21 +1,23 @@
[tool.poetry]
[project]
name = "voicemeeter-api"
version = "2.6.0"
version = "2.6.1"
description = "A Python wrapper for the Voiceemeter API"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"
authors = [
{name = "Onyx and Iris",email = "code@onyxandiris.online"}
]
license = {text = "MIT"}
readme = "README.md"
repository = "https://github.com/onyx-and-iris/voicemeeter-api-python"
requires-python = "<4.0,>=3.10"
dependencies = [
"tomli (>=2.0.1,<3.0) ; python_version < '3.11'",
]
[tool.poetry]
packages = [{ include = "voicemeeterlib" }]
[tool.poetry.requires-plugins]
poethepoet = "^0.32.1"
[tool.poetry.dependencies]
python = "^3.10"
tomli = { version = "^2.0.1", python = "<3.11" }
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
pytest-randomly = "^3.12.0"
@@ -24,7 +26,7 @@ tox = "^4.23.2"
virtualenv-pyenv = "^0.5.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
@@ -51,6 +53,22 @@ allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest tests/
[testenv:dsl]
setenv = VIRTUALENV_DISCOVERY=pyenv
allowlist_externals = poetry
deps = pyparsing
commands =
poetry install -v --without dev
poetry run python examples/dsl/
[testenv:obs]
setenv = VIRTUALENV_DISCOVERY=pyenv
allowlist_externals = poetry
deps = obsws-python
commands =
poetry install -v --without dev
poetry run python examples/obs/
"""
[tool.ruff]
@@ -101,8 +119,8 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Unlike Black, use single quotes for strings.
quote-style = "single"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"