mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
21f14e9893
Remove Python 2 related code and configuration from spec file, autoconf and CI infrastructure. From now on, FreeIPA 4.8 requires at least Python 3.6. Python 2 packages like python2-ipaserver or python2-ipaclient are no longer available. PR-CI, lint, and tox aren't testing Python 2 compatibility either. See: https://fedoraproject.org/wiki/Changes/FreeIPA_Python_2_Removal Fixes: https://pagure.io/freeipa/issue/7568 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
55 lines
1.3 KiB
INI
55 lines
1.3 KiB
INI
[tox]
|
|
minversion=2.3.1
|
|
envlist=py36,py37,pylint3,pypi
|
|
skip_missing_interpreters=true
|
|
skipsdist=true
|
|
|
|
[testenv]
|
|
# always re-create virtual env. A special install helper is used to configure,
|
|
# build and install packages.
|
|
recreate=True
|
|
install_command={toxinidir}/.tox-install.sh wheel_bundle {envpython} {envsitepackagesdir} {packages}
|
|
changedir={envdir}
|
|
setenv=
|
|
HOME={envtmpdir}
|
|
deps=
|
|
ipaclient[csrgen]
|
|
ipatests
|
|
commands=
|
|
{envbindir}/ipa --help
|
|
{envpython} -bb {envbindir}/ipa-run-tests --ipaclient-unittests --junitxml={envdir}/junit-{envname}.xml
|
|
|
|
[testenv:pylint3]
|
|
basepython=python3
|
|
deps=
|
|
ipaclient[csrgen,otptoken_yubikey]
|
|
pylint
|
|
commands=
|
|
{envpython} -m pylint \
|
|
--rcfile={toxinidir}/pylintrc \
|
|
--load-plugins pylint_plugins \
|
|
{envsitepackagesdir}/ipaclient \
|
|
{envsitepackagesdir}/ipalib \
|
|
{envsitepackagesdir}/ipapython
|
|
|
|
[testenv:pypi]
|
|
recreate=True
|
|
install_command={toxinidir}/.tox-install.sh pypi_packages {envpython} {envsitepackagesdir} {packages}
|
|
changedir={envdir}
|
|
setenv=
|
|
HOME={envtmpdir}
|
|
deps=
|
|
pytest
|
|
ipaclient
|
|
# placeholder
|
|
ipaplatform
|
|
ipaserver
|
|
ipatests
|
|
commands=
|
|
{envpython} -m pytest {toxinidir}/pypi/test_placeholder.py
|
|
|
|
[pycodestyle]
|
|
# E402 module level import not at top of file
|
|
ignore = E402
|
|
|