-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
74 lines (66 loc) · 2.06 KB
/
tox.ini
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
# ----------------------------------------------------------------------------
# Copyright 2019-2021 Pelion
# Copyright (c) 2022-2024 Izuma Networks
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed 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
#
# http://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.
# ----------------------------------------------------------------------------
[pycodestyle]
exclude = manifest_schema_v3.py,manifest_schema_v1.py,package_schema.py
ignore = E302,E203,W503
[bandit]
skips = B101,B404
[tox]
requires =
tox>=4
envlist =
py{38,39,310,311}
py{38,39,310,311}-x64
sdist
[testenv:py{38,39,310,311}]
platform = linux|darwin|win32
[testenv:py{38,39,310,311}-x64]
platform = win64
basepython =
py38-x64: python3.8-64
py39-x64: python3.9-64
py310-x64: python3.10-64
py311-x64: python3.11-64
[testenv]
usedevelop=True
deps = -rrequirements.txt
-rdev-requirements.txt
commands =
pycodestyle manifesttool
pylint manifesttool
coverage erase
{envbindir}/pytest {posargs: tests --cov-append --cov=manifesttool --cov-report html --cov-report term}
{envpython} setup.py bdist_wheel
bandit --ini tox.ini -r manifesttool
# create and test source distribution only once
[testenv:sdist]
basepython = python3.9
skip_install=True
deps =
# FIXME - use '{envpython} setup.py --fullname'
setenv =
SDIST_TAR_NAME = manifest_tool-2.6.2.tar.gz
commands =
{envpython} setup.py egg_info
{envpython} setup.py sdist
{envpython} -m pip install dist/{env:SDIST_TAR_NAME}
manifest-tool --version
manifest-dev-tool --version
manifest-delta-tool --version
manifest-dev-tool init