Skip to content

Migrate build system from Poetry to Hatchling with dynamic versioning#74

Merged
ypriverol merged 3 commits intodevfrom
copilot/remove-version-and-move-to-hatshling
Mar 30, 2026
Merged

Migrate build system from Poetry to Hatchling with dynamic versioning#74
ypriverol merged 3 commits intodevfrom
copilot/remove-version-and-move-to-hatshling

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

Removes the hardcoded version and migrates pyproject.toml from Poetry to Hatchling, using hatch-vcs to derive version from git tags — matching the pattern used in pmultiqc.

Changes

  • Build system: poetry-corehatchling + hatch-vcs
  • Version: Hardcoded version = "0.0.27"dynamic = ["version"] sourced from VCS tags
  • Metadata format: [tool.poetry] → PEP 621 [project] with updated author syntax
  • Dependencies: [tool.poetry.dependencies][project] dependencies array
  • Entry points: [tool.poetry.urls/scripts][project.urls] / [project.scripts]
  • Hatch config: Added [tool.hatch.version], [tool.hatch.version.raw-options] (local_scheme = "no-local-version"), and [tool.hatch.build.targets.wheel]

@ypriverol
Copy link
Copy Markdown
Member

@copilot the version have to be encoded in someway; because the recipe is failing: https://github.com/bigbio/quantms-utils/actions/runs/23748956530/job/69185245147

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 30, 2026

@copilot the version have to be encoded in someway; because the recipe is failing: https://github.com/bigbio/quantms-utils/actions/runs/23748956530/job/69185245147

The conda recipe was missing hatch-vcs in its host build requirements — hatchling was present but the VCS plugin needed to resolve the dynamic version wasn't installed, causing the Unknown version source: vcs error. Fixed in commit 1880496 by:

  • Adding hatch-vcs to the host requirements in recipe/meta.yaml
  • Updating the recipe version to 0.0.27

Copilot AI requested a review from ypriverol March 30, 2026 14:17
@ypriverol ypriverol merged commit e2f07e8 into dev Mar 30, 2026
3 checks passed
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.

2 participants