{"id":19649406,"url":"https://github.com/changaco/version.py","last_synced_at":"2025-07-28T23:09:39.811Z","repository":{"id":66129515,"uuid":"46781708","full_name":"Changaco/version.py","owner":"Changaco","description":"Automatic version numbers for git-based python projects","archived":false,"fork":false,"pushed_at":"2022-01-30T09:20:23.000Z","size":9,"stargazers_count":98,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T01:37:18.044Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Changaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-11-24T09:40:47.000Z","updated_at":"2024-10-03T08:12:02.000Z","dependencies_parsed_at":"2023-03-10T23:38:46.267Z","dependency_job_id":null,"html_url":"https://github.com/Changaco/version.py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Changaco/version.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Changaco%2Fversion.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Changaco%2Fversion.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Changaco%2Fversion.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Changaco%2Fversion.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Changaco","download_url":"https://codeload.github.com/Changaco/version.py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Changaco%2Fversion.py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267600444,"owners_count":24113784,"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-07-28T02:00:09.689Z","response_time":68,"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":["python"],"created_at":"2024-11-11T14:54:24.359Z","updated_at":"2025-07-28T23:09:39.791Z","avatar_url":"https://github.com/Changaco.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"`version.py` saves you from having to hard-code the version number of your\nproject by getting it from git tags (directly or indirectly).\n\nTo use the script, simply copy it into your project and call `get_version()`\nin your `setup.py` file:\n\n    from version import get_version\n\n    setup(\n        ...\n        version=get_version(),\n        ...\n    )\n\nBy default the tags that are considered to be version numbers are those that\nstart with a digit. If you use a prefix, for example a `v`, modify the `PREFIX`\nconstant in `version.py` accordingly.\n\nYou need to distribute the `version.py` file in your sdist packages\nby adding the following line in the `MANIFEST.in` file:\n\n    include version.py\n\nFor the script to work within git archives (for example those automatically\ngenerated by GitHub for each tag) you need to add the following line to the\n`.gitattributes` file:\n\n    version.py  export-subst\n\n---\n\nNote: if you don't care about git archives, or you're looking for a solution\nthat works with Mercurial, then you can use [setuptools_scm][setuptools_scm]\ninstead.\n\n[setuptools_scm]: https://pypi.python.org/pypi/setuptools_scm\n\n---\n\nCompatibility: python 3.x and 2.7\n\nLicence: [CC0 Public Domain Dedication](http://creativecommons.org/publicdomain/zero/1.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangaco%2Fversion.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchangaco%2Fversion.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangaco%2Fversion.py/lists"}