gecko/python
Gregory Szorc 2a0fba8f69 Bug 1168607 - Use mozpack Finders for reading moz.build files; r=glandium
Sometimes moz.build data may not come from the local filesystem. To
support defining moz.build data in other backing stores, we switch
moz.build reading to use mozpack's *Finder classes for I/O.

The use of a FileFinder bound to / is sub-optimal. We should ideally
be creating a finder bound to topsrcdir. However, doing this would
require refactoring a lot of path handling in the reader, as that code
makes many assumptions that paths are absolute. This would be excellent
follow-up work.

While I was here, I cleaned up some linter warnings for unused imports.

On my machine, this commit results in a slight slowdown of moz.build
reading. Before, `mach build-backend` was consistently reporting 1.99s
for reading 2,572 moz.build files. After, it is consistently reporting
2.07s, an increase of 4%. This is likely due to a) function call
overhead b) the cost of instantiating a few thousand File instances
c) FileFinder performing an os.path.exists() before returning File
instances. I believe the regression is tolerable.
2015-06-09 18:16:35 -07:00
..
bitstring
blessings
compare-locales Bug 1165906 - Add docs for l10n to the tree. r=gps 2015-06-01 17:13:44 +02:00
configobj
eme Bug 1139125 - Add Windows 64-bit support and certificate chain support to Adobe EME voucher tool. r=ted 2015-05-15 15:26:52 +12:00
jsmin
lldbutils Bug 1151349 - Make lldb ns(Int)Region summary handle the numRects==0 case. r=jrmuizel 2015-04-05 14:06:43 -04:00
mach Bug 1163112 - [mach core] Consolidate functionality between Main._run and Registrar.dispatch, r=gps 2015-05-08 17:03:15 -04:00
mock-1.0.0
mozboot Bug 1165422 - Bump mach bootstrap versions for SDK 22. r?nalexander 2015-06-04 10:53:24 -07:00
mozbuild Bug 1168607 - Use mozpack Finders for reading moz.build files; r=glandium 2015-06-09 18:16:35 -07:00
mozversioncontrol/mozversioncontrol Bug 1128586 - Properly look for Mercurial version; r=RyanVM 2015-04-27 10:43:25 -07:00
psutil
pyasn1
pyasn1-modules bug 1166976 - add pyasn1-modules python library r=ted,gerv 2015-05-20 16:33:23 -07:00
pystache
pyyaml
redo
requests
rsa bug 1166976 - add Python-RSA python library r=ted,gerv 2015-05-20 16:34:03 -07:00
virtualenv
which
mach_commands.py Bug 1147283 - Replace mozpack.path with mozpath. r=mshal 2015-03-27 08:13:16 +09:00
moz.build Bug 910660 - Add a test for the unpacker code. r=gps 2015-03-24 09:10:32 +09:00
README

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243

## pyyaml | pystache

Used in taskcluster related mach commands to update download from github
and remove .git and tests.

Then run tests in taskcluster/tests/