-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy path.meta.toml
91 lines (84 loc) · 2.6 KB
/
.meta.toml
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
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/c-code
[meta]
template = "c-code"
commit-id = "d1a00d25"
[python]
with-pypy = true
with-sphinx-doctests = true
with-windows = true
with-future-python = true
with-docs = true
with-macos = false
[tox]
use-flake8 = true
testenv-commands = [
"pip install -U -e .[test]",
"coverage run -p -m unittest discover -s src {posargs}",
]
testenv-setenv = [
"ZOPE_INTERFACE_STRICT_IRO=1",
]
coverage-command = "coverage combine"
coverage-additional = [
"depends = py38,py38-pure,py39,py39-pure,py310,py310-pure,py311,py311-pure,py312,py312-pure,py313,py313-pure,pypy3,docs",
"parallel_show_output = true",
]
[flake8]
additional-config = [
"ignore =",
" # module level import not at top of file: we are avoiding cycles",
" E402,",
" # import not used: we are publishing APIs, at least from __init__.py",
" F401,",
" # line break after binary operator",
" W504",
]
[coverage]
fail-under = 98
[manifest]
additional-rules = [
"include *.yaml",
"include *.cmd",
"include *.sh",
"recursive-include benchmarks *.py",
"recursive-include docs *.bat",
"recursive-include docs *.py",
"recursive-include docs *.rst",
"recursive-include docs Makefile",
]
[check-manifest]
additional-ignores = [
"docs/_build/doctest/output.txt",
"docs/_build/html/_sources/*",
"docs/_build/html/_sources/api/*",
]
[github-actions]
additional-install = [
"- name: Install zope.interface",
" # ``python -m unittest discover`` only works with editable",
" # installs, so we have to duplicate some work and can't",
" # install the built wheel. (zope.testrunner",
" # works fine with non-editable installs.)",
" run: |",
" pip install -U wheel",
" pip install -U --no-binary :all: coverage[toml]",
" # Unzip into src/ so that testrunner can find the .so files",
" # when we ask it to load tests from that directory. This",
" # might also save some build time?",
" unzip -n dist/zope.interface-*whl -d src",
" pip install -U -e .[test]",
"- name: Run tests with C extensions",
" if: ${{ !startsWith(matrix.python-version, 'pypy') }}",
" run: |",
" coverage run -p -m unittest discover -s src",
"- name: Run tests without C extensions",
" run: |",
" coverage run -p -m unittest discover -s src",
" env:",
" PURE_PYTHON: 1",
"- name: Report Coverage",
" run: |",
" coverage combine",
" coverage report --ignore-errors --show-missing",
]