File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212project = sns (** pyproject ['project' ])
1313
1414def update_changelog_url ():
15-
1615 ver_tag = f'{ project .name } -{ project .version } '
1716 changelog_url = f'https://github.com/adamlui/python-utils/releases/tag/{ ver_tag } '
1817 log .data (f'Generated changelog URL: { changelog_url } ' )
19-
20- if not hasattr (project , 'urls' ):
21- log .info ('Creating [project.urls] section...' )
22- project .urls = {}
23-
2418 log .info (f"{ 'Updating' if 'Changelog' in project .urls else 'Adding new' } Changelog URL..." )
2519 project .urls ['Changelog' ] = changelog_url
26-
2720 pyproject ['project' ] = vars (project ) # update og dict for dumping
2821 with open (pyproject_path , 'wb' ) as file : tomli_w .dump (pyproject , file )
29-
3022 log .success (f'Bumped changelog URL ver tag to [{ ver_tag } ]!' )
3123
3224update_changelog_url ()
Original file line number Diff line number Diff line change 1212project = sns (** pyproject ['project' ])
1313
1414def update_changelog_url ():
15-
1615 ver_tag = f'{ project .name } -{ project .version } '
1716 changelog_url = f'https://github.com/adamlui/python-utils/releases/tag/{ ver_tag } '
1817 log .data (f'Generated changelog URL: { changelog_url } ' )
19-
20- if not hasattr (project , 'urls' ):
21- log .info ('Creating [project.urls] section...' )
22- project .urls = {}
23-
2418 log .info (f"{ 'Updating' if 'Changelog' in project .urls else 'Adding new' } Changelog URL..." )
2519 project .urls ['Changelog' ] = changelog_url
26-
2720 pyproject ['project' ] = vars (project ) # update og dict for dumping
2821 with open (pyproject_path , 'wb' ) as file : tomli_w .dump (pyproject , file )
29-
3022 log .success (f'Bumped changelog URL ver tag to [{ ver_tag } ]!' )
3123
3224update_changelog_url ()
You can’t perform that action at this time.
0 commit comments