-
Notifications
You must be signed in to change notification settings - Fork 34
/
.meta.toml
79 lines (74 loc) · 3.14 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
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
[meta]
template = "zope-product"
commit-id = "1dc6b9e7"
[python]
with-pypy = false
with-sphinx-doctests = false
with-windows = false
with-future-python = false
with-macos = false
[coverage]
fail-under = 65
[tox]
additional-envlist = [
"py{37,38,39}-sqlalchemy11",
"py{37,38,39,310}-sqlalchemy{12,13}",
"py{37,38,39,310,311}-sqlalchemy{14,20}",
]
testenv-deps = [
"sqlalchemy11: SQLAlchemy==1.1.*",
"sqlalchemy12: SQLAlchemy==1.2.*",
"sqlalchemy13: SQLAlchemy==1.3.*",
"sqlalchemy14: SQLAlchemy==1.4.*",
"sqlalchemy20: SQLAlchemy==2.0.*",
]
testenv-commands-pre = [
"!sqlalchemy20: sh -c 'if [ '{env:CI:false}' = 'true' ]; then {envbindir}/buildout -nc {toxinidir}/github_actions.cfg buildout:directory={envdir} buildout:develop={toxinidir} ; fi'",
"!sqlalchemy20: sh -c 'if [ '{env:CI:false}' != 'true' ]; then {envbindir}/buildout -nc {toxinidir}/postgres.cfg buildout:directory={envdir} buildout:develop={toxinidir} ; fi'",
"sqlalchemy20: sh -c 'if [ '{env:CI:false}' = 'true' ]; then {envbindir}/buildout -nc {toxinidir}/github_actions20.cfg buildout:directory={envdir} buildout:develop={toxinidir} ; fi'",
"sqlalchemy20: sh -c 'if [ '{env:CI:false}' != 'true' ]; then {envbindir}/buildout -nc {toxinidir}/postgres20.cfg buildout:directory={envdir} buildout:develop={toxinidir} ; fi'",
]
testenv-commands = [
"{envbindir}/test {posargs:-cv}",
"sh -c 'if [ '{env:TEST_PG:{env:CI:false}}' = 'true' ]; then {envbindir}/testpg {posargs:-cv} ; fi'",
"sh -c 'if [ '{env:TEST_PG:{env:CI:false}}' = 'true' ]; then {envbindir}/testpg2 {posargs:-cv} ; fi'",
"sqlalchemy20: sh -c 'if [ '{env:TEST_PG:{env:CI:false}}' = 'true' ]; then {envbindir}/testpg3 {posargs:-cv} ; fi'",
"sqlalchemy20: sh -c 'if [ '{env:TEST_PG:{env:CI:false}}' = 'true' ]; then {envbindir}/testpg32 {posargs:-cv} ; fi'",
]
testenv-additional = [
"passenv =",
" CI",
" TEST_PG",
"allowlist_externals =",
" sh",
]
use-flake8 = true
[manifest]
additional-rules = [
"include github_actions.cfg",
"include github_actions20.cfg",
"include mysql.cfg",
"include oracle.cfg",
"include postgres.cfg",
"include postgres20.cfg",
"include pysqlite.cfg",
"recursive-include src *.rst",
]
[github-actions]
steps-before-checkout = [
"- name: \"Configure PostgreSQL\"",
" run: |",
" sudo mkdir -p /usr/local/pgsql/data",
" sudo chown postgres /usr/local/pgsql/data",
" sudo su - postgres -c '/usr/lib/postgresql/14/bin/initdb -D /usr/local/pgsql/data'",
" sudo su - postgres -c 'echo \"max_prepared_transactions=10\" >> /usr/local/pgsql/data/postgresql.conf'",
" sudo su - postgres -c 'cat /usr/local/pgsql/data/postgresql.conf'",
" sudo su - postgres -c '/usr/lib/postgresql/14/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start'",
" sudo su - postgres -c '/usr/lib/postgresql/14/bin/createdb zope_sqlalchemy_tests'",
" sudo su - postgres -c '/usr/lib/postgresql/14/bin/psql -l'",
]
test-commands = [
"tox -f ${{ matrix.config[1] }}",
]