Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 29, 2025

Increment minor version from 1.2.0 to 1.3.0a to prepare for next development cycle with alpha marker.

Changes

  • VERSION tuple: Updated from (1, 2, 0, "final") to (1, 3, 0, "alpha") in openwisp_utils/__init__.py
  • get_version() function: Enhanced to format alpha versions correctly
    • Includes patch version for non-final releases (1.3.0a vs 1.3a)
    • Omits implicit zero revision (1.3.0a vs 1.3.0a0)
    • Preserves backward compatibility for final/beta releases

Version Output

from openwisp_utils import get_version
print(get_version())  # Returns: "1.3.0a"

setuptools normalizes to 1.3.0a0 per PEP 440.

Original prompt

Update the module version by incrementing the minor version and adding an alpha suffix.

Requirements:

  1. Find the current version in the module's version file (typically in setup.py, init.py, or similar configuration files)
  2. If the current version is X.Y.Z, update it to X.(Y+1).0a
  3. For example: if current version is 1.2.0, change it to 1.3.0a
  4. Update all relevant files that contain the version number
  5. Ensure the version format follows Python package versioning standards

The version bump should prepare the module for the next development cycle with an alpha release marker.

This pull request was created as a result of the following prompt from Copilot chat.

Update the module version by incrementing the minor version and adding an alpha suffix.

Requirements:

  1. Find the current version in the module's version file (typically in setup.py, init.py, or similar configuration files)
  2. If the current version is X.Y.Z, update it to X.(Y+1).0a
  3. For example: if current version is 1.2.0, change it to 1.3.0a
  4. Update all relevant files that contain the version number
  5. Ensure the version format follows Python package versioning standards

The version bump should prepare the module for the next development cycle with an alpha release marker.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update module version to next minor with alpha suffix Bump version to 1.3.0a for next development cycle Oct 29, 2025
Copilot AI requested a review from pandafy October 29, 2025 09:55
@nemesifier nemesifier marked this pull request as ready for review October 29, 2025 11:34
rev = 0
version = "%s%s%s" % (version, VERSION[3][0:1], rev)
# Don't append revision number if it's 0
if rev == 0:
Copy link
Member

Choose a reason for hiding this comment

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

Are these changes really needed? I think just bumping the version here would be enough.

@pandafy pandafy force-pushed the copilot/update-module-version-alpha branch from 2f44775 to b1e550e Compare October 29, 2025 15:49
@pandafy pandafy force-pushed the copilot/update-module-version-alpha branch from b1e550e to 0ac5f35 Compare October 29, 2025 15:58
@coveralls
Copy link

Coverage Status

coverage: 97.365%. remained the same
when pulling 0ac5f35 on copilot/update-module-version-alpha
into e1577cf on master.

@nemesifier nemesifier merged commit 662bf13 into master Oct 29, 2025
20 checks passed
@nemesifier nemesifier deleted the copilot/update-module-version-alpha branch October 29, 2025 18:43
pandafy added a commit that referenced this pull request Oct 30, 2025
nemesifier pushed a commit that referenced this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants