-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (57 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
71 lines (57 loc) · 1.98 KB
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
# see https://github.com/karlicoss/pymplate for up-to-date reference
[project]
dynamic = ["version"] # version is managed by build backend
name = "grasp_backend"
dependencies = [
]
requires-python = ">=3.12"
## these are only useful for pypi
description = "Backend for grasp browser extension"
license = {file = "LICENSE"}
authors = [{name = "Dima Gerasimov (@karlicoss)", email = "[email protected]"}]
maintainers = [{name = "Dima Gerasimov (@karlicoss)", email = "[email protected]"}]
[project.urls]
Homepage = "https://github.com/karlicoss/grasp"
##
[project.optional-dependencies]
[dependency-groups]
testing = [
"pytest>=9", # need version 9 for proper namespace package support
"ruff",
"requests", # for backend tests
"psutil", # for backend tests
]
end2end = [
{ include-group = "testing" },
"selenium", # browser automations
"loguru", # used in addon_helper... not sure if should just use promnesia's logger?
"click", # confirmations for end2end test
"pyautogui", # for keyboard automation during end2end tests
"ipdb" , # optional but a bit nicer for breakpoints
"pytest-timeout", # for PYTEST_TIMEOUT env variable
"pytest-xdist" , # not used atm, but helpful to parallelise end2end tests
"pytest-repeat" , # helpful to debug flaky tests
]
typecheck = [
{ include-group = "testing" },
{ include-group = "end2end" },
"mypy",
"lxml", # for mypy html coverage
"ty>=0.0.8",
"types-requests",
"types-psutil",
"types-PyAutoGUI",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# unfortunately have to duplicate project name here atm, see https://github.com/pypa/hatch/issues/1894
[tool.hatch.build.targets.wheel]
packages = ["src/grasp_backend"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "python-simplified-semver"
local_scheme = "dirty-tag"
[project.scripts]
grasp_backend = 'grasp_backend.__main__:main'