Skip to content

INTER-2009: Migrate to uv for dependency and build management#198

Merged
erayaydin merged 11 commits into
mainfrom
chore/migrate-to-uv-inter-2009
Jul 1, 2026
Merged

INTER-2009: Migrate to uv for dependency and build management#198
erayaydin merged 11 commits into
mainfrom
chore/migrate-to-uv-inter-2009

Conversation

@erayaydin

Copy link
Copy Markdown
Member

Summary

  • Replaces pip + setuptools with uv as the single tool for dependency management and builds
  • Drops requirements.txt, test-requirements.txt, setup.py, setup.cfg
  • Updates all CI workflows to use astral-sh/setup-uv + uv sync / uv run
  • Fixes ruff version mismatch in .pre-commit-config.yaml

Replace `pip`/`setuptools` with `uv` across the entire development and
release workflow.

Related-Task: INTER-2009
@erayaydin erayaydin requested a review from Copilot June 25, 2026 13:13
@erayaydin erayaydin self-assigned this Jun 25, 2026
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3073 2234 73% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: bf450e5 by action🐍

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Python SDK repo from pip/setuptools + requirements*.txt to uv (dependency management + CI execution) and switches builds to a PEP 517 backend (hatchling), aligning local workflows and GitHub Actions with uv sync / uv run / uv build.

Changes:

  • Remove requirements.txt, test-requirements.txt, setup.py, and setup.cfg; move dev deps into pyproject.toml dependency groups and switch build backend to hatchling.
  • Update scripts and GitHub Actions workflows to install/sync/run via uv (including uv build for publish).
  • Update pre-commit hooks to align Ruff tooling/versioning and run MyPy via uv.

Reviewed changes

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

Show a summary per file
File Description
test-requirements.txt Removed legacy test dependency list (superseded by pyproject.toml dev group).
requirements.txt Removed legacy runtime dependency list (superseded by pyproject.toml).
setup.py Removed setuptools-based packaging/build logic.
setup.cfg Removed flake8 config (Ruff config remains in pyproject.toml).
pyproject.toml Adds dependency-groups.dev and switches build backend to hatchling.
generate.sh Runs Ruff via uv run instead of ad-hoc pip install.
contributing.md Updates local lint/test/typecheck instructions to use uv.
.pre-commit-config.yaml Aligns Ruff hook rev and runs MyPy via uv run.
.github/workflows/test.yml Uses setup-uv + uv sync and runs tests via uv run pytest.
.github/workflows/lint.yml Uses setup-uv + uv sync and runs Ruff/MyPy via uv run.
.github/workflows/functional_tests.yml Uses setup-uv + uv sync and runs functional checks via uv run.
.github/workflows/coverage-report.yml Uses setup-uv + uv sync and runs coverage commands via uv run.
.github/workflows/coverage-diff.yml Uses setup-uv + uv sync and runs coverage commands via uv run.
.github/workflows/check-templates-consistency.yml Updates generator command to install/sync via uv before running generate.sh.
.github/workflows/release.yml Prepares release workflow environment using uv sync.
.github/workflows/publish.yml Builds distributions using uv build instead of setup.py.

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

Comment thread pyproject.toml
Comment thread contributing.md

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 25 out of 27 changed files in this pull request and generated 5 comments.

Comment thread template/README.pypi.mustache Outdated
Comment thread README.pypi.md Outdated
Comment thread docker-compose.yml Outdated
Comment thread docker-compose.yml Outdated
Comment thread .pre-commit-config.yaml
@erayaydin erayaydin force-pushed the chore/migrate-to-uv-inter-2009 branch from df5f68f to 1de0eb7 Compare June 26, 2026 15:14
@erayaydin erayaydin force-pushed the chore/migrate-to-uv-inter-2009 branch from 1de0eb7 to 32ada18 Compare June 26, 2026 15:17
@erayaydin erayaydin requested a review from Copilot June 26, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 25 out of 27 changed files in this pull request and generated 2 comments.

Comment thread template/README.pypi.mustache
Comment thread template/README.mustache
@erayaydin erayaydin marked this pull request as ready for review June 26, 2026 15:27
@erayaydin erayaydin force-pushed the chore/migrate-to-uv-inter-2009 branch from ebab08a to f6d0565 Compare June 30, 2026 14:01
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

@erayaydin erayaydin merged commit 236c2fe into main Jul 1, 2026
23 checks passed
@erayaydin erayaydin deleted the chore/migrate-to-uv-inter-2009 branch July 1, 2026 10:38
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