-
Notifications
You must be signed in to change notification settings - Fork 111
setup uv workspace #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
setup uv workspace #542
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f888c4a
setup uv workspace
lukasIO 87bceb0
fix dependency install
lukasIO 0ae2588
update license in pyproject
lukasIO 77602f3
update other ci workflows to use uv
lukasIO f8227fa
fix format check
lukasIO ecf6ccc
fix
lukasIO 5e587cd
fix type check
lukasIO 683e065
remove flag
lukasIO 00cd6c2
next attempt
lukasIO b74f405
fix install flow
lukasIO 8abdb67
migrate build backend to hatch (#543)
lukasIO 47921eb
update lock file
lukasIO 0f5ec0e
add workspace packages to root dependencies
lukasIO 2bef463
remove setuptools dep
lukasIO b62caba
move mypy config into project
lukasIO 5bc55c6
make tests pass
lukasIO 9c96e94
add todo
lukasIO 8611fd0
add makefile
lukasIO 379dcef
Merge branch 'main' into lukas/setup-uv
lukasIO 469a7ee
add wheel build command
lukasIO bb69a59
bootstrap
lukasIO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,51 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools>=42", | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "livekit-api" | ||
| dynamic = ["version"] | ||
| description = "Python Server API for LiveKit" | ||
| readme = "README.md" | ||
| requires-python = ">=3.9.0" | ||
| license = "Apache-2.0" | ||
| keywords = ["webrtc", "realtime", "audio", "video", "livekit"] | ||
| authors = [ | ||
| { name = "LiveKit", email = "support@livekit.io" } | ||
| ] | ||
| build-backend = "setuptools.build_meta" | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
| "Topic :: Multimedia :: Sound/Audio", | ||
| "Topic :: Multimedia :: Video", | ||
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| ] | ||
| dependencies = [ | ||
| "pyjwt>=2.0.0", | ||
| "aiohttp>=3.9.0", | ||
| "protobuf>=4", | ||
| "types-protobuf>=4", | ||
| "livekit-protocol>=1.1.1,<2.0.0", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Documentation = "https://docs.livekit.io" | ||
| Website = "https://livekit.io/" | ||
| Source = "https://github.com/livekit/python-sdks/" | ||
|
|
||
| [tool.uv.sources] | ||
| livekit-protocol = { workspace = true } | ||
|
|
||
| [tool.hatch.version] | ||
| path = "livekit/api/version.py" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["livekit"] | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| include = ["/livekit"] |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "livekit-protocol" | ||
| dynamic = ["version"] | ||
| description = "Python protocol stubs for LiveKit" | ||
| requires-python = ">=3.7.0" | ||
| license = "Apache-2.0" | ||
| readme = { content-type = "text/plain", text = "Python protocol stubs for LiveKit" } | ||
| keywords = ["webrtc", "realtime", "audio", "video", "livekit"] | ||
| authors = [ | ||
| { name = "LiveKit", email = "support@livekit.io" } | ||
| ] | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| ] | ||
| dependencies = [ | ||
| "protobuf>=4", | ||
| "types-protobuf>=4", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Documentation = "https://docs.livekit.io" | ||
| Website = "https://livekit.io/" | ||
| Source = "https://github.com/livekit/python-sdks/" | ||
|
|
||
| [tool.hatch.version] | ||
| path = "livekit/protocol/version.py" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["livekit"] | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| include = ["/livekit"] |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Copyright 2023 LiveKit, Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| from hatchling.builders.hooks.plugin.interface import BuildHookInterface | ||
|
|
||
|
|
||
| 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 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?