Skip to content

Commit 62aa6b1

Browse files
committed
WIP trying to update test env
adding to python path doesn't seem to work
1 parent 8ce77cd commit 62aa6b1

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: python
22
python:
3-
- '3.6'
43
- '3.7'
54
- '3.8'
5+
- '3.9'
6+
- '3.10'
67
install:
78
- pip install tox tox-travis
89
script:

dev-requirements.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ requests
44
freezegun
55

66
# PyTest for running the tests.
7-
pytest==5.2.1
8-
pytest-django==3.5.1
9-
pytest-cov==2.8.1
10-
pytest-pythonpath
7+
pytest==7.1.2
8+
pytest-django==4.5.2
9+
pytest-cov==3.0.0

tox.ini

+21-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[pytest]
2-
python_paths = ./tests
3-
changedir = ./tests
2+
# pythonpath = .
3+
changedir = tests
44
DJANGO_SETTINGS_MODULE = django_minio_storage_tests.settings
55
addopts=--tb=short
66
python_files = tests.py test_*.py *_tests.py
77

88
[travis]
99
python =
10-
3.6: py36
1110
3.7: py37
12-
3.8: py38, lint, docs
11+
3.8: py38
12+
3.9: py39
13+
3.10: py310, lint, docs
1314

1415
[travis:env]
1516
DJANGO =
16-
1.11: django111
17-
2.1: django21
18-
2.2: django22, lint, docs
19-
3.0: django30
17+
2.2: django22
18+
3.2: django32, lint, docs
19+
4.0: django40
2020

2121
[testenv]
2222
commands = pytest {posargs}
@@ -27,22 +27,23 @@ setenv =
2727
MINIO_STORAGE_SECRET_KEY=weak_secret_key
2828
TOX_ENVNAME={envname}
2929
deps =
30-
django111: Django==1.11.*
30+
3131
django21: Django==2.1.*
3232
django22: Django==2.2.*
33-
django30: Django==3.0b1
33+
django32: Django==3.2.*
34+
django40: Django==4.0.*
3435
minio: minio
35-
minioknown: minio==4.0.21
36+
minioknown: minio==6.0.2
3637
-rdev-requirements.txt
3738

3839
[testenv:lint]
3940
setenv=
4041
PYTHONWARNINGS=ignore
4142
basepython = python3
4243
deps =
43-
flake8==3.8.3
44-
isort==5.4.2
45-
black==20.8b1
44+
flake8==4.0.1
45+
isort==5.10.1
46+
black==22.3.0
4647
commands =
4748
flake8 --config .flake8rc
4849
isort --check --diff .
@@ -54,9 +55,9 @@ setenv=
5455
basepython = python3
5556
deps =
5657
pyupgrade-directories
57-
flake8==3.8.3
58-
isort==5.4.2
59-
black==20.8b1
58+
flake8==4.0.1
59+
isort==5.10.1
60+
black==22.3.0
6061
commands =
6162
pyup_dirs --exit-zero-even-if-changed --py36-plus minio_storage tests
6263
isort .
@@ -69,8 +70,8 @@ commands = mkdocs build
6970

7071
[tox]
7172
envlist =
72-
{py36,py37,py38}-django22-minioknown
73-
py38-django{111,21,30}-minioknown
74-
py38-django22-minio
73+
{py37,py38,py39,py310}-django32-minioknown
74+
py310-django{111,21,30}-minioknown
75+
py310-django32-minio
7576
lint
7677
docs

0 commit comments

Comments
 (0)