-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
123 lines (106 loc) · 2.63 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pyvlq"
authors = [
{name = "osoken"},
]
description = "A Python library for pure Python encoding and decoding of integers using Variable-length quantity."
readme = "README.md"
requires-python = ">=3.8"
keywords = ["VLQ", "Variable-length quantity", "VINT", "integer", "encoding", "decoding"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"Natural Language :: Japanese",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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/pyvlq"
[tool.setuptools]
[tool.setuptools.package-data]
pyvlq = ["py.typed"]
[project.optional-dependencies]
dev=[
"black",
"flake8",
"pyproject-flake8",
"pytest",
"mypy",
"tox",
"isort",
"pytest-cov",
"pytest-random-order",
]
docs=[
"sphinx",
"sphinx_rtd_theme",
"sphinx-autodoc-typehints",
]
[tool.pytest.ini_options]
addopts = ["-sv", "--random-order", "--doctest-modules", "--cov=pyvlq", "--cov-report=xml", "--cov-report=term-missing"]
testpaths = ["tests", "src/pyvlq"]
filterwarnings = [
"error",
]
[tool.black]
line-length = 120
target-version = ['py310']
[tool.flake8]
max-line-length = 120
extend-ignore = "E203,E701"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
plugins = []
[tool.isort]
profile = "black"
[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/pyvlq --strict --show-traceback
mypy tests --strict
[testenv:docs]
deps =
-e .[docs]
commands =
sphinx-apidoc -o docs/ src/pyvlq src/pyvlq/core.py
sphinx-build -b html docs/ docs/_build
[testenv:lint]
deps =
-e .[dev]
commands =
black --check src/pyvlq tests
isort --check-only src/pyvlq tests
pflake8 src/pyvlq/ tests/
[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/*
"""