summaryrefslogtreecommitdiff
path: root/.meta.toml
blob: 3a1e128c3d802c940d5907fdb384774a76e92132 (plain)
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
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/c-code
[meta]
template = "c-code"
commit-id = "c7a64084"

[python]
with-appveyor = true
with-pypy = true
with-sphinx-doctests = true
with-windows = false
with-future-python = true
with-docs = true
with-macos = false

[tox]
use-flake8 = false
testenv-commands = [
    "coverage run -p -m unittest discover -s src {posargs}",
    ]
testenv-deps = [
    ]
testenv-setenv = [
    "ZOPE_INTERFACE_STRICT_IRO=1",
    ]
coverage-command = "coverage combine"
coverage-additional = [
    "depends = py37,py37-pure,py38,py38-pure,py39,py39-pure,py310,py310-pure,py311,py311-pure,pypy,pypy3,docs",
    "parallel_show_output = true",
    ]

[coverage]
fail-under = 99

[manifest]
additional-rules = [
    "include *.cmd",
    "include *.sh",
    "include *.yml",
    "include .coveragerc",
    "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",
    "    # 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 and report coverage",
    "  # Once with C extensions, once without. Yes, this runs them",
    "  # twice on PyPy.",
    "  run: |",
    "    coverage run -p -m unittest discover -s src",
    "    PURE_PYTHON=1 coverage run -p -m unittest discover -s src",
    "    coverage combine",
    "    coverage report --ignore-errors --show-missing",
    ]

[appveyor]
global-env-vars = [
    "# Currently the builds use @mgedmin's Appveyor account.  The PyPI token",
    "# belongs to zope.wheelbuilder, which is managed by @mgedmin and @dataflake.",
    "",
    "global:",
    "  TWINE_USERNAME: __token__",
    "  TWINE_PASSWORD:",
    "    secure: aoZC/+rvJKg8B5GMGIxd1X2q2bz7SMl8G3810BID9U8PXFqM0FbWaK9fZ9qcU0UyG2xJsK56Fb6+L6g27I0Lg8UFNhlU1zLAuMSgJQbHsqawFgSY067IdJB68pp34d/oEyxMrJvAKENHH77Fe4KGDssLlk5WnnYS3DA9b66p5imP+1DTtkq5/gMtoG4nZTBtVos7J2kkYTQ5t4BjzTQxPMC3bStNnvuuB0orX4AoCyTrOR1wdZFiNKLzbVnrJCNn24t/n3kG9WrxbnKlrbOm4A==",
    ]
test-steps = [
    "- python -m unittest discover -s src",
    ]