{
"info": {
"author": "Fabian Kochem",
"author_email": "UNKNOWN",
"bugtrack_url": null,
"classifiers": [],
"description": "============\nversionbump\n============\n\n.. image:: https://travis-ci.org/vortec/versionbump.svg?branch=master\n :target: https://travis-ci.org/vortec/versionbump\n :alt: Travis CI\n\n.. image:: https://landscape.io/github/vortec/versionbump/master/landscape.svg?style=flat\n :target: https://landscape.io/github/vortec/versionbump/master\n :alt: Code Health\n\nHelper tool to generate version strings based on `semantic versioning `_ rules. It provides a shell command which you can use in bash scripts and comes with Python classes which you can integrate in your code.\n\n\nInstallation\n============\n\n::\n\n pip install versionbump\n\n\nUsage\n=====\n\n::\n\n usage: versionbump [-h] -c CURRENT [-q] [-i]\n {major,minor,patch,pre} [file [file ...]]\n\nArguments\n+++++++++\n- ``-c`` / ``--current``: Assume current version. (required)\n- ``-l`` / ``--label``: Pre-release label.\n- ``-h`` / ``--help``: Print help text and exit.\n- ``-q`` / ``--quiet``: Don't write anything to stdout.\n- ``-i`` / ``--ignore``: Ignore invalid files\n\nIncrease version\n++++++++++++++++\n\n::\n\n $ versionbump -c 0.1.2 patch\n 0.1.3\n\nReplace version in file(s)\n++++++++++++++++++++++++++\n\n::\n\n $ cat version.txt\n Current version: 0.1.2\n $ versionbump -c 0.1.2 minor version.txt\n 0.1.3\n $ cat version.txt\n Current version: 0.1.3\n\nIf you want to replace the version string in more than one file, just pass them to ``versionbump`` aswell. Example:\n\n::\n\n $ versionbump -c 0.1.2 major file1.txt file2.txt file3.txt\n\nPython library\n==============\n\nVersionBump\n+++++++++++\n\n::\n\n from versionbump import VersionBump\n vb = VersionBump('2.0.1')\n vb.bump() ## default value: 'patch'\n print vb.get() ## 2.0.2\n print vb.get('patch') ## 2\n\nFileBump\n++++++++\n\n::\n\n from versionbump import FileBump\n fo = open('version.txt', 'r+')\n fb = FileBump(fo, '2.0.1')\n fb.bump() ## default value: 'patch', writes to file\n print fb.get() ## 2.0.2\n print fb.get('patch') ## 2\n\nAlternatives\n============\n- `bumpversion `_ by Filip Noetzel. Provides much more functionality like VCS integration.\n- `grunt-bump `_ by Vojta Jina. Integrates with the task runner grunt.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/vortec/versionbump",
"keywords": null,
"license": "MIT",
"maintainer": null,
"maintainer_email": null,
"name": "versionbump",
"package_url": "https://pypi.org/project/versionbump/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/versionbump/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/vortec/versionbump"
},
"release_url": "https://pypi.org/project/versionbump/1.1.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Generate version strings based on semantic versioning rules.",
"version": "1.1.1"
},
"last_serial": 1425219,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "db1a7279ec4ac050743b71e738be0bbc",
"sha256": "3edb5280413df5c4c7498575a105067753b7cf2ba1e3ff8d0f4858050ea06b77"
},
"downloads": -1,
"filename": "versionbump-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "db1a7279ec4ac050743b71e738be0bbc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3413,
"upload_time": "2014-04-05T15:05:17",
"url": "https://files.pythonhosted.org/packages/cb/d0/8098a663ae878a7e6e9315bd3c35faa43bb3906d18889e73e4774aef366c/versionbump-1.0.0.tar.gz"
}
],
"1.1.0": [
{
"comment_text": "",
"digests": {
"md5": "d481c2e2c55bb69d9f49836a8864832f",
"sha256": "399a050d962e92d70300bf5729230d168baf909f88bb5019cbc76cc5936a22bd"
},
"downloads": -1,
"filename": "versionbump-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "d481c2e2c55bb69d9f49836a8864832f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4103,
"upload_time": "2015-02-16T11:20:01",
"url": "https://files.pythonhosted.org/packages/5d/82/378bbe6a0399e11571dbce69f41df640981def49cab277a3cd02c45a602d/versionbump-1.1.0.tar.gz"
}
],
"1.1.1": [
{
"comment_text": "",
"digests": {
"md5": "f89f476180f207b6ccdaca8ee5068963",
"sha256": "128611ec7dfe3bb09427d7a7a4cbb465cc870240b16d4a35daf2b7f2ddd6a6ef"
},
"downloads": -1,
"filename": "versionbump-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "f89f476180f207b6ccdaca8ee5068963",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4120,
"upload_time": "2015-02-16T11:25:04",
"url": "https://files.pythonhosted.org/packages/75/46/9dbda1b10873b57f318c1e057f5be68ed7535810d1b03f6b006033f1a5a5/versionbump-1.1.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f89f476180f207b6ccdaca8ee5068963",
"sha256": "128611ec7dfe3bb09427d7a7a4cbb465cc870240b16d4a35daf2b7f2ddd6a6ef"
},
"downloads": -1,
"filename": "versionbump-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "f89f476180f207b6ccdaca8ee5068963",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4120,
"upload_time": "2015-02-16T11:25:04",
"url": "https://files.pythonhosted.org/packages/75/46/9dbda1b10873b57f318c1e057f5be68ed7535810d1b03f6b006033f1a5a5/versionbump-1.1.1.tar.gz"
}
]
}