-
Notifications
You must be signed in to change notification settings - Fork 61
/
pyproject.toml
115 lines (101 loc) · 2.72 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
[tool.poetry]
name = "papermerge-core"
version = "3.3"
description = "Open source document management system for digital archives"
authors = ["Eugen Ciur <[email protected]>"]
maintainers = ["Eugen Ciur <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
homepage = "https://www.papermerge.com/"
documentation = "https://docs.papermerge.io/"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3"
]
keywords = [
"PDF",
"OCR",
"optical character recognition",
"PDF/A",
"scanning",
"dms",
"document-management",
"paperless",
"archives"
]
packages = [
{ include = "papermerge/core" },
{ include = "papermerge/search" },
]
[project.urls]
Tracker = "https://github.com/ciur/papermerge/issues"
Source = "https://github.com/papermerge/papermerge-core"
[tool.poetry.dependencies]
python = ">=3.13, <4.0"
redis = "^5.2"
celery = {version = "^5.2", extras = ["gevent", "redis"]}
pyyaml = "^6.0"
python-magic = "^0.4"
uritemplate = "^4.1.1"
pdf2image = "^1.16.0"
uvicorn = "^0.32"
python-jose = "^3.3.0"
salinic = "^0.6.0"
img2pdf = "^0.5.1"
passlib = "^1.7.4"
sqlalchemy = "^2.0"
typer = "^0.13"
rich = "^13"
pytz = "^2024.1"
pydantic-settings = "^2"
alembic = "^1.13.3"
fastapi = {extras = ["standard"], version = "^0.115"}
psycopg2 = { version = "^2.9.2", optional = true}
botocore = { version = "^1.35", optional = true }
boto3 = { version = "^1.35", optional = true }
mysqlclient = {version = "^2.2", optional = true}
cryptography = { version = "^43", optional = true }
taskipy = "^1.14"
[tool.poetry.extras]
mysql = ["mysqlclient"]
pg = ["psycopg2"]
databases = ["mysqlclient", "psycopg2"]
cloud = ["botocore", "boto3", "cryptography"]
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.1.2"
pytest-asyncio = "^0.21.0"
[tool.taskipy.settings]
use_vars = true
[tool.taskipy.variables]
env_vars = "PAPERMERGE__MAIN__API_PREFIX=''"
[tool.taskipy.tasks]
test = {cmd = "{env_vars} pytest", cwd = "." }
# run following commands from docker/dev only
worker = "celery -A config worker -c 5"
server = "fastapi dev papermerge/app.py"
migrate = "alembic upgrade head"
[tool.poetry.scripts]
paper-cli = "papermerge.cli:app"
docs = 'papermerge.core.cli.docs:app'
sign_url = 'papermerge.core.cli.cf_sign_url:app'
[tool.ruff]
target-version = "py311"
# say hello to balck rigidity
line-length = 88 # same as black's hardcoded
indent-width = 4
[tool.ruff.lint]
"select" = [
"F", # pyflakes
"I001", # isort
"UP", # pyupgrade
]
"ignore" = [
"UP007"
]
[build-system]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"