Skip to content

Conversation

amanjaiswal73892
Copy link
Collaborator

@amanjaiswal73892 amanjaiswal73892 commented Oct 14, 2025

This pull request updates the build and publishing workflow for the Python package and modernizes the packaging configuration to use Hatch instead of setuptools. The changes improve version management, streamline release automation, and enhance compatibility with PyPI and TestPyPI.

Build & Release Workflow Modernization

  • Migrated the GitHub Actions workflow in .github/workflows/pypi.yml to use Hatch for building (hatchling, hatch-vcs), added concurrency controls, and improved artifact handling for more reliable releases.
  • Split publishing into two jobs: stable tags go to PyPI, while pre-release tags (dev/rc/alpha/beta) go to TestPyPI, with appropriate conditional logic for each.

Version Management Improvements

  • Adopted Hatch's VCS-based versioning in pyproject.toml, automatically deriving the package version from git tags and generating a _version.py file.
  • Updated src/agentlab/__init__.py to import __version__ from _version.py, with a fallback for development environments.

Packaging Configuration Updates

  • Switched the build backend from setuptools to hatchling in pyproject.toml, and updated Python version requirements to >=3.11,<3.13. [1] [2]
  • Added configuration to force-exclude the auto-generated _version.py file from formatting tools like Black.

Description by Korbit AI

What change is being made?

Automate release versioning and restructure the PyPI/TestPyPI workflow to build once, publish to PyPI for stable tags and to TestPyPI for dev/rc/alpha/beta tags, sign artifacts, and create a GitHub Release with artifacts uploaded.

Why are these changes being made?

Simplify and harden the release process by centralizing versioning via git tags (using Hatch) and separating production vs. development publishing paths, including automated signing and release notes. Reduces manual steps and ensures consistent, auditable release artifacts.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link

korbit-ai bot commented Oct 14, 2025

Korbit doesn't automatically review large (3000+ lines changed) pull requests such as this one. If you want me to review anyway, use /korbit-review.

@amanjaiswal73892 amanjaiswal73892 marked this pull request as draft October 15, 2025 02:26
@amanjaiswal73892 amanjaiswal73892 removed the request for review from recursix October 15, 2025 02:54
@amanjaiswal73892 amanjaiswal73892 marked this pull request as ready for review October 15, 2025 18:22
Copy link

korbit-ai bot commented Oct 15, 2025

Korbit doesn't automatically review large (3000+ lines changed) pull requests such as this one. If you want me to review anyway, use /korbit-review.

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.

1 participant