Skip to content

Commit

Permalink
changelog: ignore packages without version.
Browse files Browse the repository at this point in the history
This happens for lines with an '=' like this:

[versionannotations:python27]
towncrier =
    18.6.0 does not work on Python 2, see twisted/towncrier#121
  • Loading branch information
mauritsvanrees committed Aug 21, 2019
1 parent 72e6620 commit c6142c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plone/releaser/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ def pull_versions(version_number):
if line and not (line.startswith(u"#") or line.startswith(u"[")):
try:
package, version = line.split(u"=")
version = LooseVersion(version)
except ValueError:
pass
else:
package_versions[package] = version
continue
if not version:
# May be a line from versionannotation
continue
version = LooseVersion(version)
package_versions[package] = version
print("Parsed {0}".format(url))
return package_versions

Expand Down

0 comments on commit c6142c3

Please sign in to comment.