{"id":28559095,"url":"https://github.com/toastdriven/rose","last_synced_at":"2025-08-12T12:34:06.206Z","repository":{"id":7515290,"uuid":"8865707","full_name":"toastdriven/rose","owner":"toastdriven","description":"A small library for keeping your version up-to-date easily \u0026 everywhere.","archived":false,"fork":false,"pushed_at":"2013-07-25T21:31:31.000Z","size":87,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T04:52:13.770Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toastdriven.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}},"created_at":"2013-03-18T22:29:15.000Z","updated_at":"2024-11-28T16:26:55.000Z","dependencies_parsed_at":"2022-09-05T15:41:11.375Z","dependency_job_id":null,"html_url":"https://github.com/toastdriven/rose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toastdriven/rose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Frose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Frose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Frose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Frose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toastdriven","download_url":"https://codeload.github.com/toastdriven/rose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Frose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270061413,"owners_count":24520293,"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-08-12T02:00:09.011Z","response_time":80,"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-06-10T08:36:03.408Z","updated_at":"2025-08-12T12:34:06.184Z","avatar_url":"https://github.com/toastdriven.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====\nrose\n====\n\n\"\"\"A version by any other name would be just as sweet.\"\"\"\n\nA small library for keeping your version up-to-date easily \u0026 everywhere.\n\nThe pain of having to update your ``setup.py``, your Sphinx ``conf.py``, your\n``__init__.py`` \u0026 everything else on every release of your Python package sucks.\nMake your life easier (\u0026 very semver_!)\n\n.. _semver: http://semver.org/\n\nBy putting your version number in a top-level VERSION file \u0026 using this library,\nyou can cut duplication \u0026 tedious manual work **without** having to lean on\ncrazy import hacks.\n\nInspired by crazy discussion with George Hickman (ghickman) at PyCon 2013.\n\n\nRequirements\n============\n\n* Python 2.5+\n\n\nUsage\n=====\n\nTo start, first install ``rose`` (see below). Then, push your version\nnumber into it's own file (typically called ``VERSION``)::\n\n    $ echo '1.0.0-beta' \u003e VERSION\n\nUpdate your ``setup.py`` to look like::\n\n    # ...\n\n    import rose\n\n    setup(\n        name='your_package_name_here',\n        # UPDATE THIS LINE!\n        version=rose.load_version('VERSION'),\n        # The usual follows...\n\nThen update your ``__init__.py``::\n\n    # Whatever is there, then...\n\n    import os\n    import rose\n\n    # If you don't care about being cross-platform, you can just pass a simple\n    # path instead.\n    VERSION_FILE = os.path.join(os.path.dirname('VERSION'))\n    __version__ = rose.build_version('your_package_name_here', rose.load_version(VERSION_FILE))\n\nAnd if you're documenting with Sphinx, you can update your ``conf.py`` with::\n\n    # ADD THIS!\n    import rose\n    RELEASE_VERSION = rose.load_version('../VERSION')\n    SHORT_VERSION = RELEASE_VERSION.split('-')[0]\n\n    # The version info for the project you're documenting, acts as replacement for\n    # |version| and |release|, also used in various other places throughout the\n    # built documents.\n    #\n    # The short X.Y version.\n    version = SHORT_VERSION\n    # The full version, including alpha/beta/rc tags.\n    release = RELEASE_VERSION\n\n\nInstallation\n============\n\nUsing ``pip``, simply run::\n\n    pip install rose\n\n\nLicense\n=======\n\nNew BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastdriven%2Frose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoastdriven%2Frose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastdriven%2Frose/lists"}