This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
93 lines (79 loc) · 1.69 KB
/
Copy pathtox.ini
File metadata and controls
93 lines (79 loc) · 1.69 KB
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
[tox]
envlist = mypy, lint, py38, py39, py310
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, mypy, lint
[testenv]
deps =
requests-mock
requests
scrapy
pytest
pytest-cov
pre-commit
commands =
py.test \
--cov-report=term \
--cov=easydata \
--doctest-modules \
{posargs:easydata tests}
[testenv:lint]
deps =
flake8
flake8-isort
commands =
flake8 easydata tests
[testenv:mypy]
deps =
mypy
commands =
mypy --install-types --non-interactive easydata --ignore-missing-imports
[testenv:format]
deps =
isort
black
commands =
isort easydata tests
black easydata tests
[docs]
changedir = docs
deps =
-rdocs/requirements.txt
[testenv:docs]
basepython = python3
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:docs-links]
basepython = python3
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
[testenv:build]
description = Build a wheel and source distribution
skip_install = True
deps =
pep517
twine
commands =
python -c "from pathlib import Path; \
[x.unlink(missing_ok=True) for x in Path('{toxinidir}/dist').glob('*')]"
python -m pep517.build -s -b {toxinidir} -o {toxinidir}/dist
twine check {toxinidir}/dist/*
[testenv:release]
description = Make a release; must be called after "build"
skip_install = True
deps =
twine
depends =
build
passenv =
TWINE_*
commands =
twine check {toxinidir}/dist/*
twine upload {toxinidir}/dist/* \
{posargs:-r {env:TWINE_REPOSITORY:testpypi} --non-interactive}