Skip to content

Commit 5596727

Browse files
committed
Deleted unneeded create project.urls
1 parent 9807257 commit 5596727

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

remove-json-keys/utils/bump.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,13 @@
1212
project = sns(**pyproject['project'])
1313

1414
def 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

3224
update_changelog_url()

translate-messages/utils/bump.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,13 @@
1212
project = sns(**pyproject['project'])
1313

1414
def 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

3224
update_changelog_url()

0 commit comments

Comments
 (0)