-
Notifications
You must be signed in to change notification settings - Fork 481
/
pyproject.toml
105 lines (90 loc) · 2.66 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
[build-system]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "invoice2data"
authors = [
{name = "Manuel Riel"},
]
description = "Python parser to extract data from pdf invoice"
version = "0.4.6"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["python", "data-mining", "accounting", "invoice", "pdf", "parcing"]
license = {text = "MIT"}
classifiers = [
"Framework :: Django",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Accounting",
"Environment :: Console",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"poppler-utils",
"pyyaml",
"dateparser",
]
# dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/invoice-x/invoice2data"
"Bug Tracker" = "https://github.com/invoice-x/invoice2data/issues"
[project.optional-dependencies]
ocr = ["imagemagick", "ghostscript", "tesseract-ocr"]
pdfplumber = ["pdfplumber"]
pdfminer = ["pdfminer.six"]
ocrmypdf = ["ocrmypdf"]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox", "setuptools"]
[options.extras_require]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox"]
# pyproject.toml
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vs --cov invoice2data"
testpaths = [
"tests"
]
[tool.flake8]
ignore = ["E231", "E241", "E203"]
per-file-ignores = [
"__init__.py:F401",
]
exclude = [
"build", "dist", ".git", ".idea", ".cache", ".tox", ".eggs"
]
max-line-length = 120
count = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py312,flake8
skip_missing_interpreters = True
[testenv]
deps = pytest >= 3.0.0, <4
commands = pytest
extras = test
[testenv:flake8]
commands=flake8 src tests
extras = test
"""
[project.entry-points."invoice2data"]
console_scripts = "invoice2data.main:main"
[tool.setuptools.dynamic]
readme = {file = ["README.md"]}
[tool.setuptools.packages.find]
where = ["src"]
include = ["invoice2data.extract.templates*"]
namespaces = false
[tool.setuptools.package-data]
mypkg = ["*.json", "*.yaml", "*.yml"]