mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-08 22:07:06 +00:00
Migrate from poetry to uv
This commit is contained in:
parent
6b46773609
commit
87b24d2e47
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include CHANGELOG.md
|
@ -1,70 +1,55 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
name = "python-kasa"
|
name = "python-kasa"
|
||||||
version = "0.7.0.dev5"
|
version = "0.7.0.dev5"
|
||||||
description = "Python API for TP-Link Kasa Smarthome devices"
|
description = "Python API for TP-Link Kasa and Tapo devices"
|
||||||
license = "GPL-3.0-or-later"
|
license = {text = "GPL-3.0-or-later"}
|
||||||
authors = ["python-kasa developers"]
|
authors = [ { name = "python-kasa developers" }]
|
||||||
repository = "https://github.com/python-kasa/python-kasa"
|
#repository = "https://github.com/python-kasa/python-kasa"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
packages = [
|
requires-python = ">=3.8.0"
|
||||||
{ include = "kasa" }
|
dependencies = [
|
||||||
]
|
"anyio",
|
||||||
include = [
|
"asyncclick>=8",
|
||||||
{ path= "CHANGELOG.md", format = "sdist" }
|
"pydantic>=1.10.15",
|
||||||
|
"cryptography>=1.9",
|
||||||
|
"async-timeout>=3.0.0",
|
||||||
|
"aiohttp>=3"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.urls]
|
[tool.setuptools.packages.find]
|
||||||
|
include = ["kasa*"]
|
||||||
|
exclude = ["kasa.tests*"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
"Bug Tracker" = "https://github.com/python-kasa/python-kasa/issues"
|
"Bug Tracker" = "https://github.com/python-kasa/python-kasa/issues"
|
||||||
"Documentation" = "https://python-kasa.readthedocs.io"
|
"Documentation" = "https://python-kasa.readthedocs.io"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[project.scripts]
|
||||||
kasa = "kasa.cli:cli"
|
kasa = "kasa.cli:cli"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[project.optional-dependencies]
|
||||||
python = "^3.8"
|
docs = ["sphinx==5.*", "sphinx_rtd_theme==2.*", "sphinxcontrib-programoutput>0", "myst-parser", "docutils>=0.17"]
|
||||||
anyio = "*" # see https://github.com/python-trio/asyncclick/issues/18
|
speedups = ["orjson>=3.9.1", "kasa-crypt>=0.2.0"]
|
||||||
asyncclick = ">=8"
|
|
||||||
pydantic = ">=1.10.15"
|
|
||||||
cryptography = ">=1.9"
|
|
||||||
async-timeout = ">=3.0.0"
|
|
||||||
aiohttp = ">=3"
|
|
||||||
|
|
||||||
# speed ups
|
|
||||||
orjson = { "version" = ">=3.9.1", optional = true }
|
|
||||||
kasa-crypt = { "version" = ">=0.2.0", optional = true }
|
|
||||||
|
|
||||||
# required only for docs
|
|
||||||
sphinx = { version = "^5", optional = true }
|
|
||||||
sphinx_rtd_theme = { version = "^2", optional = true }
|
|
||||||
sphinxcontrib-programoutput = { version = "^0", optional = true }
|
|
||||||
myst-parser = { version = "*", optional = true }
|
|
||||||
docutils = { version = ">=0.17", optional = true }
|
|
||||||
|
|
||||||
# enhanced cli support
|
|
||||||
ptpython = { version = "*", optional = true }
|
|
||||||
rich = { version = "*", optional = true }
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
pytest = "*"
|
|
||||||
pytest-cov = "*"
|
|
||||||
pytest-asyncio = "*"
|
|
||||||
pytest-sugar = "*"
|
|
||||||
pre-commit = "*"
|
|
||||||
voluptuous = "*"
|
|
||||||
toml = "*"
|
|
||||||
tox = "*"
|
|
||||||
pytest-mock = "*"
|
|
||||||
codecov = "*"
|
|
||||||
xdoctest = "*"
|
|
||||||
coverage = {version = "*", extras = ["toml"]}
|
|
||||||
pytest-timeout = "^2"
|
|
||||||
pytest-freezer = "^0.4"
|
|
||||||
|
|
||||||
[tool.poetry.extras]
|
|
||||||
docs = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-programoutput", "myst-parser", "docutils"]
|
|
||||||
speedups = ["orjson", "kasa-crypt"]
|
|
||||||
shell = ["ptpython", "rich"]
|
shell = ["ptpython", "rich"]
|
||||||
|
|
||||||
|
[tool.uv]
|
||||||
|
dev-dependencies = [
|
||||||
|
"pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
"pytest-asyncio",
|
||||||
|
"pytest-sugar",
|
||||||
|
"pre-commit",
|
||||||
|
"voluptuous",
|
||||||
|
"toml",
|
||||||
|
"tox",
|
||||||
|
"pytest-mock",
|
||||||
|
"codecov",
|
||||||
|
"xdoctest",
|
||||||
|
"coverage",
|
||||||
|
"pytest-timeout>=2",
|
||||||
|
"pytest-freezer>=0.4"
|
||||||
|
]
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["kasa"]
|
source = ["kasa"]
|
||||||
branch = true
|
branch = true
|
||||||
@ -99,8 +84,8 @@ ignore = ["D001"]
|
|||||||
ignore-path-errors = ["docs/source/index.rst;D000"]
|
ignore-path-errors = ["docs/source/index.rst;D000"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["setuptools==69.2.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
target-version = "py38"
|
target-version = "py38"
|
||||||
|
Loading…
Reference in New Issue
Block a user