-
Notifications
You must be signed in to change notification settings - Fork 102
/
tox.ini
57 lines (50 loc) · 1.36 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
[tox]
envlist =
py{3.8,3.10,3.11,3.12}-{tw247,tw243,tw2170}-{pymongo4101,pymongo480,pymongo3123}-{basic,advanced},
pyflakes, manifest
allowlist_externals=*
minversion=3.24.1
requires=
setuptools>=74.0.0
virtualenv>=20.7.2
tox < 5
[testenv]
deps =
coverage
mock
pyopenssl
pyparsing
service_identity
tw247: Twisted==24.7.0
tw243: Twisted==24.3.0
tw2170: Twisted==21.7.0
pymongo3123: pymongo==3.12.3
pymongo480: pymongo==4.8.0
pymongo4101: pymongo==4.10.1
allowlist_externals=*
setenv = PYTHONPATH = {toxinidir}
passenv =
GITHUB_ACTIONS
TXMONGO_RUN_MONGOD_IN_DOCKER
TXMONGO_MONGOD_DOCKER_VERSION
TXMONGO_MONGOD_DOCKER_PORT
TXMONGO_MONGOD_DOCKER_PORT_1
TXMONGO_MONGOD_DOCKER_PORT_2
TXMONGO_MONGOD_DOCKER_PORT_3
TXMONGO_MONGOD_DOCKER_NETWORK_NAME
commands =
{envpython} --version
trial --version
{envpython} -c 'import pymongo; print("PyMongo version:", pymongo.version)'
basic: coverage run --source txmongo --branch {envdir}/bin/trial tests/basic
advanced: coverage run --source txmongo --branch {envdir}/bin/trial tests/advanced
coverage html --omit=txmongo/test/*
coverage report --omit=txmongo/test/* --show-missing
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes txmongo
[testenv:manifest]
deps =
check-manifest
commands =
check-manifest