{"id":31446740,"url":"https://github.com/talwrii/bump-setup","last_synced_at":"2026-01-20T16:50:36.559Z","repository":{"id":303239102,"uuid":"1014845989","full_name":"talwrii/bump-setup","owner":"talwrii","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-07T22:00:39.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-10T22:29:50.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/talwrii.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2025-07-06T14:25:33.000Z","updated_at":"2025-07-07T22:00:38.000Z","dependencies_parsed_at":"2025-07-06T14:42:08.348Z","dependency_job_id":"26d2a51c-8369-4853-b309-4016e3cbfa29","html_url":"https://github.com/talwrii/bump-setup","commit_stats":null,"previous_names":["talwrii/bump-setup"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/talwrii/bump-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talwrii%2Fbump-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talwrii%2Fbump-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talwrii%2Fbump-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talwrii%2Fbump-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talwrii","download_url":"https://codeload.github.com/talwrii/bump-setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talwrii%2Fbump-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277778005,"owners_count":25875398,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-01T01:00:28.882Z","updated_at":"2025-10-01T01:00:33.091Z","avatar_url":"https://github.com/talwrii.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"programming\"\u003e\u003c/a\u003eProgramming"],"sub_categories":[],"readme":"# Bump-Setup\n**@readwithai** - [X](https://x.com/readwithai) - [blog](https://readwithai.substack.com/) - [machine-aided reading](https://www.reddit.com/r/machineAidedReading/) - [📖](https://readwithai.substack.com/p/what-is-reading-broadly-defined\n)[⚡️](https://readwithai.substack.com/s/technical-miscellany)[🖋️](https://readwithai.substack.com/p/note-taking-with-obsidian-much-of)\n\nA command-line tool to bump the version in-place in `setup.py` or `pyproject.yaml` for python projects. It can bump major, minor or patch versions.\n\nMost of the value for this is dealing with `setup.py`. If you only use `pyproject.yaml` exclusively I might recommend creating your own script since this is a very straight forward task, but this code works for this basic case.\n\n## Motivaiton\nI got bored of bumping version numbers by hand in files and `bumpversion` didn't immediately do what I wanted so I made this tool.\n\n## Alternatives and prior work\nThere is a tool called [bumpversion](https://github.com/peritus/bumpversion) which is quite similar but wants to take the files that get modified and also seems to want you to specify the file. [bumpver](https://github.com/mbarkhau/bumpver) also does something similar to this - and greps through your codebase but the documentation is more than a couple of lines and it seems to require you to maintain separate settings in `pyproject.toml`  - this is meant to 'just work' most of th time.\n\n\n## Installation\nYou can install `bump-setup`  using [pipx](https://github.com/pypa/pipx):\n\n```bash\npip install bump-setup\n```\n## Usage\nTo bump the version in setup.py, run the following command:\n```bash\nbump-setup \u003cmajor|minor|patch\u003e\n```\n## Examples\n```bash\nbump-setup major  # Increments the major version\nbump-setup minor  # Increments the minor version\nbump-setup patch  # Increments the patch version\n```\n\n## Attribution\nThis uses the python `tree-sitter` and `tree-sitter-python` libraries to modify and parse source code while leaving whitespace intact. I did some vibe coding because I am lazy. I'm not sure it helped much since I then had to fix a bunch of bugs by hand!\n\n## About me\nI am **@readwithai**. I create tools for reading, research and agency sometimes using the markdown editor [Obsidian](https://readwithai.substack.com/p/what-exactly-is-obsidian).\n\nI also create a [stream of tools](https://readwithai.substack.com/p/my-productivity-tools) that are related to carrying out my work. There are various python tools here.\n\nI write about lots of things - including tools like this - on [X](https://x.com/readwithai).\nMy [blog](https://readwithai.substack.com/) is more about reading and research and agency.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalwrii%2Fbump-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalwrii%2Fbump-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalwrii%2Fbump-setup/lists"}