{"id":21869984,"url":"https://github.com/dephell/dephell_versioning","last_synced_at":"2025-10-04T12:07:15.958Z","repository":{"id":89752055,"uuid":"193266533","full_name":"dephell/dephell_versioning","owner":"dephell","description":"Bump project version like a pro","archived":false,"fork":false,"pushed_at":"2020-05-30T05:23:21.000Z","size":41,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-23T19:37:14.688Z","etag":null,"topics":["bump","bumpversion","calver","python","semver","version","versioning","versions"],"latest_commit_sha":null,"homepage":"https://dephell.readthedocs.io/cmd-project-bump.html","language":"Python","has_issues":false,"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/dephell.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":"2019-06-22T18:25:43.000Z","updated_at":"2022-09-22T00:39:29.000Z","dependencies_parsed_at":"2023-07-22T14:46:45.620Z","dependency_job_id":null,"html_url":"https://github.com/dephell/dephell_versioning","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dephell/dephell_versioning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_versioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_versioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_versioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_versioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dephell","download_url":"https://codeload.github.com/dephell/dephell_versioning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_versioning/sbom","scorecard":{"id":334907,"data":{"date":"2025-08-11","repo":{"name":"github.com/dephell/dephell_versioning","commit":"df174389d90cca6bec96641d7b6f7eced8200f38"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v.0.1.0 not signed: https://api.github.com/repos/dephell/dephell_versioning/releases/18233916","Warn: release artifact v.0.1.0 does not have provenance: https://api.github.com/repos/dephell/dephell_versioning/releases/18233916"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:29:22.061Z","repository_id":89752055,"created_at":"2025-08-18T04:29:22.061Z","updated_at":"2025-08-18T04:29:22.061Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277253553,"owners_count":25787347,"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-27T02:00:08.978Z","response_time":73,"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":["bump","bumpversion","calver","python","semver","version","versioning","versions"],"created_at":"2024-11-28T06:09:51.256Z","updated_at":"2025-10-04T12:07:15.946Z","avatar_url":"https://github.com/dephell.png","language":"Python","readme":"## dephell_versioning\n\n[![travis](https://travis-ci.org/dephell/dephell_versioning.svg?branch=master)](https://travis-ci.org/dephell/dephell_versioning)\n[![appveyor](https://ci.appveyor.com/api/projects/status/github/dephell/dephell_versioning?svg=true)](https://ci.appveyor.com/project/orsinium/dephell-versioning)\n[![MIT License](https://img.shields.io/pypi/l/dephell-versioning.svg)](https://github.com/dephell/dephell_versioning/blob/master/LICENSE)\n\nLibrary for bumping project version.\n\nAvailable schemes:\n\n+ `calver`\n+ `comver`\n+ `pep`\n+ `roman`\n+ `romver`\n+ `semver`\n+ `serial`\n+ `zerover`\n\nAvailable rules (and aliases):\n\n+ `init` -- initialize versioning\n+ Main parts:\n  + `major` (`breaking`)\n  + `minor` (`feature`)\n  + `patch` (`fix`, `micro`)\n+ Additional parts:\n  + `dev`\n  + `local`\n  + `post`\n+ Pre-release management:\n  + `pre` (`rc`, `alpha`, `beta`)\n  + `premajor` (`prebreaking`)\n  + `preminor` (`prefeature`)\n  + `prepatch` (`prefix`, `premicro`)\n  + `release`\n\nRead more about schemes and rules in the documentation for [dephell project bump](https://dephell.readthedocs.io/en/latest/cmd-project-bump.html).\n\n## Installation\n\ninstall from [PyPI](https://pypi.org/project/dephell-versioning/):\n\n```bash\npython3 -m pip install --user dephell_versioning\n```\n\n## Usage\n\nGet available schemes, rules, and aliases:\n\n```python\nfrom dephell_versioning import get_aliases, get_rules, get_schemes\nget_schemes()\n# frozenset({'roman', 'pep', ..., 'comver'})\n\nget_rules()\n# frozenset({'local', 'minor', ..., 'dev', 'preminor'})\n\nget_aliases()\n# frozenset({'alpha', 'rc', ..., 'micro', 'breaking'})\n\n# get rules for some scheme:\nget_rules(scheme='calver')\n# frozenset({'major', 'patch', 'init'})\n\n# get aliases for specific rules:\nget_aliases(rules={'major', 'minor'})\n# frozenset({'feature', 'breaking'})\n\n```\n\nBump version:\n\n```python\nfrom dephell_versioning import bump_version\n\nbump_version(version='1.2.3', rule='minor', scheme='semver')\n# '1.3.0'\n\n# pass aliase instead of rule:\nbump_version(version='1.2.3', rule='feature', scheme='semver')\n# '1.3.0'\n\n# start rule from `+` to attach local version number:\nbump_version(version='1.2.3', rule='+456', scheme='semver')\n# '1.2.3+456'\n\n# for `init` version is optional\nbump_version(version='', rule='init', scheme='semver')\n# '0.1.0'\n```\n\nBump version in a python file:\n\n```python\nfrom dephell_versioning import bump_file\nfrom pathlib import Path\n\n# returns `True` if version was bumped\nbump_file(path=Path('dephell_versioning', '__init__.py'), old='0.1.0', new='0.1.1')\n# True\n\n# old version is optional: any version will be bumped if old isn't found\nbump_file(path=Path('dephell_versioning', '__init__.py'), old='', new='0.1.2')\n# True\n```\n\nUse [dephell_discover](https://github.com/dephell/dephell_discover) to find out the current version in a python project:\n\n```python\nfrom dephell_discover import Root\nfrom pathlib import Path\nroot = Root(path=Path(), name='dephell_discover')\n\n# root.metainfo can be None if project isn't found in the given directory\nif root.metainfo:\n    print(root.metainfo.version)\n# '0.1.2'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdephell%2Fdephell_versioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdephell%2Fdephell_versioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdephell%2Fdephell_versioning/lists"}