Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Dec 16, 2025

in the hope that there isn't a reason this wasn't set up for this repo in the first place, this PR sets up uv workspaces for this monorepo and adopts them in the CI.

Replicates the approach used in the agents repo and accordingly also migrates the build backend to hatch

Copy link
Member

@theomonnom theomonnom left a comment

Choose a reason for hiding this comment

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

SInce we're not using setuptools anymore. I don't think the build-rtc CI is still going to work as-is: https://github.com/livekit/python-sdks/blob/main/.github/workflows/build-rtc.yml

Comment on lines +18 to +22
class CustomBuildHook(BuildHookInterface):
def initialize(self, version, build_data):
"""Force platform-specific wheel due to native libraries"""
build_data["pure_python"] = False
build_data["infer_tag"] = True
Copy link
Member

Choose a reason for hiding this comment

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

Before making any release we should double-check this is working as expected.

Copy link
Member

Choose a reason for hiding this comment

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

Let's make a rc build first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had a look at the artifacts built as part of the rtc-build workflow and they appeared to be fine, anything else we need to check?

@lukasIO
Copy link
Contributor Author

lukasIO commented Dec 16, 2025

SInce we're not using setuptools anymore. I don't think the build-rtc CI is still going to work as-is: https://github.com/livekit/python-sdks/blob/main/.github/workflows/build-rtc.yml

the workflow is succeeding on this PR, what specifically should I double check?

@theomonnom
Copy link
Member

the workflow is succeeding on this PR, what specifically should I double check?

Just checking that the binaries are indeed inside the wheel would be sufficient

Copy link
Contributor

@xianshijing-lk xianshijing-lk left a comment

Choose a reason for hiding this comment

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

one comment, lgtm in general

@echo "$(BOLD)$(CYAN)Installing dependencies...$(RESET)"
@uv sync --all-extras --dev
@echo "$(BOLD)$(GREEN)✓ Dependencies installed$(RESET)"

Copy link
Contributor

Choose a reason for hiding this comment

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

I just went thru the setup as I was doing some manual tests before making the new release.

I got into multiple problems as it was my first time to run the tests on python-sdk. like missing submodule, missing audio files due to lfs, ..etc

I wonder if it makes sense to add a section like
sync: ## Sync repo, deps, and assets to a working dev state (safe to re-run)
@echo "$(BOLD)$(CYAN)🔄 Syncing development environment...$(RESET)"
@git submodule update --init --recursive
@git lfs install
@git lfs pull
@UV sync --dev
@$(MAKE) download-ffi
@echo "$(BOLD)$(GREEN)✓ Sync complete$(RESET)"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good, I slightly modified it and added it under the name bootstrap

@lukasIO lukasIO merged commit d92a7f3 into main Dec 19, 2025
23 checks passed
@lukasIO lukasIO deleted the lukas/setup-uv branch December 19, 2025 11:51
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