Skip to content

Commit ddb70d0

Browse files
committed
fix tox, add tox.nix
1 parent 8c76ebc commit ddb70d0

2 files changed

Lines changed: 29 additions & 11 deletions

File tree

tox.ini

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[tox]
22
envlist =
3-
py36
4-
py36-env
53
py37
64
py38
5+
py39
6+
py310
7+
py311
78

8-
[testenv]
9-
commands =
10-
pip install -e .[test]
11-
pytest -vv
12-
pytest -vv --ssl
9+
base_python = py311
1310

11+
isolated_build = true
1412

15-
[testenv:py36-env]
16-
setenv =
17-
PYTEST_HTTPSERVER_HOST=0.0.0.0
18-
PYTEST_HTTPSERVER_PORT=7777
13+
[testenv]
14+
whitelist_externals = poetry
15+
commands =
16+
poetry install -v --with test
17+
poetry run pytest -vv
18+
poetry run pytest -vv --ssl

tox.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
let
4+
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
5+
toxPython = p: p.withPackages ( p: [ p.pip ] );
6+
basePython = p: (p.withPackages ( p: [ p.virtualenv p.pip p.tox ] ));
7+
8+
in pkgs.mkShell {
9+
buildInputs = with pkgs; [
10+
(basePython python311)
11+
(toxPython python310)
12+
(toxPython python39)
13+
(toxPython python38)
14+
(toxPython python37)
15+
16+
bashInteractive
17+
];
18+
}

0 commit comments

Comments
 (0)