-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (109 loc) · 2.53 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pyvint"
authors = [{name = "osoken"}]
description = "A Python library for pure Python encoding and decoding of integers using Variable-Size Integer (VINT)."
readme = "README.md"
requires-python = ">=3.8"
keywords = ["vint", "variable-size integer", "integer"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
]
dependencies = []
dynamic = ["version"]
[project.urls]
Source = "https://github.com/osoken/pyvint"
Documentation = "https://osoken.github.io/pyvint/"
[tool.setuptools.package-data]
pyvint = ["py.typed"]
[project.optional-dependencies]
dev = [
"black",
"flake8",
"pyproject-flake8",
"pytest",
"mypy",
"tox",
"isort",
"pytest-cov",
"pytest-random-order",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-include-markdown-plugin",
]
[tool.pytest.ini_options]
addopts = ["-sv", "--random-order", "--doctest-modules", "--cov=pyvint", "--cov-report=xml", "--cov-report=term-missing"]
testpaths = ["tests", "src/pyvint"]
filterwarnings = [
"error",
]
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.flake8]
max-line-length = 120
extend-ignore = "E203, E701"
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
plugins = []
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True
envlist = lint, py38, py39, py310, py311, py312
[testenv]
setenv =
VIRTUALENV_PIP = 24.1
deps =
-e .[dev]
commands =
pytest
mypy src/pyvint --strict
mypy tests --strict
[testenv:lint]
deps =
-e .[dev]
commands =
black --check src/pyvint tests
isort --check-only src/pyvint tests
pflake8 src/pyvint tests
[testenv:docs]
deps =
-e .[docs]
commands =
mkdocs build
[testenv:docs-release]
deps =
-e .[docs]
commands =
mkdocs gh-deploy
[testenv:build-release]
passenv = TWINE_PASSWORD
setenv = TWINE_USERNAME = __token__
allowlist_externals = rm
deps =
build
twine
commands =
rm -fr {toxinidir}/dist
python -m build
python -m twine upload {toxinidir}/dist/*
"""