Merge pull request #254 from YunoHost/update-tox-config

update tox config
This commit is contained in:
Alexandre Aubin 2020-09-16 22:59:32 +02:00 committed by GitHub
commit 542a3ffc61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 27 deletions

View file

@ -7,12 +7,19 @@ addons:
- slapd
matrix:
allow_failures:
- env: TOXENV=py37-pytest
- env: TOXENV=py37-lint
include:
- python: 2.7
env: TOXENV=py27
env: TOXENV=py27-pytest
- python: 2.7
env: TOXENV=lint
- python: 3.6
env: TOXENV=py27-lint
- python: 3.7
env: TOXENV=py37-pytest
- python: 3.7
env: TOXENV=py37-lint
- python: 3.7
env: TOXENV=format-check
- python: 2.7
env: TOXENV=docs

View file

@ -27,7 +27,7 @@ setup(name='Moulinette',
license='AGPL',
packages=find_packages(exclude=['test']),
data_files=[(LOCALES_DIR, locale_files)],
python_requires='==2.7.*',
python_requires='>=2.7.*',
install_requires=[
'argcomplete',
'psutil',

View file

@ -7,7 +7,7 @@ import os
import shutil
import pytest
from src.ldap_server import LDAPServer
from .src.ldap_server import LDAPServer
def patch_init(moulinette):

40
tox.ini
View file

@ -1,7 +1,8 @@
[tox]
envlist =
py27
lint
envlist =
py{27,3}-{pytest,lint}
format
format-check
docs
skipdist = True
@ -9,26 +10,21 @@ skipdist = True
usedevelop = True
passenv = *
deps =
pytest >= 4.6.3, < 5.0
pytest-cov >= 2.7.1, < 3.0
pytest-mock >= 1.10.4, < 2.0
pytest-env >= 0.6.2, < 1.0
requests >= 2.22.0, < 3.0
requests-mock >= 1.6.0, < 2.0
toml >= 0.10, < 0.11
gevent-websocket
bottle >= 0.12
WebTest >= 2.0, < 2.1
python-ldap >= 3.1.0
py{27,3}-pytest: pytest >= 4.6.3, < 5.0
pytest-cov >= 2.7.1, < 3.0
pytest-mock >= 1.10.4, < 2.0
pytest-env >= 0.6.2, < 1.0
requests >= 2.22.0, < 3.0
requests-mock >= 1.6.0, < 2.0
toml >= 0.10, < 0.11
gevent-websocket
bottle >= 0.12
WebTest >= 2.0, < 2.1
python-ldap >= 3.1.0
py{27,3}-lint: flake8
commands =
pytest {posargs}
[testenv:lint]
commands = flake8 moulinette test
deps = flake8
skip_install = True
usedevelop = False
py{27,3}-pytest: pytest {posargs} -c pytest.ini
py{27,3}-lint: flake8 moulinette test
[testenv:format]
basepython = python3