{ "info": { "author": "Akinori Hattori", "author_email": "hattya@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Version Control", "Topic :: System :: Software Distribution", "Topic :: Utilities" ], "description": "scmver\n======\n\nscmver is a package version manager based on SCM tags.\n\nIt can be used to pass the version to the ``setup`` function in a ``setup.py``,\nor to generate a file which contains the version.\n\n.. image:: https://img.shields.io/pypi/v/scmver.svg\n :target: https://pypi.org/project/scmver\n\n.. image:: https://semaphoreci.com/api/v1/hattya/scmver/branches/master/badge.svg\n :target: https://semaphoreci.com/hattya/scmver\n\n.. image:: https://ci.appveyor.com/api/projects/status/l9flwehcgr5pxi33?svg=true\n :target: https://ci.appveyor.com/project/hattya/scmver\n\n.. image:: https://codecov.io/gh/hattya/scmver/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/hattya/scmver\n\n\nInstallation\n------------\n\n.. code:: console\n\n $ pip install scmver\n\n\nRequiements\n-----------\n\n- Python 2.7 or 3.4+\n- setuptools\n\n\nUsage\n-----\n\nsetuptools\n~~~~~~~~~~\n\n.. code:: python\n\n from setuptools import setup\n\n setup(setup_requires=['scmver'],\n scmver=True)\n\n``scmver`` is either following values:\n\n``True``\n It is same as an empty ``dict``.\n\n``callable object``\n It should return a ``dict``.\n\n``dict``\n See Configuration_ for details.\n\n\ndistutils\n~~~~~~~~~\n\n.. code:: python\n\n from distutils.core import setup\n\n import scmver\n\n setup(version=scmver.get_version())\n\nSee Configuration_ for the ``scmver.get_version`` arguments.\n\n\nConfiguration\n-------------\n\nroot\n A path of the working directory.\n\n Default: ``'.'``\n\nspec\n A version specifier to construct the public version indentifiers. It will be\n incremented by the number of commits from the latest tag.\n\n ``major``\n It will increment the major version.\n\n ``minor``\n It will increment the minor version.\n\n ``micro`` or ``patch``\n It will increment the micro (patch) version.\n\n ``post``\n It will increment the post-release segment.\n\n ``major.dev``\n It will increment the development release segment after incrementing the\n major version by 1.\n\n ``minor.dev``\n It will increment the development release segment after incrementing the\n minor version by 1.\n\n ``micro.dev`` or ``patch.dev``\n It will increment the development release segment after incrementing the\n micro (patch) version by 1.\n\n Default: ``'post'``\n\nlocal\n A ``string`` or ``callable obejct`` to construct the local version\n identifiers.\n\n ``string``\n A format string.\n\n Available keywords:\n\n - ``{distance}``\n - ``{reivison}``\n - ``{branch}``\n - ``{utc}`` - Return value of ``datetime.datetime.utcnow()``\n - ``{local}`` - Return value of ``datetime.datetime.now()``\n\n ``callable object``\n It will be called with ``scmver.core.SCMInfo``.\n\n Default: ``'{local:%Y-%m-%d}'``\n\nversion\n A regular expression object to extract the version from SCM tags. It should\n contain the version group.\n\nwrite_to\n A path to a file which will be generated using ``template``.\n\ntemplate\n A format string which is used by ``write_to``.\n\n Available keywords:\n\n - ``{version}``\n - ``{revision}``\n - ``{branch}``\n\nfallback\n It will be used when there is outside of a working copy.\n\n ``string``\n It is in the ``'package.module:some.attribute'`` format\n (ex: ``'scmver:version'``).\n\n ``list``\n It consists of a ``string`` which is described above, and a path to import\n the module.\n\n ``callable object``\n It should return the version.\n\nbazaar.tag\n A regular expression pattern to filter tags.\n\nfossil.tag\n A regular expression pattern to filter tags.\n\ngit.tag\n It will be passed to ``git describe`` as ``--match``.\n\nmercurial.tag\n A regular expression pattern to filter tags.\n\nsubversion.tag\n A regular expression pattern to filter tags.\n\nsubversion.trunk\n A relative repository path of the trunk directory.\n\n Default: ``'trunk'``\n\nsubversion.branches\n A relative repository path of the directory where branches are located.\n\n Default: ``'branches'``\n\nsubversion.tags\n A relative repository path of the directory where tags are located.\n\n Default: ``'tags'``\n\n\nLicense\n-------\n\nscmver is distrutbuted under the terms of the MIT License.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hattya/scmver", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "scmver", "package_url": "https://pypi.org/project/scmver/", "platform": "", "project_url": "https://pypi.org/project/scmver/", "project_urls": { "Homepage": "https://github.com/hattya/scmver" }, "release_url": "https://pypi.org/project/scmver/0.4/", "requires_dist": [ "click ; extra == 'cli'", "unittest2 ; (python_version <= \"2.7\") and extra == 'test'" ], "requires_python": "", "summary": "A package version manager based on SCM tags", "version": "0.4" }, "last_serial": 5342779, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "074506bff41bf0fe82924d6e064e21a8", "sha256": "3eff253cd1b7cf4b43bdcd39795d0cb7145f9101aadd883fffd86de85742f421" }, "downloads": -1, "filename": "scmver-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "074506bff41bf0fe82924d6e064e21a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12679, "upload_time": "2019-02-28T12:31:48", "url": "https://files.pythonhosted.org/packages/dc/64/a674b8d812271a769bf368acaea99f96b4d3adeda15b53fd3c204b935ae5/scmver-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d7d823503523e580f7f19d5540c0373", "sha256": "794795d602109bc1693ed80f0c11471ce3241d0a91971b42c1eee8170a52037d" }, "downloads": -1, "filename": "scmver-0.1.zip", "has_sig": false, "md5_digest": "9d7d823503523e580f7f19d5540c0373", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28637, "upload_time": "2019-02-28T12:31:50", "url": "https://files.pythonhosted.org/packages/08/8f/81f6842b5cff21b549987a17fd7a337ae908d2482e08d69a7a3d5ad42d38/scmver-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b1e29e23f6a095bbac518b412e4f0b5d", "sha256": "0e1435a849c457cbaaad237e0ab4785f1deaf1789f9d54a96cbd00fd5a8fc000" }, "downloads": -1, "filename": "scmver-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b1e29e23f6a095bbac518b412e4f0b5d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19172, "upload_time": "2019-03-21T13:35:44", "url": "https://files.pythonhosted.org/packages/14/9f/98f5811a1d8f44fe2ddc5fe865b6b21af0b50fc66f2e6123a2036c09f5c6/scmver-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6b01562e703c707ba0de06a80e6dd61", "sha256": "995d66d5a18b83a72ee7f59ff4aec26cac1f7c18abb9329dc42f2de1ceab64ed" }, "downloads": -1, "filename": "scmver-0.2.zip", "has_sig": false, "md5_digest": "b6b01562e703c707ba0de06a80e6dd61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39078, "upload_time": "2019-03-21T13:35:46", "url": "https://files.pythonhosted.org/packages/aa/3d/d9b2ac46f169ebd866d7bc98e82ea602d320da47e13ec7c3cf0da0444035/scmver-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "773a0042b565d40ae7b0a3e892c0ad54", "sha256": "d2e60401c3e6a87d56fd69bbdf06bef9a88a35ff6e72e61cb9faf087ca10eea7" }, "downloads": -1, "filename": "scmver-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "773a0042b565d40ae7b0a3e892c0ad54", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20730, "upload_time": "2019-04-01T12:27:01", "url": "https://files.pythonhosted.org/packages/0f/ee/dea39e025b84aeb937b35560d0830c6a425266d2c41983598520f5e45d82/scmver-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3a8d25d64fac04672587eec1952d8df", "sha256": "fd305176a73cace0f7253037dba90dab2ac11b148ef649a21d03c1f2a2539457" }, "downloads": -1, "filename": "scmver-0.3.zip", "has_sig": false, "md5_digest": "f3a8d25d64fac04672587eec1952d8df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42375, "upload_time": "2019-04-01T12:27:03", "url": "https://files.pythonhosted.org/packages/a4/90/480e506ab32de94a29f30ad2eb8997919e4ce6cf591df8b8f4b17a7b9bb0/scmver-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "95052d660bf95cc8035f5414663d8146", "sha256": "4580d09cc708f9fd6bcd3e606b4d0607b04a22757ac828caf705a5cad576ec89" }, "downloads": -1, "filename": "scmver-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95052d660bf95cc8035f5414663d8146", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18814, "upload_time": "2019-05-31T13:29:45", "url": "https://files.pythonhosted.org/packages/f9/f2/16f9db1534d5695b70feb1ed8d5940bf936f563eddf045ab71c8a9da4b9d/scmver-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2fd770cbe92e6b15eb17b6fa2a24a11f", "sha256": "8c1872702d4de3c99c5b37b2eb64515fb2da9456949405abe2d13dd76f1059fe" }, "downloads": -1, "filename": "scmver-0.4.zip", "has_sig": false, "md5_digest": "2fd770cbe92e6b15eb17b6fa2a24a11f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39555, "upload_time": "2019-05-31T13:29:47", "url": "https://files.pythonhosted.org/packages/44/51/3acae18cb8c9216abf31f92680d085665b65ee376a2e4eb779d0430675ef/scmver-0.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95052d660bf95cc8035f5414663d8146", "sha256": "4580d09cc708f9fd6bcd3e606b4d0607b04a22757ac828caf705a5cad576ec89" }, "downloads": -1, "filename": "scmver-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95052d660bf95cc8035f5414663d8146", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18814, "upload_time": "2019-05-31T13:29:45", "url": "https://files.pythonhosted.org/packages/f9/f2/16f9db1534d5695b70feb1ed8d5940bf936f563eddf045ab71c8a9da4b9d/scmver-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2fd770cbe92e6b15eb17b6fa2a24a11f", "sha256": "8c1872702d4de3c99c5b37b2eb64515fb2da9456949405abe2d13dd76f1059fe" }, "downloads": -1, "filename": "scmver-0.4.zip", "has_sig": false, "md5_digest": "2fd770cbe92e6b15eb17b6fa2a24a11f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39555, "upload_time": "2019-05-31T13:29:47", "url": "https://files.pythonhosted.org/packages/44/51/3acae18cb8c9216abf31f92680d085665b65ee376a2e4eb779d0430675ef/scmver-0.4.zip" } ] }