diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a7c9295 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# Check http://editorconfig.org for more information +# This is the main config file for this project: +root = true + +[*] +charset = utf-8 +trim_trailing_whitespace = true +end_of_line = lf +indent_style = space +insert_final_newline = true +indent_size = 2 + +[*.py] +indent_size = 4 + +[*.pyi] +indent_size = 4 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3122fae..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: python -matrix: - include: - - python: 3.6 - env: TOXENV=py36-django31 - - python: 3.6 - env: TOXENV=py36-django32 - - python: 3.7 - env: TOXENV=py37-django31 - - python: 3.7 - env: TOXENV=py37-django32 - - python: 3.8 - env: TOXENV=py38-django31 - - python: 3.8 - env: TOXENV=py38-django32 - - python: 3.9 - env: TOXENV=py39-django31 - - python: 3.9 - env: TOXENV=py39-django32 -install: - - pip install Django>=3.1 - - pip install coveralls==1.3.0 - - pip install coverage==4.5.1 - - pip install tox-travis==0.10 -before_script: - - coverage erase -script: - - coverage run --source=eav runtests; tox -after_success: - - COVERALLS_REPO_TOKEN=71NkMDQFpFKB9QYXoK12LYuWUEmQ2wD6V coveralls diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini index c49851b..aada814 100644 --- a/tox.ini +++ b/tox.ini @@ -1,32 +1,17 @@ [tox] +isolated_build = true envlist = - py36-django{31,32,tip}, - py37-django{31,32,tip}, - py38-django{31,32,tip} - py39-django{31,32,tip} - migrationscheck + py{35,36,37,38,39}-django22 + py{36,37,38,39}-django{30,31,32,tip} [testenv] -pip_pre=True - +locked_deps = + pytest + pytest-cov deps = + django22: django>=2.2,<2.3 django31: Django >= 3.1, <3.2 django32: Django >= 3.2 djangotip: https://github.com/django/django/archive/refs/heads/main.tar.gz - -commands = - ./runtests - -[testenv:migrationscheck] -pip_pre=True - -deps = - Django - -setenv = - DJANGO_SETTINGS_MODULE=tests.test_settings - -# make test fail if missing migrations -commands = - django-admin makemigrations --check --dry-run - +commands = pytest --cov {envsitepackagesdir}/eav --import-mode=importlib +whitelist_externals = pytest