aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2023-11-30Cleanup requirements & tox config, update pylintHEADmasterGwenael Lambrouin1-9/+4
- remove useless Python packages - make the purpose of each requirements.txt file explicit - don't overlap between requirements.txt files - fix requirements so that the "new" pip dependency resolver (enabled by default since pip 20.3) work. Consequently, it is not necessary to pin pip version to 20.2.4 and we can drop tox-pip-version - remove unused tox environments - skip the installation of nfvbench in the tox environments where this is not necessary - update pylint 2.10.2 => 2.15.9 (that was necessary to fix some requirement conflicts): - disable some of new checkers: consider-using-f-string,consider-using-generator,unnecessary-lambda-assignment,implicit-str-concat,global-variable-not-assigned - remove many obsolete checkers from the disable list - apply a simple refactor suggestion in nfvbench code - upgrade to Python 3.8 some remaining references to Python 3.6 Change-Id: I55c0fb144b9199681962f396582590aba89ed02c Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
2023-01-06tox: fix testing issues after VM buildGwenael Lambrouin1-2/+2
When the traffic generator VM is built with option -s (use local nfvbench code), the code and the unit test files are copied to nfvbenchvm/dib/elements/nfvbenchvm/static/opt/nfvbench. This can lead to two problems: 1) if pytest is invoked after that, the test collection will fail because of duplicated test files; 2) if flake8 is invoked after that, the same files will be checked twice. To fix this this issue that can occur on a developper's machine, we tell pytest to look for test files in the test/ directory rather than everywhere. This is fine because test/ is the base directory for all test files. Similarly, we tell flake8 to skip the nfvbenchvm/ directory. Change-Id: Idb7f62828db4290f16221bb72bd9c6d5d958f649 Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
2022-12-15Update to py38Cédric Ollivier1-11/+17
py38 is the oldest py version support vs Ubuntu 22.04 python third-party. It updates requirements to yoga too. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I9d39f3600a4d0c432b7caf2f0b2bd51554e12318
2021-07-28NFVBENCH-216 Fix broken flake8 tests in CIGwenael Lambrouin1-1/+21
- remove version constraints on the "hacking" python package (flake8 plugin that enforces openstack coding style) because this was the root cause holding flake8 in the past. - require flake8>=3.3.0 to have python 3.6 support - ignore all the new errors introduced by newer versions of the tools. The point here is to have flake8 back with equal functionality. If wanted, some of the new error codes could be re-enabled, but this would require to fix the code and could lead to accidental regressions. - align minimum package version numbers in requirements-dev.txt and test-requirements.txt Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com> Change-Id: I2e85aded58f1b2b9b5e750dba66ac68b13e150a5
2021-07-28tox: fix docs-linkcheck behind a proxyGwenael Lambrouin1-0/+1
Change-Id: I3718f3276f145a64e97968065512fe9c1f7cb91f Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
2021-01-05NFVBENCH-195: Work around a fatal error encountered with the latest pip ↵Pierrick Louin1-0/+1
release, building the container. Signed-off-by: Pierrick Louin <pierrick.louin@orange.com> Change-Id: I7dbfa076360be0c62a1b9893070f059dc2566842
2019-12-09NFVBENCH-153 Add support for python34.0.0Michael S. Pedersen1-2/+10
JIRA: NFVBENCH-153 Done using 2to3-3.6 with additional changes to fix data parsing and testing (tox) Signed-off-by: Michael S. Pedersen <michael.soelvkaer@gmail.com> Change-Id: I242902f800da543d780507828c9bd1fbf409da6d
2018-10-25Local Documentation BuildsAric Gardner1-4/+12
This adds configuration for performing local documentation builds with the following simple command: tox -e docs This patch is part of our documentation effort to Move away from submodules https://docs.opnfv.org/en/latest/how-to-use-docs/local-build-transition.html Once merged docs will be viewable at opnfv-nfvbench.readthedocs.io Change-Id: I7c877847ec23c4cfc44ff7f106ed2acc65688a41 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2018-04-09[NFVBENCH-83] Add option to display status and to cleanupahothan1-1/+1
Change-Id: If135fedee4e5ee9226a262800917c4c35bc83bc7 Signed-off-by: ahothan <ahothan@cisco.com>
2017-12-21[NFVBENCH-59] Add Unit Testing of the NDR/PDR convergence algorithm using ↵ahothan1-1/+1
the dummy traffic gen [NFVBENCH-60] Fix pylint warnings Change-Id: I72deec060bf25774d1be33eaeefc74b42a576483 Signed-off-by: ahothan <ahothan@cisco.com>
2017-10-16NFVBENCH-40 Add pylint to toxKerim Gokarslan1-1/+4
Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
2017-09-19NFVBENCH-28 Set result values for NDR/PDR if they cannot be found within the ↵Kerim Gokarslan1-2/+2
given epsilon Change-Id: Id8019c7f052c2b189f3ab6e39377f65fe00d9fee Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
2017-09-16Run tox at top levelahothan1-1/+0
Change-Id: I3e72377554568020bd4730aaa4cfaf3294128a2e Signed-off-by: ahothan <ahothan@cisco.com>
2017-07-31Initial code drop from Cisco1.0.0ahothan1-0/+43
Change-Id: Ie2993886dc8e95c5f73ccdb871add8b96ffcc849 Signed-off-by: ahothan <ahothan@cisco.com>