Skip to content

Discuss: How to avoid rewriting the full config file #185

@florisla

Description

@florisla

I'm not a fan of rewriting config files.

Feedback we had in various issues shows it's

  • ugly (it moves sections around, can affect newlines and whitespace)
  • inconvenient (it introduces source control changes in places where it should not)
  • dangerous (it drops comments!)
  • probably unnecessary

See for example #62, #83, #87, #90, #94, #161, #163, #169, #201, #207, #217, #228.
How are we going to solve this?
Various things we can do:

  1. Update the version in the config file, but don't rewrite the whole file.
  2. Rely on setup.cfg version.
  3. Rely on the version found in the first bumpversion:file: section.
  4. Don't update the config file unless the user configures bump2version to do it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions