Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Oct 12, 2024
1 parent 40f5eb4 commit aa4f826
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions xcookie/builders/gitlab_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,19 @@ def make_purepy_ci_jobs(self):
body['stages'].append('deploy')
body['deploy/wheels'] = deploy_job

body_text = ruamel.yaml.round_trip_dump(body, Dumper=ruamel.yaml.RoundTripDumper)
# 0.17.32
# body_text = ruamel.yaml.round_trip_dump(body, Dumper=ruamel.yaml.RoundTripDumper)
# body = ruamel.yaml.round_trip_load(body_text)

body_text = Yaml.dumps(body)
body = Yaml.loads(body_text)

body = ruamel.yaml.round_trip_load(body_text)
body['stages'].yaml_set_start_comment('TEMPLATES')
# body.yaml_set_comment_before_after_key('stages', 'before test1 (top level)', after='before test2\n\n')
# body.yaml_add_eol_comment('STAGE COMMENT', key='stages')
body_text = ruamel.yaml.round_trip_dump(body, Dumper=ruamel.yaml.RoundTripDumper)

# body_text = ruamel.yaml.round_trip_dump(body, Dumper=ruamel.yaml.RoundTripDumper)
body_text = Yaml.dumps(body)

header = ub.codeblock(
'''
Expand Down

0 comments on commit aa4f826

Please sign in to comment.