Giter Club home page Giter Club logo

Comments (5)

peritus avatar peritus commented on July 20, 2024

Ouch. Yes, there should be the ability to safeguard against that.
I think the proposed solution mentioned in #41 (comment) would also address this, so that

search = MyProject=={current_version}
replace = MyProject=={new_version}

in the configuration makes sure that only lines matching "MyProject==" will be changed by bumpversion.

I think I will have time to address this (and the other issues that have been piling up) in the following weeks, but pull requests are always welcome.

Thanks for the report!

from bumpversion.

ionrock avatar ionrock commented on July 20, 2024

@peritus Thank you for the fast response!

I think that would work, but it would be best if that change were per-file, which you've outlined that already in #37.

I started looking at a patch and the tests were not passing. Would you be open to some refactoring in the test suite? I'll see what I can do and you can let me know if you hate it or not ;)

If there is a common workaround for this sort of thing you seen others use please let me know.

Thanks for bumpversion!

from bumpversion.

peritus avatar peritus commented on July 20, 2024

Sure! If you could make sure that each aspect has its own commit to simplify reviewing, that would be terrific!

from bumpversion.

peritus avatar peritus commented on July 20, 2024

This will be part of the upcoming version 0.5 — which you can install by running

sudo pip install https://github.com/peritus/bumpversion/archive/master.zip#egg=bumpversion-dev

I'd appreciate any testing before the release. Please note the new configuration format (documented in the README)

from bumpversion.

ionrock avatar ionrock commented on July 20, 2024

@peritus everything worked as expected. Thanks!

from bumpversion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.