-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.cfg
102 lines (89 loc) · 2.35 KB
/
setup.cfg
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
# package information
[metadata]
name = cocotbext-i2c
version = attr: cocotbext.i2c.version.__version__
description = I2C modules for cocotb
keywords = i2c, cocotb
author = Alex Forencich
author_email = [email protected]
license = MIT
url = https://github.com/alexforencich/cocotbext-i2c
project_urls =
Bug Tracker = https://github.com/alexforencich/cocotbext-i2c/issues
Source Code = https://github.com/alexforencich/cocotbext-i2c
download_url = https://github.com/alexforencich/cocotbext-i2c/tarball/master
long_description = file: README.md
long-description-content-type = text/markdown
platforms = any
classifiers =
Development Status :: 3 - Alpha
Framework :: cocotb
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
[options]
packages = find_namespace:
python_requires = >=3.6
install_requires =
cocotb
[options.extras_require]
test =
pytest
cocotb-test
[options.packages.find]
include = cocotbext.*
# pytest configuration
[tool:pytest]
testpaths =
tests
addopts =
--import-mode importlib
# tox configuration
[tox:tox]
envlist = py36, py37, py38, py39
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
setenv =
COVERAGE=1
deps =
pytest
pytest-xdist
cocotb-test
coverage
pytest-cov
commands =
pytest --cov=cocotbext --cov=tests --cov-branch -n auto
bash -c 'find . -type f -name "\.coverage" | xargs coverage combine --append'
whitelist_externals =
bash
# combine if paths are different
[coverage:paths]
source =
cocotbext/
/*/cocotbext
# do not report dependencies
[coverage:report]
omit =
.tox/*
# flake8 configuration
[flake8]
exclude = .git .tox *.egg build
max-line-length = 119
ignore =
E123 # closing bracket does not match indentation of opening bracket's line
E126 # continuation line over-indented for hanging indent
E128 # continuation line under-indented for visual indent
E221 # multiple spaces before operator
E226 # missing whitespace around arithmetic operator
E241 # multiple spaces after ','
E262 # inline comment should start with '# '
W503 # line break before binary operator
W504 # line break after binary operator
per-file-ignores =
__init__.py:F401