Giter Club home page Giter Club logo

Comments (7)

peritus avatar peritus commented on August 20, 2024

Different example, but this is how the config for this could look like:

[bumpversion]
commit = True
tag = True

[file:setup.cfg]
serialize =
  {major}.{minor}.{patch}

[file:README.txt]
serialize =
  {major}.{minor}
  {major}.{minor}.{patch}

[file:BUILDNUMBER]
serialize =
  {major}.{minor}.{patch}+{$USER}+${BUILDNUMBER}

This could supersede the files = option, that would then need to be deprecated eventually.

Also, config files should be migrated automatically.

from bumpversion.

fizyk avatar fizyk commented on August 20, 2024

It would be good to also be able to define what should get converted into version number during the process per file.

Eg. I'd like to replace 'current version' header in my CHANGELOG.rst file with version number, and not the previous version with new one.

from bumpversion.

peritus avatar peritus commented on August 20, 2024

@fizyk Yes, that's indeed a desirable feature! Could you open another issue for that, because I feel this can be implemented independently of per-file config that is discussed here.

from bumpversion.

fizyk avatar fizyk commented on August 20, 2024

@peritus done: #41

from bumpversion.

BlaineAtAffirm avatar BlaineAtAffirm commented on August 20, 2024

@peritus From #42. I don't think this pull request would solve the problem I was trying to solve with #42 because I want a very minimal installation. IE no extra config files unless absolutely necessary . I'd prefer command line only.

from bumpversion.

peritus avatar peritus commented on August 20, 2024

Implemented, will be part of v0.5.0

from bumpversion.

peritus avatar peritus commented on August 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.

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.