servo/python
Gregory Szorc d27be52371 Find WPT files in Firefox repository
The Servo repository is now (mostly) vendored in the Firefox Mercurial
repository. For size and duplication reasons, the tests/wpt directory is
not included in the vendored copy.

This causes problems when running `mach` from the Firefox repository
because `mach` references pip requirements files and module search
paths from WPT.

This commit adds code to detect when Servo's mach is running from a
Firefox source tree and to resolve WPT paths to the Firefox location
if appropriate. This enables `mach` to "just work" when running
from the servo/ directory in the Firefox repository.

The file looked for to identify the Firefox repository is identical
to what Firefox's `mach` script uses.

A potential issue with using Firefox's WPT files is that they may be
different from those in the Servo repository and this could lead to
differences in behavior - possibly even an error when loading/running
`mach`. However, the behavior before this commit was that Servo's
`mach` never worked in the Firefox repository (due to missing WPT
files). And post-commit it does. So this seems like a "perfect is the
enemy of good" scenario.
2017-02-03 23:38:41 -08:00
..
servo Auto merge of #15138 - mdevlamynck:software-flag, r=jdm 2017-01-26 14:43:21 -08:00
tidy Tidy: Report invalid listed ignored directories and files 2017-01-18 21:51:56 +01:00
mach_bootstrap.py Find WPT files in Firefox repository 2017-02-03 23:38:41 -08:00
README.md Fix styling for Markdown headers. 2016-05-02 22:20:49 -04:00
requirements-salt.txt Add a Salt bootstrapper 2017-01-17 11:01:09 -05:00
requirements.txt Add a Salt bootstrapper 2017-01-17 11:01:09 -05:00
tox.ini Added tox.ini 2016-05-08 12:10:48 +02:00

This directory contains various Python modules used to support servo development.

servo

servo-specific python code e.g. implementations of mach commands. This is the canonical repository for this code.

tidy

servo-tidy is used to check licenses, line lengths, whitespace, flake8 on Python files, lock file versions, and more.