Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
parser - Remove namespacing and subparts. #705
Conversation
|
Should this change be broadcast to the mailing list prior to landing so that our growing community of remote parts authors and users are aware of the changes? |
|
retest this please |
josepht
referenced this pull request
in Ubuntu/snapcraft-desktop-helpers
Aug 10, 2016
Merged
Update for pending sub-parts namespacing removal. #5
sergiusens
reviewed
Aug 16, 2016
| - return | ||
| + parts = data.get('parts', []) | ||
| + for part_name in parts: | ||
| + if part_name is not None and part_name in master_parts_list: |
sergiusens
Aug 16, 2016
Collaborator
this would be easier to read
if part_name and part_name in master_parts_list:
sergiusens
reviewed
Aug 16, 2016
| + self.assertEqual(2, _get_part_list_count()) | ||
| + | ||
| + part1 = _get_part('curl/a') | ||
| + self.assertTrue(part1 is not None) |
sergiusens
reviewed
Aug 16, 2016
| + self.assertTrue(part1 is not None) | ||
| + | ||
| + part2 = _get_part('curl-a') | ||
| + self.assertTrue(part2 is not None) |
|
I assume this part of the comment is no longer valid? |
|
@sergiusens thanks for catching that. I've removed it from the PR comment. |
josepht
added some commits
Jul 28, 2016
sergiusens
reviewed
Aug 22, 2016
| + for part in entry_parts: | ||
| + if '/' in part: | ||
| + logger.warning( | ||
| + 'A "/" in a part name is deprecated and will be removed') |
sergiusens
Aug 22, 2016
Collaborator
Maybe
DEPRECATED: Found a "/" in the name of the {!r} part.format(part_name)
sergiusens
reviewed
Aug 22, 2016
| after_parts = set() | ||
| parts_list = {} | ||
| - for part in subparts: | ||
| + for part in entry_parts: |
sergiusens
reviewed
Aug 22, 2016
| @@ -138,12 +161,8 @@ class FakePartsWikiOriginRequestHandler(BaseHTTPRequestHandler): | ||
| def do_GET(self): | ||
| logger.debug('Handling getting part origin') | ||
| - if self.headers.get('If-None-Match') == '1111': |
josepht
Aug 22, 2016
Contributor
This is only for the parts wiki origin tests not the remote parts. I copied it over when I created these fake servers and forgot to remove that line.
sergiusens
reviewed
Aug 22, 2016
| @@ -183,6 +183,9 @@ def __init__(self, parts_data, project_options, validator, build_tools, | ||
| def _process_parts(self): | ||
| for part_name in self._parts_data: | ||
| + if '/' in part_name: | ||
| + logger.warning( | ||
| + 'A "/" in a part name is deprecated and will be removed') |
|
@elopio want to take a look at this one too? |
josepht
added some commits
Aug 22, 2016
elopio
reviewed
Aug 22, 2016
| * description - A brief description of the part. | ||
| + * parts - A YAML list of other parts from the snapcraft.yaml that are needed. |
elopio
reviewed
Aug 22, 2016
| @@ -63,7 +63,6 @@ class WikiError(Exception): | ||
| logger = logging.getLogger(__name__) | ||
| -PART_NAMESPACE_SEP = '/' |
elopio
reviewed
Aug 22, 2016
| @@ -189,6 +189,10 @@ def _remote_parts(self): | ||
| def _process_parts(self): | ||
| for part_name in self._parts_data: | ||
| + m = 'DEPRECATED: Found a "/" in the name of the {!r} part'.format( | ||
| + part_name) |
|
lgtm. Just two nits, and +1 |
|
I've updated @elopio's two nits. |
|
retest this please |
kyrofa
reviewed
Aug 23, 2016
| + exception = self.assertRaises( | ||
| + subprocess.CalledProcessError, | ||
| + subprocess.check_call, args, stderr=subprocess.DEVNULL, | ||
| + stdout=subprocess.DEVNULL) |
kyrofa
reviewed
Aug 23, 2016
| + exception = self.assertRaises( | ||
| + subprocess.CalledProcessError, | ||
| + subprocess.check_call, args, stderr=subprocess.DEVNULL, | ||
| + stdout=subprocess.DEVNULL) |
|
I had a few nits, but you already fixed them during review, so while I confess a lack of familiarity with the parser that made the review somewhat superficial, |
|
|
josepht commentedAug 1, 2016
•
Edited 1 time
-
josepht
Aug 16, 2016
other parts
LP:#1606933
Signed-off-by: Joe Talbott joe.talbott@ubuntu.com