mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 11:13:34 +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"
|
||||
version = "0.7.0.dev5"
|
||||
description = "Python API for TP-Link Kasa Smarthome devices"
|
||||
license = "GPL-3.0-or-later"
|
||||
authors = ["python-kasa developers"]
|
||||
repository = "https://github.com/python-kasa/python-kasa"
|
||||
description = "Python API for TP-Link Kasa and Tapo devices"
|
||||
license = {text = "GPL-3.0-or-later"}
|
||||
authors = [ { name = "python-kasa developers" }]
|
||||
#repository = "https://github.com/python-kasa/python-kasa"
|
||||
readme = "README.md"
|
||||
packages = [
|
||||
{ include = "kasa" }
|
||||
]
|
||||
include = [
|
||||
{ path= "CHANGELOG.md", format = "sdist" }
|
||||
requires-python = ">=3.8.0"
|
||||
dependencies = [
|
||||
"anyio",
|
||||
"asyncclick>=8",
|
||||
"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"
|
||||
"Documentation" = "https://python-kasa.readthedocs.io"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
[project.scripts]
|
||||
kasa = "kasa.cli:cli"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
anyio = "*" # see https://github.com/python-trio/asyncclick/issues/18
|
||||
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"]
|
||||
[project.optional-dependencies]
|
||||
docs = ["sphinx==5.*", "sphinx_rtd_theme==2.*", "sphinxcontrib-programoutput>0", "myst-parser", "docutils>=0.17"]
|
||||
speedups = ["orjson>=3.9.1", "kasa-crypt>=0.2.0"]
|
||||
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]
|
||||
source = ["kasa"]
|
||||
branch = true
|
||||
@ -99,8 +84,8 @@ ignore = ["D001"]
|
||||
ignore-path-errors = ["docs/source/index.rst;D000"]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
requires = ["setuptools==69.2.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py38"
|
||||
|
Loading…
Reference in New Issue
Block a user