aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Test python 3.13Zac Medico2024-01-111-1/+2
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox.ini: pass posargs to pytestSam James2023-11-111-1/+1
| | | | | Closes: https://github.com/gentoo/portage/pull/1179 Signed-off-by: Sam James <sam@gentoo.org>
* tox.ini: fix pytest-xdist typoSam James2023-11-111-1/+1
| | | | | | Thanks to radhermit for spotting. Signed-off-by: Sam James <sam@gentoo.org>
* tox: Use epytest-style options for pytest, including xdistSam James2023-10-301-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Drop custom test runner bits in favour of pytestJames Le Cuirot2023-08-021-1/+1
| | | | | Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* Migrate from setuptools to Meson and meson-pythonJames Le Cuirot2023-08-021-1/+1
| | | | | | | | | | | This makes Portage PEP 517 compliant. When building via meson-python, the man pages and logrotate config are no longer included as there seems little point. Bug: https://bugs.gentoo.org/910035 Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* Increase minimum Python version from Python 3.6/3.7 -> Python 3.9Sam James2023-07-261-3/+1
| | | | | | | | | | We don't seem to have been consistent as to whether it was 3.6 or 3.7, but we weren't testing it consistently anyway. It feels too soon to go up to 3.10 unfortunately, but 3.6/3.7 are EOL and 3.8 is EOL next year, so let's do 3.9. Signed-off-by: Sam James <sam@gentoo.org>
* tests(tox): added pytest dependencyDavid Palao2023-05-261-0/+2
| | | | | Signed-off-by: David Palao <david.palao@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* tox: add setuptoolsSam James2023-05-231-0/+1
| | | | | | Needed for Python 3.12. Signed-off-by: Sam James <sam@gentoo.org>
* actions: move pylint job into lint.ymlOskari Pirhonen2023-03-231-9/+15
| | | | | | | | | Enable running the pylint job outside of just pushes or PR's to master. Don't run pylint as part of the CI/build job. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Closes: https://github.com/gentoo/portage/pull/1014 Signed-off-by: Sam James <sam@gentoo.org>
* checksum: drop STREEBOG{256,512} & pygost supportSam James2023-03-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For STREEBOG{256,512}, we had three options that we "supported": 1. using pygost; pygost is unpackaged in Gentoo and appears to, as of March 2023, been yanked from pypi too. Hence not only can we test it on the distribution where we do our development (Gentoo), but we also can't acquire it for CI easily either. 2. using pygcrypt; No longer in Gentoo and the codepath for this has been disabled since 2017(!) because of https://bugs.gentoo.org/615620. 3. a slow fallback implementation. This is not something we can rely on anyway, but this is especially wrong given the issues we've had recently with WHIRLPOOL. See https://bugs.gentoo.org/885909. As for whether we should support STREEBOG at all: - Per above, we don't have a decent implementation for it available. - We're not testing it very well. - Jugging obscure hash algorithms has become a pain because some of them have ended up being marked "legacy" or removed from OpenSSL by default. - I don't think we should have hash algorithms supported just for the sake of it. We're not in the business of supporting every single hash algorithm that a library with Python bindings out there provides. Bug: https://bugs.gentoo.org/597736 Bug: https://bugs.gentoo.org/615620 Bug: https://bugs.gentoo.org/885909 Bug: https://bugs.gentoo.org/888884 Signed-off-by: Sam James <sam@gentoo.org>
* tox: add ./run-pylint to allowlist_externalsMike Gilbert2022-12-231-0/+2
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Add script to call pylint on all python filesMike Gilbert2022-06-061-1/+1
| | | | | | | | | | This gives us a simple way to call pylint from tox.ini. Our previous hack would call pylint on non-python files (shell scripts), and only went unnoticed because we have most errors disabled in pylintrc. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* tox.ini: fixup Python 3.11 envSam James2022-05-191-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* */*: Python 3.6 is EOL; raise min supported to Python 3.7Sam James2022-05-191-2/+1
| | | | | | | EOL since 2021-12-23 and indeed isn't in gentoo.git anymore either since a few months ago. Signed-off-by: Sam James <sam@gentoo.org>
* tox.ini: drop lxml depSam James2022-05-191-1/+0
| | | | | | | | | | Only needed for repoman. Hurrah! (Noticed as it fails to build w/ Py 3.11) Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/portage/pull/831 Signed-off-by: Sam James <sam@gentoo.org>
* tox.ini, .github: test on available Python 3.11 versionsSam James2022-05-191-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* repoman: RemoveMatt Turner2022-05-021-2/+1
| | | | | | | | RepoMan sez: So long and thanks for all the fish! I'll be enjoying my retirement now. Haven't I done enough to deserve that? Bug: https://bugs.gentoo.org/835013 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* tox: Do not run pylint on pypy3Michał Górny2021-08-071-8/+8
| | | | | | pylint seems to be broken on PyPy3 and causes the CI to fail. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ci: Test using the newest version of PyPy3.7Michał Górny2021-08-071-1/+1
| | | | | | | Do not bind to old version of PyPy3.7, also fix actually running tests via CI. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ci: upgrade to pypy-3.7-v7.3.3Zac Medico2021-02-211-1/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox.ini: fix pylint commandZac Medico2021-01-181-1/+1
| | | | | | | The previous command did not work correctly due to quirks of the pylint.utils.expand_modules function. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* ci: enable repoman testsZac Medico2021-01-021-1/+1
| | | | | Bug: https://bugs.gentoo.org/763045 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* .travis.yml: convert to github actionZac Medico2021-01-011-0/+9
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Test with Python 3.10Manuel Rüger2020-12-301-2/+2
| | | | | | Closes: https://github.com/gentoo/portage/pull/649 Signed-off-by: Manuel Rüger <manuel@rueg.eu> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox: call pylint for whole repoZac Medico2020-08-041-1/+1
| | | | | | | In addition to checking the whole repo, this fixes the import-error check. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox: add pylintZac Medico2020-08-031-0/+2
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* travis.yml: drop python 2.7 (bug 731114)Zac Medico2020-07-061-4/+2
| | | | | | | | | It should be pretty safe to drop support for python2.7 at this point. Bug: https://bugs.gentoo.org/731114 Reviewed-by: Brian Dolbec <dolsen@gentoo.org> Reviewed-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add python3.9 supportManuel Rüger2020-03-011-2/+2
| | | | | Closes: https://github.com/gentoo/portage/pull/515 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* travis.yml: drop pypy and python 3.5Zac Medico2020-01-041-4/+4
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add python-3.8, drop python-3.4 from testingManuel Rüger2019-10-151-5/+4
| | | | Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
* tox.ini: py34: lxml<4.4.0Zac Medico2019-08-011-1/+2
| | | | | | lxml-4.4.0 does not support py34. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Enable python3.7 testingManuel Rüger2018-11-251-1/+1
| | | | | | | | Reflect recent python versions in test scripts Closes: https://github.com/gentoo/portage/pull/383 Signed-off-by: Manuel Rüger <mrueg@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add a tox.ini to support running tests via toxMichał Górny2018-08-011-0/+16
tox is the common Pythonic tool for running tests against multiple interpreters. It integrates well with virtualenv, making testing trivial on practically any system. Add a tox.ini file so users can take advantage of it. Reviewed-by: Zac Medico <zmedico@gentoo.org>