opuslib-next 1.1.2__tar.gz → 1.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/PKG-INFO +4 -11
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/api/__init__.py +15 -1
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/pyproject.toml +3 -3
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/LICENSE +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/README.md +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/__init__.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/api/ctl.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/api/decoder.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/api/encoder.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/api/info.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/classes.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/constants.py +0 -0
- {opuslib_next-1.1.2 → opuslib_next-1.1.4}/opuslib_next/exceptions.py +0 -0
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: opuslib_next
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: Python bindings to the libopus, IETF low-delay audio codec
|
|
5
|
-
Home-page: https://github.com/kalicyh/opuslib-next
|
|
6
5
|
License: BSD-3-Clause
|
|
7
6
|
Author: kalicyh
|
|
8
7
|
Author-email: kalicyh@qq.com
|
|
8
|
+
Requires-Python: >=3.10,<4.0
|
|
9
9
|
Classifier: License :: OSI Approved :: BSD License
|
|
10
|
-
Classifier: Programming Language :: Python :: 2
|
|
11
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
12
10
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.4
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
23
15
|
Project-URL: Documentation, https://github.com/kalicyh/opuslib-next
|
|
16
|
+
Project-URL: Homepage, https://github.com/kalicyh/opuslib-next
|
|
24
17
|
Project-URL: Repository, https://github.com/kalicyh/opuslib-next/issues
|
|
25
18
|
Description-Content-Type: text/markdown
|
|
26
19
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"""OpusLib Package."""
|
|
7
7
|
|
|
8
8
|
import ctypes # type: ignore
|
|
9
|
-
|
|
9
|
+
import os
|
|
10
|
+
import platform
|
|
10
11
|
from ctypes.util import find_library # type: ignore
|
|
11
12
|
|
|
12
13
|
__author__ = 'kalicyh <kalicyh@qq.com>'
|
|
@@ -16,6 +17,19 @@ __license__ = 'BSD 3-Clause License'
|
|
|
16
17
|
|
|
17
18
|
lib_location = find_library('opus')
|
|
18
19
|
|
|
20
|
+
if lib_location is None:
|
|
21
|
+
# find opus library in macOS
|
|
22
|
+
if platform.system() == 'Darwin':
|
|
23
|
+
lib_paths = [
|
|
24
|
+
'/opt/homebrew/lib/libopus.dylib',
|
|
25
|
+
'/usr/local/lib/libopus.dylib',
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
for path in lib_paths:
|
|
29
|
+
if os.path.exists(path):
|
|
30
|
+
lib_location = path
|
|
31
|
+
break
|
|
32
|
+
|
|
19
33
|
if lib_location is None:
|
|
20
34
|
raise Exception(
|
|
21
35
|
'Could not find Opus library. Make sure it is installed.')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "opuslib_next"
|
|
3
|
-
version = "1.1.
|
|
3
|
+
version = "1.1.4"
|
|
4
4
|
description = "Python bindings to the libopus, IETF low-delay audio codec"
|
|
5
5
|
authors = ["kalicyh <kalicyh@qq.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -10,11 +10,11 @@ documentation = "https://github.com/kalicyh/opuslib-next"
|
|
|
10
10
|
repository = "https://github.com/kalicyh/opuslib-next/issues"
|
|
11
11
|
|
|
12
12
|
[tool.poetry.dependencies]
|
|
13
|
-
|
|
13
|
+
python = "^3.10"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
[tool.poetry.group.dev.dependencies]
|
|
17
|
-
python = "^3.
|
|
17
|
+
python = "^3.10"
|
|
18
18
|
setuptools = "^75.8.0"
|
|
19
19
|
wheel = "^0.45.1"
|
|
20
20
|
twine = "^6.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|