Git Product home page Git Product logo

versup's Issues

Add `prepatch`, `preminor`, and `premajor` support

these will add the rc.x to the end and increment the relevant version position also

  • 0.0.1 -> prepatch -> 0.0.2-rc.1
  • 0.0.1 -> preminor -> 0.1.0-rc.1
  • 0.0.1 -> premajor -> 1.0.0-rc.1

A prerelease would update the rc number only, and a new patch, minor, major would keep the version as is and drop the rc (and build if present?)

Option to not update a file except for release

In some cases (changelogs etc) users may not want to update a file with new versions when running a pre-release versup. In that case we'd only want to run the file update on release, patch, minor, major

Option "-h" doesn't work

It would be nice to be able to get the help with -h:

> versup -h
Usage: versup [OPTIONS] COMMAND [ARGS]...
Try 'versup --help' for help.

Error: no such option: -h

Command name incorrect when running python -m versup

When running the command via python -m, we get:

>>> python -m versup -h
Usage: __main__.py [OPTIONS] COMMAND [ARGS]...

This is because click default to sys.args[0] if the name is not explicitly given:

It would be great to update versup.command_line.main() to:

def main():
    cli(prog_name="versup")

Ask user for confirmation on branch

It would be great to ask user for confirmation if versup is being executed on a branch.

> version minor
You are tagging branch 'foo', continue? [Yn]

New config options need to be merged into the global config

Right now the global config is merged with the default config so that any new settings are present in the config. This does not change the default config on disk however.

Should the merge be written back to the main config, so that new settings are written to disk?

Improve documentation

Documentation needs to be fleshed out with more details on config settings and command line usage

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.