pypa / packaging

Core utilities for Python packages
https://packaging.pypa.io/
Other
619 stars 248 forks source link

Modifying versions #659

Open hauntsaninja opened 1 year ago

hauntsaninja commented 1 year ago

I've sometimes had occasion to want to modify a version, for instance, to add or remove a local or dev version component. It would be nice to have a replace method that creates a copy of a Version with the changes you want.

I'm happy to open a PR!

pradyunsg commented 1 year ago

A PR would be welcome! :)

lhd-biosency commented 1 year ago

I have the same need to increment a version