Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCleanup tidy for external deps #10653
Conversation
- also update requriements "pyflakes" from 0.8 to 0.8.1 due to following issue
```
Traceback (most recent call last):
File "/Users/Askeing/software/servo/python/_virtualenv/bin/servo-tidy", line 5, in <module>
from pkg_resources import load_entry_point
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
@_call_aside
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
f(*args, **kwargs)
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in
_initialize_master_working_set
working_set = WorkingSet._build_master()
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
return cls._build_from_requirements(__requires__)
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in
_build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/Users/Askeing/software/servo/python/_virtualenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyflakes==0.8.1' distribution was not found and is required by servo-tidy
```
….lint" module
- and add clean folder into Makefile
highfive
commented
Apr 16, 2016
|
Heads up! This PR modifies the following files:
|
- it already move to "python/tidy/servo_tidy_tests/speclink.rs"
| returncode = lint.lint(files) | ||
| if returncode: | ||
| yield ("WPT Lint Tool", "", "lint error(s) in Web Platform Tests: exit status {0}".format(returncode)) | ||
| if os.path.isdir(wpt_working_dir): |
This comment has been minimized.
This comment has been minimized.
wafflespeanut
Apr 17, 2016
Member
Just being curious, why are we checking whether wpt_working_dir is a directory?
This comment has been minimized.
This comment has been minimized.
askeing
Apr 17, 2016
Author
Contributor
The #10639 (comment) has the requirement:
Don't attempt to import wpt tools.lint in https://github.com/servo/servo/blob/master/python/tidy/servo_tidy/tidy.py#L605 unless the tests/wpt/web-platform-tests directory exists in the current project.
I think this requirement is for external projects (which do not have wpt), if there is no wpt folder, then skip the tools.lint import.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
askeing
Apr 18, 2016
Author
Contributor
I just want to make sure the path exists and is a directory :P
Do I have to modify it to exists()?
This comment has been minimized.
This comment has been minimized.
|
r? @edunham |
|
Reviewed 1 of 3 files at r1, 1 of 3 files at r2, 5 of 5 files at r3. python/tidy/HISTORY.rst, line 6 [r4] (raw file): Comments from Reviewable |
|
@bors-servo r+ |
|
|
Cleanup tidy for external deps fix #10639 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10653) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Cleanup tidy for external deps fix #10639 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10653) <!-- Reviewable:end -->
|
|
askeing commentedApr 16, 2016
fix #10639
This change is