Skip to content

Conversation

@JaLuka98
Copy link
Owner

@JaLuka98 JaLuka98 commented May 21, 2025

This pull request introduces key updates to versioning, workflow automation, and codebase initialization. The changes enhance flexibility in version management, add support for dry-run functionality in GitHub workflows, and simplify version handling in the cpax package.

Versioning Improvements:

  • Updated .bumpversion.toml to use Python string formatting for version serialization, making month padding explicit. Adjusted the search and replace patterns for better flexibility in version updates.

Workflow Enhancements:

  • Enhanced .github/workflows/manual-release.yaml to include a dry-run option, fetch tags during checkout, and compute the next version dynamically based on the latest tag.

Codebase Simplification:

  • Replaced dynamic version retrieval in src/cpax/__init__.py with a hardcoded version string for consistency with the updated versioning strategy.

@JaLuka98 JaLuka98 self-assigned this May 21, 2025
@JaLuka98 JaLuka98 added the ci Changes to GitHub Actions, test workflows, or deployment. label May 21, 2025
@JaLuka98 JaLuka98 requested a review from Copilot May 21, 2025 09:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a Calendar Versioning workflow by automating version bumps in GitHub Actions and simplifying version handling in the cpax package.

  • Switches __version__ in src/cpax/__init__.py to a hardcoded CalVer string
  • Adds a workflow_dispatch dry-run input and dynamic version computation to the release workflow
  • Updates .bumpversion.toml parsing/serialization and file search/replace patterns for greater flexibility

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/cpax/init.py Replaced dynamic metadata lookup with a fixed CalVer version string
.github/workflows/manual-release.yaml Added dry-run flag, full tag fetch, and shell logic to compute next version
.bumpversion.toml Refined parse/serialize patterns and made search/replace templates dynamic

JaLuka98 and others added 2 commits May 21, 2025 11:21
Fix typo

Co-authored-by: Copilot <[email protected]>
`tags: true` -> `fetch-tags:true`

Co-authored-by: Copilot <[email protected]>
@JaLuka98 JaLuka98 marked this pull request as ready for review May 21, 2025 09:22
@JaLuka98 JaLuka98 merged commit 8d0911e into main May 21, 2025
4 checks passed
@JaLuka98 JaLuka98 deleted the 2025_05_20_hotfix_calver_conventions_bumpmyversion branch May 21, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes to GitHub Actions, test workflows, or deployment.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants