Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
95 lines (87 loc) · 2.14 KB
/
Copy pathtox.ini
File metadata and controls
95 lines (87 loc) · 2.14 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
94
95
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
# Run tox --skip-missing-interpreters if you don't want to install all these interpreters.
envlist =
build # Build the wheel
# Fastest checks first
docs
lint
typechecks
py36
py37
py38
py39
py310
pypy3.6
pypy3.7
[coverage:run]
source =
avro
scripts
omit =
.tox/*
[testenv]
wheel = true
wheel_build_env = build
deps =
coverage
python-snappy
zstandard
allowlist_externals =
cp
mkdir
commands_pre =
mkdir -p avro/test/interop {toxinidir}/../../build/interop/data
cp -r {toxinidir}/../../build/interop/data avro/test/interop
coverage run -pm avro.test.gen_interop_data avro/interop.avsc avro/test/interop/data/py.avro
cp -r avro/test/interop/data {toxinidir}/../../build/interop
commands =
coverage run -pm unittest discover --buffer --failfast
commands_post =
coverage combine --append
coverage report
[testenv:build]
##
# A virtual environment only used to build the wheel
deps =
allowlist_externals =
commands_pre =
commands =
commands_post =
[testenv:docs]
deps =
sphinx
commands_pre =
commands =
sphinx-build -b html docs/source/ docs/build/html
commands_post =
[testenv:lint]
deps =
black
isort
commands_pre =
commands =
black --check .
isort --check-only .
commands_post =
[testenv:typechecks]
deps =
coverage
mypy
extras =
mypy
commands =
mypy {posargs}