forked from lpoaura/GN2PG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (111 loc) · 3.09 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
[tool.poetry]
name = "gn2pg_client"
packages = [{ include = "gn2pg" }]
version = "1.6.1"
description = "Import tool from GeoNature to a PostgreSQL database through Export module API (client side)"
authors = ["lpofredc <[email protected]>"]
maintainers = ["lpofredc <[email protected]>"]
license = "AGPL-3.0-or-later"
readme = "README.rst"
homepage = "https://github.com/lpoaura/gn2gn_client/"
keywords = ["GeoNature", "Export", "SINP", "opendata", "biodiversity"]
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: French",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Software Distribution",
]
[tool.poetry.scripts]
gn2pg_cli = "gn2pg.main:run"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
requests = "^2.28.2"
psycopg2-binary = "^2.9.5"
coloredlogs = "^15.0.1"
schema = "^0.7.5"
toml = "^0.10.2"
sqlalchemy = "^1.4.46"
flask = { version = "^2.2.3", optional = true }
flask-sqlalchemy = { version = "^3.0.3", optional = true }
flask-admin = { version = "^1.6.1", optional = true }
gunicorn = { version = "^20.1.0", optional = true }
python-decouple = { version = "^3.8", optional = true }
python-dotenv = { version = "^1.0.0", optional = true }
[tool.poetry.extras]
dashboard = [
'flask',
'flask-sqlalchemy',
'flask-admin',
'gunicorn',
'python-decouple',
'python-dotenv',
]
[tool.poetry.group.dev.dependencies]
flake8 = "^6.0.0"
coverage = "^7.0.3"
pylint = "^2.6.0"
mypy = "^0.991"
tox = "^4.2.3"
isort = "^5.11.4"
pre-commit = "^2.21.0"
black = "^22.12.0"
click = "^8.1.3"
types-setuptools = "^67.2.0.0"
no-implicit-optional = "^1.3"
types-toml = "^0.10.8.3"
types-requests = "^2.28.11.12"
[tool.poetry.group.docs.dependencies]
sphinx = "^6.1.3"
sphinx-rtd-theme = "^1.2.0"
sphinxcontrib-napoleon = "^0.7"
[tool.poetry.group.test.dependencies]
sqlalchemy-utils = "^0.39.0"
pytest = "^7.2.1"
[tool.isort]
include_trailing_comma = true
line_length = 99
multi_line_output = 3
profile = "black"
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
include = '\.pyi?$'
line-length = 99
target-version = ['py37']
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 99
disable = """
too-many-arguments,
too-many-instance-attributes,
too-few-public-methods
"""
good-names=["i","j" ,"k","ex","Run","_","db"]
[tool.mypy]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"