dateutil

Форк
0
/
tox.ini 
133 строки · 3.9 Кб
1
[tox]
2
envlist = py27,
3
          py33,
4
          py34,
5
          py35,
6
          py36,
7
          py37,
8
          py38,
9
          py39,
10
          py310,
11
          py311,
12
          pypy,
13
          pypy3,
14
          coverage,
15
          docs
16
minversion = 2.9.0
17
skip_missing_interpreters = true
18
isolated_build = true
19
requires =
20
    tox<4
21
    virtualenv<20.22.0
22

23
[testenv:.package]
24
# no additional dependencies besides PEP 517 for building the package
25
# Needed as we are running with an old version of tox.
26
deps =
27

28
[testenv]
29
description = run the unit tests with pytest under {basepython}
30
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
31
passenv = DATEUTIL_MAY_CHANGE_TZ TOXENV CI APPVEYOR APPVEYOR_* CODECOV_* SYSTEM_* AGENT_* BUILD_* TF_BUILD
32
commands = python -m pytest {posargs: "{toxinidir}/tests" "{toxinidir}/docs" --cov-config="{toxinidir}/tox.ini" --cov=dateutil}
33
deps = -rrequirements-dev.txt
34

35
[testenv:py33]
36
description = run the unit tests with pytest under Python 3.3
37
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
38
passenv = DATEUTIL_MAY_CHANGE_TZ TOXENV CI APPVEYOR APPVEYOR_* CODECOV_* SYSTEM_* AGENT_* BUILD_* TF_BUILD
39
commands = python -m pytest {posargs: "{toxinidir}/tests" "{toxinidir}/docs" --cov-config="{toxinidir}/tox.ini" --cov=dateutil}
40
deps =
41
    -rrequirements/3.3/requirements-dev.txt
42
    -crequirements/3.3/constraints.txt
43

44
[testenv:coverage]
45
description = combine coverage data and create reports
46
deps = coverage
47
skip_install = True
48
changedir = {toxworkdir}
49
setenv = COVERAGE_FILE=.coverage
50
commands = python -m coverage erase
51
           python -m coverage combine
52
           python -m coverage report --rcfile={toxinidir}/tox.ini
53
           python -m coverage xml
54

55
[testenv:codecov]
56
description = [only run on CI]: upload coverage data to codecov (depends on coverage running first)
57
deps = codecov
58
skip_install = True
59
commands = python -m codecov --file {toxworkdir}/coverage.xml
60

61
[testenv:dev]
62
description = DEV environment
63
usedevelop = True
64
commands = python -m pip list --format=columns
65
           python -c 'import sys; print(sys.executable)'
66

67
[coverage:run]
68
source = dateutil
69

70
[coverage:report]
71
skip_covered = True
72
show_missing = True
73

74
[testenv:precommit]
75
description = Run the pre-commit hooks on all files
76
passenv =
77
    PRE_COMMIT*
78
deps =
79
    pre-commit
80
commands =
81
    pre-commit install -f --install-hooks
82
    pre-commit run --all-files
83

84
[testenv:tz]
85
# Warning: This will modify the repository and is only intended to be run
86
#          as part of the CI process, not locally.
87
description = Run the tests against the master of the tz database
88
basepython = python3.6
89
deps = -r {toxinidir}/requirements-dev.txt
90
setenv = DATEUTIL_TZPATH = {envtmpdir}/tzdir/usr/share/zoneinfo
91
changedir = {toxworkdir}
92
commands =
93
    {toxinidir}/ci_tools/run_tz_master_env.sh {envtmpdir} {toxinidir}
94

95
[testenv:docs]
96
description = invoke sphinx-build to build the HTML docs, check that URIs are valid
97
basepython = python3.6
98
deps = -r docs/requirements-docs.txt
99
       {[testenv]deps}
100
commands = python -m sphinx -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -bhtml}
101
           python -m sphinx -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -blinkcheck}
102
           python setup.py check -r -s
103

104

105
[testenv:news]
106
description = Invoke towncrier to update the NEWS file
107
basepython = python3.11
108
passenv = *
109
deps = towncrier
110
commands =
111
    towncrier {posargs}
112

113
[testenv:build]
114
description = Build an sdist and bdist
115
skip_install = true
116
passenv = *
117
deps = build[virtualenv] >= 0.3.0
118
commands =
119
    python -m build --wheel --sdist --outdir dist .
120

121
[testenv:release]
122
description = Make a release; must be called after "build"
123
skip_install = True
124
deps =
125
    twine
126
depends =
127
    build
128
passenv =
129
    TWINE_*
130
commands =
131
    twine check {toxinidir}/dist/*
132
    twine upload {toxinidir}/dist/* \
133
                 {posargs:-r {env:TWINE_REPOSITORY:testpypi} --non-interactive}
134

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.