-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
111 lines (103 loc) · 3.12 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[tool.poetry]
name = "vplan"
version = "0.0.0" # published version is managed using Git tags (see below)
description = "Vacation plan manager service for SmartThings"
authors = ["Kenneth J. Pronovici <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/pronovic/vplan"
repository = "https://github.com/pronovic/vplan"
include = [
{ path = 'Changelog', format = 'sdist' },
{ path = 'NOTICE', format = 'sdist' },
{ path = 'LICENSE', format = 'sdist' },
{ path = 'README.md', format = 'sdist' },
{ path = 'tests', format = 'sdist' },
]
packages = [ { include = "vplan", from = "src" } ]
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Unix",
"Environment :: Console",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Home Automation",
]
# Published version is managed using Git tags
# We get either the tag (like "0.24.1") or a snapshot-type version (like "0.24.1+3.e8319c4")
# If the plugin is not installed, then the version is always "0.0.0", taken from above
[tool.poetry-dynamic-versioning]
enable = true
pattern = '^[vV](?P<base>\d+\.\d+\.\d+)' # this extracts the version from our vX.Y.Z tag format
format-jinja = "{% if distance == 0 and not dirty %}{{ base }}{% else %}{{ base }}+{{ distance }}.{{ commit }}{% endif %}"
[tool.poetry.scripts]
vplan = "vplan.client.cli:vplan"
[tool.poetry.dependencies]
python = ">=3.10,<4"
fastapi = "~0, >=0.103.2"
uvicorn = "~0, >=0.23.2"
pydantic = "^2.9.2"
pydantic-yaml = "^1.3.0"
semver = "^3.0.2"
click = "^8.1.7"
requests = "^2.32.3"
requests-unixsocket2 = "^0.4.2"
SQLAlchemy = "^2.0.36"
APScheduler = "^3.10.4"
python-dotenv = "^1.0.0"
tenacity = "^8.2.3"
pyyaml = "^6.0.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
pytest-testdox = "^3.1.0"
pytest-asyncio = "~0, >=0.21.1"
coverage = "^7.4.4"
pylint = "^3.0.1"
toml = "~0, >=0.10.2"
pre-commit = "^3.4.0"
black = "^24.2.0"
mypy = "^1.6.0"
isort = "^5.12.0"
tzlocal = "^5.1"
busypie = "~0, >=0.5.1"
sqlalchemy2-stubs = "~0, >=0.0.2a35"
types-requests = "^2.31.0.8"
types-pytz = ">=2023.3.1.1"
colorama = "~0, >=0.4.6"
httpx = "~0, >=0.25.0"
responses = "~0, >=0.23.0"
types-pyyaml = "^6.0.12.12"
waitress = "^3.0.0"
types-waitress = "^3.0.0"
[tool.black]
line-length = 132
target-version = ['py310', 'py311', 'py312', 'py313' ]
include = '(src\/scripts\/.*$|\.pyi?$)'
exclude = '''
/(
\.git
| __pycache__
| \.tox
| \.venv
| \.poetry
| build
| dist
| docs
| notes
)/
'''
[tool.isort]
profile = "black"
line_length = 132
skip_glob = [ "docs", "notes" ]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore:.*pkg_resources is deprecated as an API", # not sure where this is coming from, but we don't use it directly
"ignore:.*The 'app' shortcut is now deprecated" # not sure where this is coming from, but we don't use it directly
]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"