-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
90 lines (77 loc) · 1.88 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
[build-system]
requires = ["setuptools>=61.2", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "pyodide-pack"
authors = [{name = "Roman Yurchak"}]
description = "A bundler for Python packages for the web"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"jinja2",
"pyodide-cli>=0.2.0",
"pyodide-lock",
"tomli; python_version < '3.11'"
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/rth/pyodide-bundler"
"Bug Tracker" = "https://github.com/rth/pyodide-bundler"
[project.entry-points."pyodide.cli"]
pack = "pyodide_pack.cli:main"
minify = "pyodide_pack.ast_rewrite:main"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"hypothesis",
"tomli-w"
]
[tool.setuptools]
package-dir = {"" = "."}
include-package-data = false
[tool.setuptools.packages.find]
where = ["."]
namespaces = false
[tool.setuptools_scm]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
norecursedirs = [
"node_modules",
"examples"
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
]
addopts = [
"--doctest-modules",
]
testpaths = [
"pyodide_pack",
"examples/test_examples.py"
]
[tool.ruff]
select = [
"B904", # bugbear (Within an except clause, raise exceptions with raise ... from err)
"B905", # bugbear (zip() without an explicit strict= parameter set.)
# "C9", # mccabe complexity
"E", # pycodestyles
"W", # pycodestyles
"F", # pyflakes
"I", # isort
"PLC", # pylint conventions
"PLE", # pylint errors
"UP", # pyupgrade
]
ignore = ["E402", "E501", "E731", "E741"]
target-version = "py310"