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
|
||||
|
||||
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
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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',
|
||||
|
|
|
@ -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):
|
||||
|
|
18
tox.ini
18
tox.ini
|
@ -1,7 +1,8 @@
|
|||
[tox]
|
||||
envlist =
|
||||
py27
|
||||
lint
|
||||
py{27,3}-{pytest,lint}
|
||||
format
|
||||
format-check
|
||||
docs
|
||||
skipdist = True
|
||||
|
||||
|
@ -9,7 +10,7 @@ skipdist = True
|
|||
usedevelop = True
|
||||
passenv = *
|
||||
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-mock >= 1.10.4, < 2.0
|
||||
pytest-env >= 0.6.2, < 1.0
|
||||
|
@ -20,15 +21,10 @@ deps =
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue