summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-20Change README to markdown and move authors to AUTHORSWolfgang E. Sanyer
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-20Change tabs to spaces (using autopep8). Also, format repo using black.Wolfgang E. Sanyer
The following command was used to change the tabs to spaces: autopep8 --in-place --select=E101,E11,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E22,E224,E224,E226,E227,E228,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,W291,W293,W391 -r . And then black was run as `black .` on the entire tree Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-07-16equery: Remove leftovers from 'changes' removalMatt Turner
Closes: https://bugs.gentoo.org/796986 Fixes: bcb8158 ("equery: Remove 'changes' subcommand") Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-06-18equery.1: Fix spelling and typos in man pageNuno Silva
Closes: https://github.com/gentoo/gentoolkit/pull/10 Signed-off-by: Sam James <sam@gentoo.org>
2021-06-18ekeyword: fix typoPetr Vaněk
Signed-off-by: Petr Vaněk <pv@excello.cz> Closes: https://github.com/gentoo/gentoolkit/pull/12 Signed-off-by: Sam James <sam@gentoo.org>
2021-03-11bin: Fix type annotationsMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-03-01v0.5.1Matt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-02-24bin: Handle case of no KEYWORD removalsMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-01-04equery: Remove 'changes' subcommandMatt Turner
ChangeLogs have been gone from gentoo.git since the beginning, and Council agreed in 2016 to allow Infra to decide whether to distribute them through rsync, which they have decided not to do [1]. [1] https://projects.gentoo.org/council/meeting-logs/20160410-summary.txt Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-01-02gentoolkit: Remove gentoolkit.test.cmpMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-31bin: Add merge-driver-ekeywordMatt Turner
Since the KEYWORDS=... assignment is a single line, git struggles to handle conflicts. When rebasing a series of commits that modify the KEYWORDS=... it's usually easier to throw them away and reapply on the new tree than it is to manually handle conflicts during the rebase. git allows a 'merge driver' program to handle conflicts; this program handles conflicts in the KEYWORDS=... assignment. E.g., given an ebuild with these keywords: KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 x86" One developer drops the ~alpha keyword and pushes to gentoo.git, and another developer stabilizes hppa. Without this merge driver, git requires the second developer to manually resolve the conflict which is tedious and prone to mistakes when rebasing a long series of patches. With the custom merge driver, it automatically resolves the conflict. To use the merge driver, configure your gentoo.git as such: gentoo.git/.git/config: [merge "keywords"] name = KEYWORDS merge driver driver = merge-driver-ekeyword %O %A %B %P gentoo.git/.git/info/attributes: *.ebuild merge=keywords Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-28ekeyword: Use mock from unittestMatt Turner
Since we only support Python 3.6+. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20eclean: Remove unneeded __init__ to enable pytestMatt Turner
Prevented the unit test from running: pym/gentoolkit/test/eclean/distsupport.py:435: PytestCollectionWarning: cannot collect test class 'TestDisfiles' because it has a __init__ constructor (from: pym/gentoolkit/test/eclean/test_search.py) Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20ekeyword: Fix unit testMatt Turner
arch_status changed from a Dict[str] to Dict[Tuple[str, str]], but these bits of test data were not updated. Update the examples while we're here (e.g. arm64 is stable with stable profiles now). Fixes: 459cfba47d25 (ekeyword: Use now-common load_profile_data() from eshowkw) Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20ekeyword: Rename unit test so that it runsMatt Turner
unittests should be named test_*.py so that they are discoverable. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove unused sys importsMatt Turner
Reported by flake8. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove inherits from objectMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove Python < 3 version checksMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove $Header$Matt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove imports from __future__Matt Turner
gentoolkit supports only Python 3.6+ now, so these are not used. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-10-13metadata.py: Fix duplicated use flag text bug 748129Brian Dolbec
Regression from commit: 517581df206766 link: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=517581df206766fabf10273cde565e0a6dc62829 Gentoo bug: https://bugs.gentoo.org/748129 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2020-10-08metadata: Drop deprecated ElementTree methodsMikk Margus Möll
Closes: https://github.com/gentoo/gentoolkit/pull/11 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2020-06-08eclean --changed-deps: fix EAPI logic (bug 727596)Zac Medico
Use separate variables for binary package and corresponding ebuild EAPI values, since the ebuild EAPI may have changed. This avoids a possible InvalidAtom exception as reported in bug 727596. Bug: https://bugs.gentoo.org/727596 Signed-off-by: Zac Medico <zmedico@gentoo.org>
2020-04-24v0.5.0Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-24profile: Add initial support for arches.descMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-24profile: Update ~arch listMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-24ekeyword: Use now-common load_profile_data() from eshowkwMichał Górny
This also fixes 'all' to process all architectures using stable keywords and not just these having stable profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-24Disable testing on py27Michał Górny
sys-apps/portage is no longer installed for py27, and the tests use global installation. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-04-24Extract profile reading code from eshowkw, with tests from ekeywordMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-03-16euse: don't fail on repos missing use.descBen Kohler
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
2020-03-12v0.4.8Matt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-03-11eclean: Add option to delete binpkgs with changed depsMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-03-06eclean: Rewrite findPackages()Matt Turner
I found the original code to be nearly incomprehensible. Instead of populating a dict of potential binpkgs to remove and then removing from the to-be-removed list, just selectively add to-be-removed packages. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-02-19Cherry-pick v0.4.7Michał Górny
Accidentally failed to push it to master. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-02-14revdep-rebuild: encode Popen args as utf-8 bytes (bug 709610)Zac Medico
Prevent this Popen exception: UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 20: ordinal not in range(128) Bug: https://bugs.gentoo.org/709610#c0 Signed-off-by: Zac Medico <zmedico@gentoo.org>
2020-01-26tox: Update tested implementation listMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-26Modernize test assertionsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-26Pass raw strings for regexp to fix DeprecationWarningsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-26eshowkw: Add alpha to ~arch-onlyMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-02imlate: Dynamically calculate column width in reportMatt Turner
Also print categories on the line with the package name for much simpler consumption by external tools. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2019-12-10eclean: Fix typosMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2019-12-04eclean: Delete empty directoriesMatt Turner
Closes: https://bugs.gentoo.org/671592 Signed-off-by: Matt Turner <mattst88@gentoo.org>
2019-12-04eclean: Inline _sort_keys methodMatt Turner
The boilerplate for calling this method was larger than what it actually contained. Additionally I think this change will allow the loop to run on a generator rather than a full list. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2019-10-24ekeyword: fix for when main-repo != "gentoo"Michael Haubenwallner
Closes: https://bugs.gentoo.org/698256 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
2019-10-24ekeyword: fix for PrefixMichael Haubenwallner
Bug: https://bugs.gentoo.org/698256 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
2019-09-13eclean: tox fix: local variable 'e' is assigned to but never usedZac Medico
Signed-off-by: Zac Medico <zmedico@gentoo.org>
2019-08-18v0.4.6Zac Medico
Signed-off-by: Zac Medico <zmedico@gentoo.org>
2019-08-18glsa-check moved to portage repository (bug 463952)Zac Medico
This copy of glsa-check is no longer need since it has moved to the portage repository. Bug: https://bugs.gentoo.org/463952 Signed-off-by: Zac Medico <zmedico@gentoo.org>
2019-08-18revdep-rebuild: Fix DEFAULTS beeing modified when changing settingscvkbtzx
Closes: https://github.com/gentoo/gentoolkit/pull/4 Signed-off-by: Zac Medico <zmedico@gentoo.org>
2019-08-18revdep-rebuild: Fix pass_through_options to handle args containing spacescvkbtzx
Signed-off-by: Zac Medico <zmedico@gentoo.org>