The pylint3 target fails with Python 3.6 because .wheelconstraints.in enforces pylint < 1.7. 3.6 needs at least pylint 1.7.1 to work.
.wheelconstraints.in
'TreeRebuilder3k' object has no attribute 'visit_joinedstr'
WIthout pylint < 1.7 in .wheelconstraints.in, tox -e pylint3 fails with these errors:
pylint < 1.7
tox -e pylint3
************* Module ipaclient.remote_plugins.schema lib/python3.6/site-packages/ipaclient/remote_plugins/schema.py:589: [E1101(no-member), get_package] Instance of 'module' has no 'register' member) ************* Module ipalib.util lib/python3.6/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib') lib/python3.6/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install') lib/python3.6/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths') ************* Module ipalib.config lib/python3.6/site-packages/ipalib/config.py:276: [E1137(unsupported-assignment-operation), Env.__setitem__] 'self.__d' does not support item assignment) ************* Module ipalib.parameters lib/python3.6/site-packages/ipalib/parameters.py:1230: [E1130(invalid-unary-operand-type), Decimal._enforce_precision] bad operand type for unary -: precision) ************* Module ipalib.cli lib/python3.6/site-packages/ipalib/cli.py:1002: [E1137(unsupported-assignment-operation), Collector.__setattr__] 'self.__options' does not support item assignment)
Should hopefully be fixed in https://github.com/freeipa/freeipa/pull/992
Metadata Update from @stlaz: - Issue assigned to stlaz
Should have been fixed as a part of https://pagure.io/freeipa/issue/6874
master:
ipa-4-6:
0565600635777b71a96e63ed421820e0a0891ae5 Travis: archive logs of py3 jobs ce148ed700b354b4324e65fe5a6097b80bdfc442 pylint: fix not-context-manager false positives 47352fb19df83675863167601d57a6d28c278eb2 csrgen: fix incorrect codec for pyasn BitString 7c64aca2d08fdc40901f4b5bf04a9d093944086a pylint: fix no-member in schema plugin 0b8207df865b28288519a1b6bcfea52f3c693096 dcerpc: refactor assess_dcerpc_exception f80af622810afc05675eaf7d0b91217ca41a05ab dcerpc: disable unbalanced-tuple-unpacking 25d8229bf9843b857b1918026dc45da92771fa7c parameters: convert Decimal.precision to int 06f3aad5cf26b36e40abd0dd5fc547690c5c5b3d pylint: Iterate through dictionaries 568926fd74f395be5c3b6a2d3bc811732c470fcc sudocmd: fix unsupported assignment 9cf1f1d4cbe38730dff7f35476fd1a5ad09ca605 pylint: make unsupported-assignment-operation check local e67cdb01c40f9eaec4518b327bd72fdd3100253c install.util: disable no-value-for-parameter 2952af4dc450363ae6c6a466812ae4ef32d087f4 pylint: disable hash for some classes 388bc9459216183deda2336220ca1f5d6f9d0698 secrets: disable relative-imports for custodia dfeadfed2c6fe1540933c46b540c657344a6a264 rpcserver: don't call xmlserver.Command 0449a4c8113719004297db3466fd189f22544875 Change the requirements for pylint in wheel 79d9bdcec388b5b21b46fcb5a35d93d5b246ace2 Change Travis CI container to FreeIPA-owned 4f4b0ef61b9c9beb5d07db3e89a40d391fbaeaa3 travis: remove "fast" from "makecache fast"
Metadata Update from @stlaz: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @pvoborni: - Issue set to the milestone: FreeIPA 4.6.1
pylint2 and pylint3 tox envs are still broken in 4.6 branch:
************* Module ipalib.util lib/python3.6/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib') lib/python3.6/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install') lib/python3.6/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths') ----------------------------------- Your code has been rated at 9.99/10 ... ************* Module ipalib.util lib/python2.7/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib') lib/python2.7/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install') lib/python2.7/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths') ************* Module ipapython.ipautil lib/python2.7/site-packages/ipapython/ipautil.py:32: [W1648(bad-python3-import), ] Module moved in Python 3)
Metadata Update from @cheimes: - Issue status updated to: Open (was: Closed)
Metadata Update from @tkrizek: - Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)