-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathpyproject.toml
129 lines (113 loc) · 3.45 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# see https://github.com/karlicoss/pymplate for up-to-date reference
[project]
dynamic = ["version"] # version is managed by setuptools_scm
name = "promnesia"
dependencies = [
"appdirs", # for portable user directories detection
"tzlocal", # guessling local timezone
"more_itertools",
"typing-extensions",
"pytz",
"sqlalchemy>=2.0", # DB api
##
# NOTE: ideally we don't need to install them by default?
# i.e. server and indexer can run on different hosts/containers etc
# keeping here for backwards compatibility for now
"promnesia[indexer]",
"promnesia[server]",
##
]
requires-python = ">=3.9"
## these need to be set if you're planning to upload to pypi
description = "Enhancement of your browsing history"
license = {file = "LICENSE"}
authors = [
{name = "Dima Gerasimov (@karlicoss)", email = "karlicoss@gmail.com"},
]
maintainers = [
{name = "Dima Gerasimov (@karlicoss)", email = "karlicoss@gmail.com"},
]
[project.urls]
Homepage = "https://github.com/karlicoss/promnesia"
##
[project.optional-dependencies]
indexer = [
# indexer only dependencies
"urlextract",
]
server = [
# server only dependencies
"fastapi",
"uvicorn[standard]",
]
optional = [
# dependencies that bring some bells & whistles
"logzero" , # pretty colored logging
"python-magic", # better mimetype decetion
]
HPI = [
# dependencies for https://github.com/karlicoss/HPI
"HPI", # pypi version
# TODO add notes how to override with github version?
]
html = [
# dependencies for sources.html
"beautifulsoup4", # extracting links from the page
"lxml" , # bs4 backend
]
markdown = [
# dependencies for sources.html
"mistletoe",
]
org = [
# dependencies for sources.org
"orgparse>=0.3.0",
]
telegram = [
# used to depend on 'dataset', keeping for backwards compatibility
]
all = [
"promnesia[optional,HPI,html,markdown,org]",
]
[dependency-groups]
testing = [
"pytest",
"ruff",
"mypy",
"lxml", # for mypy coverage
"hypothesis",
"loguru", # used in addon_helper... not sure if should just use promnesia's logger?
"psutil", "types-psutil",
"requests", "types-requests",
## other mypy stubs
"types-pytz" ,
"types-requests" , # used in tests
"types-beautifulsoup4", # NOTE: not needed after the <4.13.0 pinning is resolved
##
# todo hmm ideally would be in corresponding testing-... sections
# but we don't split separate mypy for end2end tests... so idk
"selenium" , # browser automations
"types-PyAutoGUI"
]
testing-end2end = [
"click" , # confirmations for end2end test (might remove dependency)
"pytest-timeout", # for PYTEST_TIMEOUT env variable
"pytest-xdist" , # not used atm, but helpful to parallelise end2end tests
]
testing-gui = [
# pyautogui seems problematic, wheels often fail to build under windows
# we don't use it in CI, so keep in a separate extras section
"pyautogui", # for keyboard automation during end2end tests
]
[project.scripts]
promnesia = "promnesia.__main__:main"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "python-simplified-semver"
local_scheme = "dirty-tag"
# workaround for error during uv publishing
# see https://github.com/astral-sh/uv/issues/9513#issuecomment-2519527822
[tool.setuptools]
license-files = []