bump


Namebump JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/di/bump
SummaryBumps package version numbers
upload_time2021-03-18 01:57:05
maintainer
docs_urlNone
authorMark Steve Samson
requires_python
licenseMIT
keywords bump increment package version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            bump
====

Bumps package versions.

Example
=======

By default, running ``bump`` in a directory with a ``setup.py`` will bump the
"patch" number in place::

  $ bump
  1.0.1
  $ git diff setup.py
  ─────────────────────────────────────────────────
  modified: setup.py
  ─────────────────────────────────────────────────
  @ setup.py:6 @ from setuptools import setup

  setup(
      name='bump',
  -    version='1.0.0',
  +    version='1.0.1',
      description='Bumps package version numbers',
      long_description=open('README.rst').read(),
      license='MIT',

Conveniently ``bump`` will also return the new version number, so you can use
it after running the command, for example::

  $ export VERSION=`bump`
  $ echo "The new version is $VERSION"
  The new version is 1.0.1

Options
=======

The ``bump`` command can also bump the major or minor version numbers, or set
the pre-release identifier or local version segment::

  $ bump --help
  Usage: bump [OPTIONS] [INPUT] [OUTPUT]

  Options:
    -M, --major     Bump major number. Ex.: 1.2.3 -> 2.2.3
    -m, --minor     Bump minor number. Ex.: 1.2.3 -> 1.3.3
    -p, --patch     Bump patch number. Ex.: 1.2.3 -> 1.2.4
    -r, --reset     Reset subversions. Ex.: Major bump from 1.2.3 will be 2.0.0
                    instead of 2.2.3
    --pre TEXT      Set the pre-release identifier
    --local TEXT    Set the local version segment
    --canonicalize  Canonicalize the new version
    --help          Show this message and exit.

The `--reset` option should be used alongside with minor or major bump.

You can configure these options by setting them in a ``.bump`` or ``setup.cfg``
configuration file as well, so you don't have to specify them every time::

  $ cat .bump
  [bump]
  input = some_directory/__file__.py
  minor = true
  patch = false
  reset = true



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/di/bump",
    "name": "bump",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "bump increment package version",
    "author": "Mark Steve Samson",
    "author_email": "hello@marksteve.com",
    "download_url": "https://files.pythonhosted.org/packages/91/33/4a81e40d09a5c18a3f21a08e421355a086864cd62d2299f3cee2697d3d20/bump-1.3.0.tar.gz",
    "platform": "",
    "description": "bump\n====\n\nBumps package versions.\n\nExample\n=======\n\nBy default, running ``bump`` in a directory with a ``setup.py`` will bump the\n\"patch\" number in place::\n\n  $ bump\n  1.0.1\n  $ git diff setup.py\n  \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  modified: setup.py\n  \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  @ setup.py:6 @ from setuptools import setup\n\n  setup(\n      name='bump',\n  -    version='1.0.0',\n  +    version='1.0.1',\n      description='Bumps package version numbers',\n      long_description=open('README.rst').read(),\n      license='MIT',\n\nConveniently ``bump`` will also return the new version number, so you can use\nit after running the command, for example::\n\n  $ export VERSION=`bump`\n  $ echo \"The new version is $VERSION\"\n  The new version is 1.0.1\n\nOptions\n=======\n\nThe ``bump`` command can also bump the major or minor version numbers, or set\nthe pre-release identifier or local version segment::\n\n  $ bump --help\n  Usage: bump [OPTIONS] [INPUT] [OUTPUT]\n\n  Options:\n    -M, --major     Bump major number. Ex.: 1.2.3 -> 2.2.3\n    -m, --minor     Bump minor number. Ex.: 1.2.3 -> 1.3.3\n    -p, --patch     Bump patch number. Ex.: 1.2.3 -> 1.2.4\n    -r, --reset     Reset subversions. Ex.: Major bump from 1.2.3 will be 2.0.0\n                    instead of 2.2.3\n    --pre TEXT      Set the pre-release identifier\n    --local TEXT    Set the local version segment\n    --canonicalize  Canonicalize the new version\n    --help          Show this message and exit.\n\nThe `--reset` option should be used alongside with minor or major bump.\n\nYou can configure these options by setting them in a ``.bump`` or ``setup.cfg``\nconfiguration file as well, so you don't have to specify them every time::\n\n  $ cat .bump\n  [bump]\n  input = some_directory/__file__.py\n  minor = true\n  patch = false\n  reset = true\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Bumps package version numbers",
    "version": "1.3.0",
    "split_keywords": [
        "bump",
        "increment",
        "package",
        "version"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "27aa294e884df06d34baaa69d3d7d713",
                "sha256": "c6b070a94fb1722b8daaff3ef3c5c3bf2e1de5f3fb361a03811464c7a2474728"
            },
            "downloads": -1,
            "filename": "bump-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "27aa294e884df06d34baaa69d3d7d713",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3833,
            "upload_time": "2021-03-18T01:57:04",
            "upload_time_iso_8601": "2021-03-18T01:57:04.853026Z",
            "url": "https://files.pythonhosted.org/packages/ea/16/4d54cdab78c9bf629eeb5d491cfc8d40bad15b8994b8fb769f5323058303/bump-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "487be62510160ed6589d9608a73161f8",
                "sha256": "33084433ef9994222b29a79241e742b931195812e2e625eb47b20527dc91f1f1"
            },
            "downloads": -1,
            "filename": "bump-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "487be62510160ed6589d9608a73161f8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3822,
            "upload_time": "2021-03-18T01:57:05",
            "upload_time_iso_8601": "2021-03-18T01:57:05.944395Z",
            "url": "https://files.pythonhosted.org/packages/91/33/4a81e40d09a5c18a3f21a08e421355a086864cd62d2299f3cee2697d3d20/bump-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-03-18 01:57:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "di",
    "error": "Could not fetch GitHub repository",
    "lcname": "bump"
}
        
Elapsed time: 0.25366s