Skip to content

Commit 4e8d44f

Browse files
committed
prepare for release
1 parent d2135f8 commit 4e8d44f

File tree

9 files changed

+64
-28
lines changed

9 files changed

+64
-28
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dist/
1414
downloads/
1515
eggs/
1616
.eggs/
17-
lib/
17+
# lib/
1818
lib64/
1919
parts/
2020
sdist/

livekit/_ffi_client.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from ctypes import *
2-
import sys
2+
import platform
33
from ._proto import ffi_pb2 as proto_ffi
44
from ._proto import room_pb2 as proto_room
55
from pyee.asyncio import EventEmitter
@@ -8,14 +8,18 @@
88
import threading
99
import logging
1010

11-
if sys.platform == "win32":
12-
libfile = 'livekit_ffi.dll'
13-
elif sys.platform == "darwin":
14-
libfile = 'liblivekit_ffi.dylib'
11+
os = platform.system().lower()
12+
arch = platform.machine().lower()
13+
lib_path = 'lib/{}/{}'.format(os, arch)
14+
15+
if os == "windows":
16+
lib_file = 'livekit_ffi.dll'
17+
elif os == "darwin":
18+
lib_file = 'liblivekit_ffi.dylib'
1519
else:
16-
libfile = 'liblivekit_ffi.so'
20+
lib_file = 'liblivekit_ffi.so'
1721

18-
libpath = pkg_resources.resource_filename('livekit', libfile)
22+
libpath = pkg_resources.resource_filename('livekit', lib_path + '/' + lib_file)
1923

2024
ffi_lib = CDLL(libpath)
2125

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:67ed975ff1774d566bc5f6e1fce12c7d7664fac6dc34e4de709e2f71b5a15f38
3+
size 27826513
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:b6918bcc9777c60caa162bcce3d49abde77536824fa99985263ca9039e94f4b9
3+
size 32760856
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:cac38b392b7e5be8e23a5233d137d89386a7e425d621eac176c36a479cead19e
3+
size 21245952
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:d18dce66a206ba8c61fba3bcb178c8fd23d3b714b58682b6c93284fdf3cac094
3+
size 21245952

livekit/liblivekit_ffi.dylib

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 17 deletions
This file was deleted.

setup.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
from setuptools import setup, find_packages
2+
import pathlib
3+
4+
here = pathlib.Path(__file__).parent.resolve()
5+
long_description = (here / "README.md").read_text(encoding="utf-8")
6+
7+
setup(
8+
name="livekit",
9+
version="0.0.1",
10+
description="A sample Python project",
11+
long_description=long_description,
12+
long_description_content_type="text/markdown",
13+
url="https://github.com/livekit/client-sdk-python",
14+
classifiers=[
15+
# 3 - Alpha
16+
# 4 - Beta
17+
# 5 - Production/Stable
18+
"Development Status :: 3 - Alpha",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: Apache Software License",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3 :: Only",
27+
],
28+
29+
keywords="webrtc, livekit",
30+
packages=["livekit"],
31+
python_requires=">=3.7, <4",
32+
install_requires=["pyee>=9.0.0"],
33+
package_data={
34+
"livekit": ['lib/*/*/*.*'],
35+
},
36+
project_urls={
37+
"Website": "https://livekit.io/",
38+
"Source": "https://github.com/livekit/client-sdk-python/",
39+
},
40+
)

0 commit comments

Comments
 (0)