mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
update tox config
This commit is contained in:
parent
dbc4716b48
commit
2aca0a8183
4 changed files with 30 additions and 27 deletions
13
.travis.yml
13
.travis.yml
|
@ -7,12 +7,19 @@ addons:
|
||||||
- slapd
|
- slapd
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- env: TOXENV=py37-pytest
|
||||||
|
- env: TOXENV=py37-lint
|
||||||
include:
|
include:
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
env: TOXENV=py27
|
env: TOXENV=py27-pytest
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
env: TOXENV=lint
|
env: TOXENV=py27-lint
|
||||||
- python: 3.6
|
- python: 3.7
|
||||||
|
env: TOXENV=py37-pytest
|
||||||
|
- python: 3.7
|
||||||
|
env: TOXENV=py37-lint
|
||||||
|
- python: 3.7
|
||||||
env: TOXENV=format-check
|
env: TOXENV=format-check
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
env: TOXENV=docs
|
env: TOXENV=docs
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -27,7 +27,7 @@ setup(name='Moulinette',
|
||||||
license='AGPL',
|
license='AGPL',
|
||||||
packages=find_packages(exclude=['test']),
|
packages=find_packages(exclude=['test']),
|
||||||
data_files=[(LOCALES_DIR, locale_files)],
|
data_files=[(LOCALES_DIR, locale_files)],
|
||||||
python_requires='==2.7.*',
|
python_requires='>=2.7.*',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'argcomplete',
|
'argcomplete',
|
||||||
'psutil',
|
'psutil',
|
||||||
|
|
|
@ -7,7 +7,7 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from src.ldap_server import LDAPServer
|
from .src.ldap_server import LDAPServer
|
||||||
|
|
||||||
|
|
||||||
def patch_init(moulinette):
|
def patch_init(moulinette):
|
||||||
|
|
40
tox.ini
40
tox.ini
|
@ -1,7 +1,8 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py27
|
py{27,3}-{pytest,lint}
|
||||||
lint
|
format
|
||||||
|
format-check
|
||||||
docs
|
docs
|
||||||
skipdist = True
|
skipdist = True
|
||||||
|
|
||||||
|
@ -9,26 +10,21 @@ skipdist = True
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
passenv = *
|
passenv = *
|
||||||
deps =
|
deps =
|
||||||
pytest >= 4.6.3, < 5.0
|
py{27,3}-pytest: pytest >= 4.6.3, < 5.0
|
||||||
pytest-cov >= 2.7.1, < 3.0
|
pytest-cov >= 2.7.1, < 3.0
|
||||||
pytest-mock >= 1.10.4, < 2.0
|
pytest-mock >= 1.10.4, < 2.0
|
||||||
pytest-env >= 0.6.2, < 1.0
|
pytest-env >= 0.6.2, < 1.0
|
||||||
requests >= 2.22.0, < 3.0
|
requests >= 2.22.0, < 3.0
|
||||||
requests-mock >= 1.6.0, < 2.0
|
requests-mock >= 1.6.0, < 2.0
|
||||||
toml >= 0.10, < 0.11
|
toml >= 0.10, < 0.11
|
||||||
gevent-websocket
|
gevent-websocket
|
||||||
bottle >= 0.12
|
bottle >= 0.12
|
||||||
WebTest >= 2.0, < 2.1
|
WebTest >= 2.0, < 2.1
|
||||||
python-ldap >= 3.1.0
|
python-ldap >= 3.1.0
|
||||||
|
py{27,3}-lint: flake8
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs}
|
py{27,3}-pytest: pytest {posargs} -c pytest.ini
|
||||||
|
py{27,3}-lint: flake8 moulinette test
|
||||||
[testenv:lint]
|
|
||||||
commands = flake8 moulinette test
|
|
||||||
deps = flake8
|
|
||||||
skip_install = True
|
|
||||||
usedevelop = False
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
Loading…
Reference in a new issue