-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
115 lines (105 loc) · 3.07 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 = "ckanext-feedback"
version = "1.2.0"
description = "The extension to feedback on CKAN datasets such as review, number of downloads,use-cases,resolved-problems, and way of use"
authors = ["C3Lab <info.c3lab@gmail.com>"]
license = "GNU Affero General Public License v3.0"
readme = "README.md"
repository = "https://github.com/c-3lab/ckanext-feedback/"
documentation = "https://github.com/c-3lab/ckanext-feedback/README.md"
keywords = ["ckan", "ckan extension", "opendata", "open-data", "review"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.8",
]
include = ["**/*.mo"]
packages = [
{ include = "ckanext" },
{ include = "README.md" },
{ include = "LICENSE" }
]
[tool.poetry.plugins."ckan.plugins"]
feedback = "ckanext.feedback.plugin:FeedbackPlugin"
[tool.poetry.plugins."babel.extractors"]
ckan = "ckan.lib.extract:extract_ckan"
[tool.setuptools.packages.find]
exclude = ["development", "**/test*"]
[tool.poetry.dependencies]
python = "^3.8.16"
sqlalchemy = "^1.3.5"
psycopg2 = "2.9.3"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
mypy = "^0.991"
poethepoet = "^0.18.1"
babel = "2.7.0"
jinja2 = "2.10.1"
markupsafe = "1.1.1"
ckan = "2.9.7"
flask = "1.1.1"
itsdangerous = "1.1.0"
werkzeug = {version = "1.0.0", extras = ["watchdog"]}
polib = "1.0.7"
flask-babel = "1.0.0"
simplejson = "3.10.0"
pyutilib = "5.7.1"
tzlocal = "1.3"
dominate = "2.4.0"
markdown = "3.4.1"
bleach = "3.1.4"
alembic = "1.0.0"
requests = "2.25.1"
passlib = "1.6.5"
python-magic = "0.4.15"
pyyaml = "6.0.1"
webassets = "0.12.1"
pyjwt = "1.7.1"
pre-commit = "3.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
max-line-length = 88
extend-ignore = "E203,W503,W504"
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "single"
exclude = "tmp, build"
[tool.black]
skip-string-normalization = true
preview = true
[tool.isort]
profile = "black"
include_trailing_comma = true
line_length = 88
multi_line_output = 3
[tool.poe.tasks]
babel-extract = """
pybabel extract --keywords 'translate isPlural'
--add-comments TRANSLATORS:
--output-file ckanext/feedback/i18n/ckanext-feedback.pot
--width 80
--mapping-file babel.cfg
--project ckanext-feedback
--msgid-bugs-address="info.c3lab@gmail.com"
--copyright-holder="C3Lab"
ckanext
"""
babel-init = """
pybabel init --domain ckanext-feedback
--input-file ckanext/feedback/i18n/ckanext-feedback.pot
--output-dir ckanext/feedback/i18n
"""
babel-update = """
pybabel update --domain ckanext-feedback
--input-file ckanext/feedback/i18n/ckanext-feedback.pot
--output-dir ckanext/feedback/i18n
--previous
"""
babel-compile = """
pybabel compile --domain ckanext-feedback
--directory ckanext/feedback/i18n
--statistics
"""