summaryrefslogtreecommitdiff
path: root/pym
AgeCommit message (Collapse)Author
2012-12-22update 'svn' versions to 'git', not man pages with already set versions. Brian Dolbec
2012-12-22Add a blank line between pkgs in a query, bug 448190Brian Dolbec
2012-12-20equery: make more ROOT awareMike Frysinger
This at least fixes: belongs check depends files list size URL: https://bugs.gentoo.org/160815 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Paul Varner <fuzzyray@gentoo.org>
2012-12-19drop trailing whitespaceMike Frysinger
Should be no functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-11eclean/test_clean: remove unused test_test_support importW. Trevor King
2012-11-11test_cpv: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11equery/test_init: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11test_atom: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11eclean/test_search: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11test_helpers: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11test_keyword: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11test_query: fix test_main and mark so nosetests will ignore itW. Trevor King
2012-11-11test_syntax: fix test_main and mark so nosetests will ignore itW. Trevor King
* fix TestGentoolkitHelpers2 -> TestForSyntaxErrors * use unittest.TestLoader and TextTestRunner instead of test.test_support From the Python documentation [1]: The test package is meant for internal use by Python only. It is documented for the benefit of the core developers of Python. Any use of this package outside of Python's standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python. [1]: http://docs.python.org/2/library/test.html
2012-11-11cpv: define package_list in compare_strs doctestW. Trevor King
This is not much of a doctest, since we aren't using compare_strs() anywhere, but at least it doesn't error out. Note that comparisons have been reworked in Python 3 where cmp() has been removed.
2012-11-11cpv: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11dependencies: avoid Package-is-not-iterable in graph_reverse_depends doctestW. Trevor King
Dependency is a subclass of Query, so we need to initialize it with a CPV string, not a Package instance. The old doctest was raising: File ".../pym/gentoolkit/dependencies.py", line 202, in gentoolkit.dependencies.Dependencies.graph_reverse_depends Failed example: deptree = ffmpeg.graph_reverse_depends( only_direct=False, # Include indirect revdeps pkgset=installed) # from installed pkgset Exception raised: Traceback (most recent call last): File "/usr/lib/python3.2/doctest.py", line 1288, in __run compileflags, 1), test.globs) File "<doctest gentoolkit.dependencies.Dependencies.graph_reverse_depends[5]>", line 3, in <module> pkgset=installed) # from installed pkgset File ".../pym/gentoolkit/dependencies.py", line 237, in graph_reverse_depends pkgset = tuple(Dependencies(x) for x in pkgset) File ".../pym/gentoolkit/dependencies.py", line 237, in <genexpr> pkgset = tuple(Dependencies(x) for x in pkgset) File ".../pym/gentoolkit/dependencies.py", line 45, in __init__ Query.__init__(self, query) File "/home/wking/src/gentoolkit/pym/gentoolkit/query.py", line 51, in __init__ if not set(query).intersection(needed_chars): TypeError: 'Package' object is not iterable Also use ffmpeg-9999 (for better future-proofing) and update the length of the resulting deptree.
2012-11-11dependencies: update Dependencies doctest to use portage-9999W. Trevor King
2012-11-11helpers: update entry counts and version range in ChangeLog doctestW. Trevor King
2012-11-11helpers: update package counts in get_cpvs doctestW. Trevor King
2012-11-11helpers: convert get_cpvs output to a set before calculating len()W. Trevor King
This avoids "TypeError: object of type 'generator' has no len()".
2012-11-11helpers: use print() in ChangeLog doctest for Python 3 compatibilityW. Trevor King
Also update the expected portage.latest.
2012-11-11keyword: define keyword_list in compare_strs doctestW. Trevor King
This is not much of a doctest, since we aren't using compare_strs() anywhere, but at least it doesn't error out. Note that comparisons have been reworked in Python 3 where cmp() has been removed.
2012-11-11keyword: use Python 2/3-agnostic set notation in reduce_keywords doctestW. Trevor King
Python 2.7 prints sets as "set([1, 2])", but Python 3.2 prints them as "{1, 2}". Avoid having to chose by showing that the result of reduce_keywords() is a set, and then printing the elements in a list.
2012-11-11keyword: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11metadata: fix 'maintainer' -> 'maintainers' in module doctestW. Trevor King
2012-11-11metadata: add new _Upstream attributes in module doctestW. Trevor King
2012-11-11metadata: update gnome-print USE descriptionW. Trevor King
2012-11-11metadata: gourmet package no longer part of a herdW. Trevor King
2012-11-11metadata: use print() in PackageFormatter doctest for Python 3 compatibilityW. Trevor King
2012-11-11metadata: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11package: use portage-9999 in Package.environment doctestW. Trevor King
2012-11-11package: use portage-9999 (and define pkg) in Package.ebuild_path doctestW. Trevor King
2012-11-11package: use portage-9999 in module doctestW. Trevor King
It is more likely to stay current (and be masked and uninstalled) than a particular Portage release.
2012-11-11package: update PackageFormatter doctest to use QueryW. Trevor King
helpers.find_packages has been replaced by the query.Query class. Also temporarily turn off Portage colorization during the doctest, otherwise the CPV value is printed in green.
2012-11-11package: use print() in PackageFormatter doctest for Python 3 compatibilityW. Trevor King
2012-11-11package: change "f" -> "path" to avoid pylint C0103 (Invalid name "f")W. Trevor King
2012-11-11package: change "e" -> "error" to avoid pylint C0103 (Invalid name "e")W. Trevor King
2012-11-11package: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11package: wrap long lines to avoid pylint C0301W. Trevor King
2012-11-11helpers: remove unused "sys" importW. Trevor King
Pointed out by pylint: W0611: 29: Unused import sys
2012-11-11helpers: change "p" -> "path" to avoid pylint C0103 (Invalid name "p")W. Trevor King
2012-11-11helpers: wrap long lines to avoid pylint C0301W. Trevor King
2012-11-11helpers: use grep instead of vim in FileOwner doctestW. Trevor King
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.
2012-11-09Fix bug 381581 - revdep-rebuild unicode errorPaul Varner
Changed the function to use gentoolkit functions instead of reading the vardb directly.
2012-10-31eclean: Fix pkg sorting to work with Python3Paul Varner
2012-10-31eclean: sort pkg list shown to userMike Frysinger
This makes it much easier to scan through and pick out packages. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-10-21man page updates thanks to Francesco Turco. Update analyze and rebuild ↵Brian Dolbec
modules to use a new not_implemented() in the ModuleBase class.
2012-10-09Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo.Paul Varner
Testing on a Gentoo system showed no adverse affects with the change.
2012-10-06py 3.3 fix for bug 436934. Change the level parameter for the __import__() ↵Brian Dolbec
call.
2012-10-02Minor fix in rebuild (parsing options)Slawek