Convert tidy to a non-egg Python package

It seems that servo-tidy is only used by webrender in my GitHub
searches. WebRender could simply use `rustfmt` and the tidy on pypi
hasn't been updated since 2018. Converting tidy to a normal Python
package removes the maintenance burden of continually fixing the easy
install configuration.

Fixes #29094.
Fixes #29334.
This commit is contained in:
Martin Robinson 2023-06-15 12:34:27 +02:00
parent fa266abd29
commit 81433a8684
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
54 changed files with 68 additions and 266 deletions

View file

@ -31,14 +31,12 @@ from mach.decorators import (
CommandProvider,
Command,
)
import tidy
from servo_tidy import tidy
from servo.command_base import (
CommandBase,
call, check_call, check_output,
)
from servo_tidy_tests import test_tidy
from servo.util import delete
from distutils.dir_util import copy_tree
@ -298,7 +296,7 @@ class MachCommands(CommandBase):
help="Only handle files in the stylo tree")
def test_tidy(self, all_files, no_progress, self_test, stylo, force_cpp=False, no_wpt=False):
if self_test:
return test_tidy.do_tests()
return tidy.do_tests()
else:
if no_wpt:
manifest_dirty = False