Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions livekit-api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "livekit-api"
version = "0.8.0"
dynamic = ["version"]
description = "Python Server API for LiveKit"
readme = "README.md"
requires-python = ">=3.9.0"
Expand Down Expand Up @@ -40,3 +40,12 @@ 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"]
64 changes: 0 additions & 64 deletions livekit-api/setup.py

This file was deleted.

15 changes: 12 additions & 3 deletions livekit-protocol/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "livekit-protocol"
version = "1.1.1"
dynamic = ["version"]
description = "Python protocol stubs for LiveKit"
requires-python = ">=3.7.0"
license = "Apache-2.0"
Expand All @@ -31,3 +31,12 @@ dependencies = [
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"]
58 changes: 0 additions & 58 deletions livekit-protocol/setup.py

This file was deleted.

22 changes: 22 additions & 0 deletions livekit-rtc/hatch_build.py
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
23 changes: 20 additions & 3 deletions livekit-rtc/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=42", "wheel", "requests"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "requests"]
build-backend = "hatchling.build"

[project]
name = "livekit"
version = "0.16.8"
dynamic = ["version"]
description = "Python Real-time SDK for LiveKit"
readme = "README.md"
requires-python = ">=3.9.0"
Expand Down Expand Up @@ -35,6 +35,23 @@ Documentation = "https://docs.livekit.io"
Website = "https://livekit.io/"
Source = "https://github.com/livekit/python-sdks/"

[tool.hatch.version]
path = "livekit/rtc/version.py"

[tool.hatch.build.targets.wheel]
packages = ["livekit"]
artifacts = [
"livekit/rtc/resources/*.so",
"livekit/rtc/resources/*.dylib",
"livekit/rtc/resources/*.dll",
]

[tool.hatch.build.targets.wheel.hooks.custom]
path = "hatch_build.py"

[tool.hatch.build.targets.sdist]
include = ["/livekit", "/rust-sdks"]

[tool.cibuildwheel]
build = "cp39-*"
skip = "*-musllinux_*" # not supported (libwebrtc is using glibc)
Expand Down
76 changes: 0 additions & 76 deletions livekit-rtc/setup.py

This file was deleted.

Loading