{"id":19375053,"url":"https://github.com/monim67/poetry-bumpversion","last_synced_at":"2025-04-13T07:51:01.701Z","repository":{"id":41204745,"uuid":"493771393","full_name":"monim67/poetry-bumpversion","owner":"monim67","description":"Poetry plugin to update __version__ in __init__ file and other files containing version strings","archived":false,"fork":false,"pushed_at":"2025-01-07T17:12:09.000Z","size":200,"stargazers_count":84,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T05:56:24.587Z","etag":null,"topics":["poetry-plugin","poetry-python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/poetry-bumpversion/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monim67.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-18T17:57:00.000Z","updated_at":"2025-02-13T00:03:01.000Z","dependencies_parsed_at":"2024-06-19T01:48:53.980Z","dependency_job_id":"293ceb1a-e561-4121-b5d9-110a032e5d06","html_url":"https://github.com/monim67/poetry-bumpversion","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monim67%2Fpoetry-bumpversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monim67%2Fpoetry-bumpversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monim67%2Fpoetry-bumpversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monim67%2Fpoetry-bumpversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monim67","download_url":"https://codeload.github.com/monim67/poetry-bumpversion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["poetry-plugin","poetry-python"],"created_at":"2024-11-10T08:36:59.043Z","updated_at":"2025-04-13T07:51:01.665Z","avatar_url":"https://github.com/monim67.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"####################\npoetry-bumpversion\n####################\n\n| |logo|\n\nThe ``poetry version`` command only updates version in ``pyproject.toml`` file.\nThis plugin updates version in other files when ``poetry version \u003cversion\u003e``\ncommand is executed.\n\n|  |build-status| |coverage.io| |pyversions| |pypi-version| |license|\n\n********************\nGetting Started\n********************\n\n++++++++++++++++++++\nPrerequisites\n++++++++++++++++++++\n\n- python = ^3.9\n- poetry = ^1.2.0\n\n++++++++++++++++++++\nInstall\n++++++++++++++++++++\n\nInstall the plugin by poetry plugin command.\n\n::\n\n    poetry self add poetry-bumpversion\n\n++++++++++++++++++++++++++++++\nConfigure version replacements\n++++++++++++++++++++++++++++++\n\nSay you have ``__version__`` variable set at ``your_package/__init__.py`` file\n\n.. code:: python\n\n    __version__ = \"0.1.0\" # It MUST match the version in pyproject.toml file\n\n\nAdd the following to your ``pyproject.toml`` file.\n\n.. code:: toml\n\n    [tool.poetry_bumpversion.file.\"your_package/__init__.py\"]\n    # Duplicate the line above to add more files\n\nNow run ``poetry version patch --dry-run``, if your output looks somewhat like below\nyou are all set (dry-run does not update any file).\n\n::\n\n    Bumping version from 0.5.0 to 0.5.1\n    poetry-bumpversion: processed file: your_package/__init__.py\n\nIf dry-run output looks fine you can run version update command without dry-run flag to\ncheck if version in both ``pyproject.toml`` and ``your_package/__init__.py`` file has been updated.\n\n********************\nAdvanced Usage\n********************\n\nYou can define search and replace terms to be more precise\n\n.. code:: toml\n\n    [tool.poetry_bumpversion.file.\"your_package/__init__.py\"]\n    search = '__version__ = \"{current_version}\"'\n    replace = '__version__ = \"{new_version}\"'\n\nYou can define replacements if you have same search/replace patterns\nacross multiple files.\n\n.. code:: toml\n\n    [[tool.poetry_bumpversion.replacements]]\n    files = [\"your_package/__init__.py\", \"your_package/version.py\"]\n    search = '__version__ = \"{current_version}\"'\n    replace = '__version__ = \"{new_version}\"'\n\n    [[tool.poetry_bumpversion.replacements]]\n    files = [\"README.md\"]\n    search = 'version: {current_version}'\n    replace = 'version: {new_version}'\n\n******************************\nUsage with Github Workflow\n******************************\n\nThis plugin can be used to bump version automatically during publishing to PyPI using a GitHub workflow.\nWhen a release tag is created the workflow will use that tag name e.g ``2.0.1`` to update versions in every\nfiles, build the package and publish to PyPI. This is how this plugin is deployed to PyPI.\n\nTo get started you can copy the `deploy workflow code`_ from this repo to your repo and set it up.\n\n.. _deploy workflow code: https://github.com/monim67/poetry-bumpversion/blob/master/.github/workflows/deploy.yml\n\n********************\nLicense\n********************\n\nThis project is licensed under MIT License - see the\n`LICENSE \u003chttps://github.com/monim67/poetry-bumpversion/blob/master/LICENSE\u003e`_ file for details.\n\n\n.. |logo| image:: https://github.com/monim67/poetry-bumpversion/blob/main/.github/assets/logo.png?raw=true\n    :alt: Logo\n\n.. |build-status| image:: https://github.com/monim67/poetry-bumpversion/actions/workflows/build.yml/badge.svg?event=push\n    :target: https://github.com/monim67/poetry-bumpversion/actions/workflows/build.yml\n    :alt: Build Status\n    :height: 20px\n\n.. |coverage.io| image:: https://coveralls.io/repos/github/monim67/poetry-bumpversion/badge.svg\n    :target: https://coveralls.io/github/monim67/poetry-bumpversion\n    :alt: Coverage Status\n    :height: 20px\n\n.. |pyversions| image:: https://img.shields.io/pypi/pyversions/poetry-bumpversion.svg\n    :target: https://pypi.python.org/pypi/poetry-bumpversion\n    :alt: Python Versions\n    :height: 20px\n\n.. |pypi-version| image:: https://badge.fury.io/py/poetry-bumpversion.svg\n    :target: https://pypi.python.org/pypi/poetry-bumpversion\n    :alt: PyPI version\n    :height: 20px\n\n.. |license| image:: https://img.shields.io/pypi/l/poetry-bumpversion.svg\n    :target: https://pypi.python.org/pypi/poetry-bumpversion\n    :alt: Licence\n    :height: 20px\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonim67%2Fpoetry-bumpversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonim67%2Fpoetry-bumpversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonim67%2Fpoetry-bumpversion/lists"}