{"id":16367696,"url":"https://github.com/jackgruber/auto_buildnumber","last_synced_at":"2026-04-14T03:32:58.762Z","repository":{"id":158957242,"uuid":"255149682","full_name":"JackGruber/auto_buildnumber","owner":"JackGruber","description":"Script for automatic build version generation","archived":false,"fork":false,"pushed_at":"2020-08-18T18:34:08.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T01:24:39.009Z","etag":null,"topics":["batch","platformio","powershell","python","version","versioning"],"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/JackGruber.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":"2020-04-12T18:55:25.000Z","updated_at":"2023-03-29T08:13:17.000Z","dependencies_parsed_at":"2023-06-15T02:30:12.883Z","dependency_job_id":null,"html_url":"https://github.com/JackGruber/auto_buildnumber","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JackGruber/auto_buildnumber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackGruber%2Fauto_buildnumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackGruber%2Fauto_buildnumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackGruber%2Fauto_buildnumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackGruber%2Fauto_buildnumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JackGruber","download_url":"https://codeload.github.com/JackGruber/auto_buildnumber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackGruber%2Fauto_buildnumber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["batch","platformio","powershell","python","version","versioning"],"created_at":"2024-10-11T02:50:37.064Z","updated_at":"2026-04-14T03:32:58.742Z","avatar_url":"https://github.com/JackGruber.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automatic build number generation\n\nAutomatic build version generation for the following languages `powershell`, `batch`, `python` and `c`.\n\nIncluding the following information:\n\n- Git branch\n- Git commit\n- Build Date\n- Build Time\n- Major\n- Minor\n- Patch\n- Build\n\nThe `build` can be auto incremented. The `major`, `minor` and `patch` can be edited by hand in the created file.\nWith every call the file is loaded and the values are adjusted. All additionally added lines remain in the file.\n\nExample file:\n\n```header\n#define VERSION_MAJOR \"0\"\n#define VERSION_MINOR \"1\"\n#define VERSION_PATCH \"1\"\n#define VERSION_BUILD \"1\"\n#define BUILD_BRANCH \"master\"\n#define BUILD_COMMIT \"684ee5f\"\n#define BUILD_DATE \"2020-04-13\"\n#define BUILD_TIME \"12:41\"\n```\n\n## Usage\n\n```cli\npython versioning.py \u003cFILE\u003e \u003cCODESTYLE\u003e \u003cAUTOINC\u003e \u003cBUILDFILE\u003e\n```\n\n- `File` = File Path to version file\n- `CODESTYLE` = Build the version file inthe following code style:\n  - `powershell`\n  - `batch`\n  - `python`\n  - `DEFINEHEADER` header file for `c` / `c++`\n- `AUTOINC` = Increment the build version var. `True` or `False`\n- `BUILDFILE` = (Optional) To save the `BUILD_*` var in a seperated file\n\n## Integration\n\n### PlatformIO\n\nModify the line `23` in `platformio_versioning.py` to your needs.\nOptional Edit the the path to your `versioning.py` file at line `6`.\n\n```ini\nextra_scripts =\n    pre:platformio_versioning.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackgruber%2Fauto_buildnumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackgruber%2Fauto_buildnumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackgruber%2Fauto_buildnumber/lists"}