Skip to content

Chore: Migrate test project to use uv/hatchling#147

Merged
ModeSevenIndustrialSolutions merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:migrate-to-uv
Jan 18, 2026
Merged

Chore: Migrate test project to use uv/hatchling#147
ModeSevenIndustrialSolutions merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:migrate-to-uv

Conversation

@ModeSevenIndustrialSolutions
Copy link
Contributor

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions commented Jan 16, 2026

  • Migrate this project/repository to use uv/hatchling
  • Update dependabot Python package ecosystem pip -> uv
  • Various pyproject.toml updates and fixes, e.g. add pytest-cov
  • Archive the previous pyproject.toml that used pdm
  • Remove pdm.lock and add uv.lock to repository
  • Exclude dynamically generated versioning file in .gitignore
  • Update documentation to reflect changes
  • Change CLI entry point from cli:run -> cli:app (was broken)
  • Minor tox.ini changes based on copilot feedback
  • Comment out unused jupyterlab dependency due to unpatched CVE

This project now mimicks the majority of actual projects, that have already migrated to the uv/hatchling toolset. The jupyterlab piece is only needed for testing notebooks, which is not a core part of the test project. It can be uncommented on demand, since there is jupyterlab content in the notebooks/ folder we might test with.

Copilot AI review requested due to automatic review settings January 16, 2026 10:18
@github-actions github-actions bot added the chore Code chores (dependency updates, etc) label Jan 16, 2026
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the migrate-to-uv branch 2 times, most recently from 1131c5a to 2960d55 Compare January 16, 2026 10:20
Copy link

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 migrates the test Python project from PDM to uv/hatchling build system. The migration includes updating build configuration, removing PDM-specific files, adding a new lock file for uv, archiving the old configuration, and updating documentation.

Changes:

  • Replaced PDM with uv/hatchling as the build backend and package manager
  • Configured dynamic versioning from VCS tags using hatch-vcs
  • Updated entry point from cli:run to cli:app to match Typer's standard pattern

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Complete rewrite: switched to hatchling build system, added dynamic versioning, consolidated dependency groups, added tool configurations
variations/pdm.toml Archived previous PDM configuration for reference
pdm.lock Removed PDM lock file (2357 lines deleted)
.gitignore Added exclusion for dynamically generated _version.py file
tox.ini Updated to work with uv instead of PDM, removed PDM-specific configuration
src/lfreleng_test_python_project/init.py Changed version import to use hatchling-generated _version.py
README.md Updated documentation with uv-based commands
.github/dependabot.yml Changed package ecosystem from "pip" to "uv"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This comment was marked as outdated.

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the migrate-to-uv branch 2 times, most recently from c1947f3 to f630903 Compare January 16, 2026 10:31
Copilot AI review requested due to automatic review settings January 16, 2026 10:31
Copy link

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Migrate this project/repository to use uv/hatchling
- Update dependabot Python package ecosystem pip -> uv
- Various pyproject.toml updates and fixes, e.g. add pytest-cov
- Archive the previous pyproject.toml that used pdm
- Remove pdm.lock and add uv.lock to repository
- Exclude dynamically generated versioning file in .gitignore
- Update documentation to reflect changes
- Change CLI entry point from cli:run -> cli:app (was broken)
- Minor tox.ini changes based on copilot feedback
- Comment out unused jupyterlab dependency due to unpatched CVE

This project now mimicks the majority of actual projects, that have
already migrated to the uv/hatchling toolset. The jupyterlab
piece is only needed for testing notebooks, which is not a core part
of the test project. It can be uncommented on demand, since there
is jupyterlab content in the notebooks/ folder we might test with.

Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions merged commit 53fa34f into lfreleng-actions:main Jan 18, 2026
18 of 21 checks passed
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions deleted the migrate-to-uv branch January 18, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Code chores (dependency updates, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants