Skip to content

Fails to read a configuration with long lines #4

@Carsten-Leue

Description

@Carsten-Leue

The parser fails when reading the following file:

[bumpversion]
current_version = 0.0.1
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-a(?P<pmr>\d+)(\.dev(?P<build>\d+))?)?
serialize = 
	{major}.{minor}.{patch}-a{pmr}.dev{build}
	{major}.{minor}.{patch}-a{pmr}
	{major}.{minor}.{patch}

[bumpversion:file:setup.py]

[bumpversion:file:test/__init__.py]

[bumpversion:file:hpha_synchronization/__init__.py]

[bumpversion:file:hpha_synchronization/docs/__init__.py]

[bumpversion:file:hpha_synchronization/_internal/__init__.py]

on the lines following the serialize key. The same file reads fine using the python https://docs.python.org/3/library/configparser.html package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions