Giter Club home page Giter Club logo

Comments (8)

peritus avatar peritus commented on August 20, 2024

Ok, that error is definitely misleading, sorry about that, I'll fix it.

However, you need to specify which part of the version to bump (in the standard configuration that's "major", "minor", "patch"), as in bumpversion [--options] patch to bump the last number.

from bumpversion.

peritus avatar peritus commented on August 20, 2024

Because I see current_version = 0.5.2.beta in your config:

At the moment bumpversion doesn't support parts (that's what I call the individual digits that are combined to the version number) that don't contain a number, so current_version = 0.5.2.beta1 might work (see these two lines

bumpversion/tests.py

Lines 222 to 223 in d9ee20e

'--parse', '(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(-(?P<prerel>[^\+]+))?(\+(?P<meta>.*))?',
'--serialize', '{major}.{minor}.{patch}-{prerel}+{meta}',
on how a configuration for 5-part version might look like).

I'm interested in your workflow (is it 0.5.1 -> 0.5.2.beta -> 0.5.2 -> ... ?) and to make it work in bumpversion, can you go into detail on that ?

from bumpversion.

peritus avatar peritus commented on August 20, 2024

Also, --config .bumpversion.cfg is the default, so, unless you want to use another config file, it should be safe omit.

from bumpversion.

twiecki avatar twiecki commented on August 20, 2024

Thanks for the prompt reply.

Yes, my workflow is 0.5.1 -> 0.5.2.beta -> 0.5.2.RC1 -> 0.5.2 -> ... Although now that I think of it I probably should be doing beta1.

Was patch required before? I suppose it's nice to just not specify the next version but just which part to bump.

from bumpversion.

twiecki avatar twiecki commented on August 20, 2024

OK, I tried bumpversion --new-version 0.5.2 patch but that changed the version number to patch?

from bumpversion.

peritus avatar peritus commented on August 20, 2024

Yes, I usually just use bumpversion patch alone, everything else is in the config file.

OK, I tried bumpversion --new-version 0.5.2 patch but that changed the version number to patch?

That is a bug then, I'll have to look into.

from bumpversion.

twiecki avatar twiecki commented on August 20, 2024

I also think:

  part                  Part of the version to be bumped.

In the help docs should list which arguments are possible and their behavior.

I now tried bumpversion patch and it bumped 0.5.2.beta to 0.5.3.

from bumpversion.

peritus avatar peritus commented on August 20, 2024

You're right, thanks! I'll get to that.

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.