| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://github.com/gentoo/gentoolkit/pull/17
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Reported by flake8.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
| |
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
| |
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
| |
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
As of now, pylint checks return a metric ton of warnings, which tells us
that it hasn't been running lately. pylint is replaced by flake8 and its
continuous run will enventually be ensured by a CI running tox on this
project. The immediate goal, for now, is to have an easy command that
checks as much as possible, but that *passes* so that we don't litter
the project with more code that decrease quality.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add config in tox to run flake8 checks. For now, only "F*" errors are
checked (errors reported by pyflakes). pep8 style checks are ignored for
now.
This is accompanied by changes in the code that are necessary to silence
these errors. Most of them were about unused imports, but also unsed
referenced and even undefined ones (meaning that this code path was
broken, gotta increase test coverage).
This setup will replace pylint which reports way too many errors to be
usable (see next commit).
|
|
|
|
|
|
|
| |
This fixes the traceback when running equery changes with Python 2.7
X-Gentoo-bug: 589686
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=589686
|
|
|
|
|
|
| |
Uses io.open for Python 2 and built-in open for Python 3
All data from files is treated as Unicode and this should fix
most UnicodeDecodeErrors.
|
|
|
|
|
| |
The generalized file open call needs to look like:
with open(_unicode_encode(path, encoding=_encodings['fs'])) as open_file
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are using the following import from portage:
from portage import _encodings, _unicode_decode, _unicode_encode
A generalized call using the definitions from portage looks like:
with open(_unicode_encode(path), encoding=_encodings['fs']) as open_file
The portage code has been in place since 2013 and using the definitions
from portage ensures we maintain compatibility if portage changes.
All portage versions in the tree contain the above code.
|
|
|
|
|
|
|
| |
There were two issues in the code:
1. query.py was trying to treat regular expressions as CPVs
2. helpers.py get_cpv functions were applying the predicate to only
the CPs and not all of the CPVs
|
| |
|
| |
|
|
|
|
| |
This avoids "TypeError: object of type 'generator' has no len()".
|
|
|
|
| |
Also update the expected portage.latest.
|
|
|
|
|
| |
Pointed out by pylint:
W0611: 29: Unused import sys
|
| |
|
| |
|
|
|
|
|
|
|
| |
grep is in the base profile so the tester is more likely to have it
installed. The version may be off, but a test result with a different
grep version is still obviously working. An empty result from an
uninstalled file is not so comforting.
|
|
|
|
| |
actuall portage calls to take advantage of all 3 being lazyloaded. The assignemt in dbapi causes all 3 to be loaded, slowing down runs that do not need all 3
|
| |
|
|
|
|
|
|
|
| |
Removed the os.path.islink check since it oly returns true if the last
part of the path is a symbolic link. We want to add the realpath to the
list if it already doesn't exist in the list, since that indicates that
something in the path is a symbolic link.
|
|
|
|
|
|
| |
000ce49860b253ad6c917c5a58bc0ff31225134a for
use conditionals causing errors in equery results.
|
|
|
| |
set the reverse dependency lookup to use it.
|
|
|
|
|
|
| |
do not have a corresponding binary package built.
svn path=/trunk/gentoolkit/; revision=815
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=756
|
|
|
|
|
|
| |
rewrite of eclean.
svn path=/trunk/gentoolkit/; revision=755
|
|
|
|
|
|
| |
analyse utility to gentoolkit
svn path=/trunk/gentoolkit/; revision=751
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=737
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=731
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=721
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=703
|
|
|
|
| |
svn path=/trunk/gentoolkit/; revision=659
|
|
gentoolkit-dev, and deprecated. Import djanderson's work on the gentoolkit library and equery
svn path=/trunk/gentoolkit/; revision=589
|