streamlit-webrtc 0.53.0__tar.gz → 0.53.2__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.
Files changed (26) hide show
  1. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/PKG-INFO +1 -1
  2. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/pyproject.toml +5 -28
  3. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/__init__.py +3 -7
  4. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/.gitignore +0 -0
  5. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/LICENSE +0 -0
  6. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/README.md +0 -0
  7. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/_compat.py +0 -0
  8. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/component.py +0 -0
  9. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/components_callbacks.py +0 -0
  10. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/config.py +0 -0
  11. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/credentials.py +0 -0
  12. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/eventloop.py +0 -0
  13. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/factory.py +0 -0
  14. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/frontend/dist/assets/index-1ywg1u80.js +0 -0
  15. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/frontend/dist/index.html +0 -0
  16. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/mix.py +0 -0
  17. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/models.py +0 -0
  18. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/process.py +0 -0
  19. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/py.typed +0 -0
  20. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/receive.py +0 -0
  21. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/relay.py +0 -0
  22. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/server.py +0 -0
  23. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/session_info.py +0 -0
  24. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/shutdown.py +0 -0
  25. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/source.py +0 -0
  26. {streamlit_webrtc-0.53.0 → streamlit_webrtc-0.53.2}/streamlit_webrtc/webrtc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-webrtc
3
- Version: 0.53.0
3
+ Version: 0.53.2
4
4
  Summary: Real-time video and audio processing on Streamlit
5
5
  Project-URL: Repository, https://github.com/whitphx/streamlit-webrtc
6
6
  Author-email: "Yuichiro Tachibana (Tsuchiya)" <t.yic.yt@gmail.com>
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "streamlit-webrtc"
3
- version = "0.53.0"
4
3
  description = "Real-time video and audio processing on Streamlit"
5
4
  authors = [{ name = "Yuichiro Tachibana (Tsuchiya)", email = "t.yic.yt@gmail.com" }]
6
5
  requires-python = ">=3.9,!=3.9.7" # 3.9.7 is excluded due to https://github.com/streamlit/streamlit/pull/5168
7
6
  readme = "README.md"
8
7
  license = "MIT"
8
+ dynamic = ["version"]
9
9
  dependencies = [
10
10
  # For allow-same-origin, >=0.73.0 is required. See https://blog.streamlit.io/streamlit-components-security-and-a-five-month-quest-to-ship-a-single-line-of-code/
11
11
  # 0.84.0 has an error at marshalling component values.
@@ -35,6 +35,9 @@ dev = [
35
35
  "bump-my-version>=1.0.2",
36
36
  ]
37
37
 
38
+ [tool.hatch.version]
39
+ source = "vcs"
40
+
38
41
  [tool.hatch.build.targets.sdist]
39
42
  include = ["/streamlit_webrtc"]
40
43
  exclude = ["/streamlit_webrtc/frontend", "!/streamlit_webrtc/frontend/dist"]
@@ -44,34 +47,8 @@ include = ["/streamlit_webrtc"]
44
47
  exclude = ["/streamlit_webrtc/frontend", "!/streamlit_webrtc/frontend/dist"]
45
48
 
46
49
  [build-system]
47
- requires = ["hatchling"]
50
+ requires = ["hatchling", "hatch-vcs"]
48
51
  build-backend = "hatchling.build"
49
52
 
50
53
  [tool.ruff.lint]
51
54
  extend-select = ["I"]
52
-
53
- [tool.bumpversion]
54
- version = "0.53.0"
55
- parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
56
- serialize = ["{major}.{minor}.{patch}"]
57
- search = "{current_version}"
58
- replace = "{new_version}"
59
- regex = false
60
- ignore_missing_version = false
61
- ignore_missing_files = false
62
- tag = true
63
- sign_tags = false
64
- tag_name = "v{new_version}"
65
- tag_message = "Bump version: {current_version} → {new_version}"
66
- allow_dirty = false
67
- commit = true
68
- message = "Bump version: {current_version} → {new_version}"
69
- commit_args = ""
70
- setup_hooks = []
71
- pre_commit_hooks = []
72
- post_commit_hooks = []
73
-
74
- [[tool.bumpversion.files]]
75
- filename = "pyproject.toml"
76
- search = 'version = "{current_version}"'
77
- replace = 'version = "{new_version}"'
@@ -1,10 +1,6 @@
1
1
  """streamlit-webrtc"""
2
2
 
3
- try:
4
- import importlib.metadata as importlib_metadata
5
- except ModuleNotFoundError:
6
- # Python < 3.8
7
- import importlib_metadata # type: ignore
3
+ import importlib.metadata
8
4
 
9
5
  from .component import (
10
6
  WebRtcStreamerContext,
@@ -47,8 +43,8 @@ from .webrtc import (
47
43
  # https://github.com/python-poetry/poetry/issues/144#issuecomment-623927302
48
44
  # https://github.com/python-poetry/poetry/pull/2366#issuecomment-652418094
49
45
  try:
50
- __version__ = importlib_metadata.version(__name__)
51
- except importlib_metadata.PackageNotFoundError:
46
+ __version__ = importlib.metadata.version(__name__)
47
+ except importlib.metadata.PackageNotFoundError:
52
48
  pass
53
49
 
54
50
  # For backward compatibility