This repository was archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
117 lines (106 loc) · 2.92 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
[project]
authors = [{ name = "andyzhou", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
]
dependencies = [
"apiflask>=1.1.1",
"flask-sqlalchemy~=2.5",
"flask-wtf~=0.15",
"flask-login~=0.5",
"bootstrap-flask~=2.0",
"flask-compress~=1.10",
"wtforms-sqlalchemy~=0.3",
"flask>=2.2.0",
"marshmallow-sqlalchemy>=0.27.0",
"python-dotenv>=0.19.2",
"cookiecutter>=1.7.3",
"authlib>=1.0.1",
"colorama>=0.4.5",
]
description = "An enhanced django-like Flask"
keywords = ["flask", "apiflask"]
license = { text = "MIT" }
name = "Djask"
readme = "README.md"
requires-python = ">=3.8"
version = "0.7.0a1"
[project.urls]
Documentation = "https://djask.readthedocs.io"
Home = "https://github.com/z-t-y/djask"
Repo = "https://github.com/z-t-y/djask"
[project.optional-dependencies]
[build-system]
requires = ["pdm-pep517"]
build-backend = "pdm.pep517.api"
[project.scripts]
djask = "djask.cli:main"
[tool.pytest.ini_options]
addopts = "--ignore=src/djask/project_template --cov=src/djask -n 4 -p no:warnings"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["src/djask"]
omit = ["*.html", "*/__main__.py", "*/cli.py", "*/project_template/*"]
[tool.black]
include = ".py"
extend-exclude = """
src/djask/project_template
setup.py
"""
[tool.mypy]
exclude = ["src/djask/project_template", "src/djask/admin/api/views.py"]
ignore_missing_imports = true
[tool.pdm]
[tool.pdm.dev-dependencies]
linting = ["flake8>=5.0.4", "black>=22.6.0", "mypy>=0.971"]
docs = [
"pallets-sphinx-themes>=2.0.2",
"sphinx>=5.1.1",
"sphinx-tabs>=3.4.1",
"sphinxcontrib-applehelp>=1.0.2",
"sphinx-autobuild>=2021.3.14",
"sphinxcontrib-devhelp>=1.0.2",
"sphinxcontrib-htmlhelp>=2.0.0",
"sphinxcontrib-jsmath>=1.0.1",
"sphinxcontrib-qthelp>=1.0.3",
"sphinxcontrib-serializinghtml>=1.1.5",
"tomli>=2.0.1",
]
dev = ["pre-commit>=2.20.0"]
testing = ["pytest>=7.1.2", "pytest-cov>=3.0.0", "pytest-xdist>=2.5.0"]
[tool.pdm.scripts.doc-deps]
shell = """\
pdm export \
-G docs \
--no-default \
-f requirements \
-o docs/requirements.txt \
--without-hashes
"""
[tool.pdm.scripts.simple-app]
# You should call `simple-app` command from project root.
shell = """
cd examples/simpleapp
pdm run flask run
"""
[tool.pdm.scripts.docs]
# You should call `docs` command from project root.
shell = """
cd docs
make html
pdm run python -m http.server -d=build/html
"""