portforward 0.7.0__tar.gz → 0.7.1__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.

Potentially problematic release.


This version of portforward might be problematic. Click here for more details.

Files changed (37) hide show
  1. {portforward-0.7.0 → portforward-0.7.1}/.github/workflows/release.yml +3 -3
  2. {portforward-0.7.0 → portforward-0.7.1}/Cargo.lock +2 -2
  3. {portforward-0.7.0 → portforward-0.7.1}/Cargo.toml +2 -2
  4. {portforward-0.7.0 → portforward-0.7.1}/HISTORY.rst +5 -0
  5. {portforward-0.7.0 → portforward-0.7.1}/PKG-INFO +4 -4
  6. {portforward-0.7.0 → portforward-0.7.1}/README.rst +1 -1
  7. {portforward-0.7.0 → portforward-0.7.1}/pyproject.toml +2 -2
  8. {portforward-0.7.0 → portforward-0.7.1}/python/portforward/__init__.py +1 -7
  9. {portforward-0.7.0 → portforward-0.7.1}/tests/test_portforward.py +0 -2
  10. {portforward-0.7.0 → portforward-0.7.1}/.editorconfig +0 -0
  11. {portforward-0.7.0 → portforward-0.7.1}/.github/ISSUE_TEMPLATE.md +0 -0
  12. {portforward-0.7.0 → portforward-0.7.1}/.github/workflows/python-app.yml +0 -0
  13. {portforward-0.7.0 → portforward-0.7.1}/.gitignore +0 -0
  14. {portforward-0.7.0 → portforward-0.7.1}/.readthedocs.yml +0 -0
  15. {portforward-0.7.0 → portforward-0.7.1}/AUTHORS.rst +0 -0
  16. {portforward-0.7.0 → portforward-0.7.1}/CONTRIBUTING.rst +0 -0
  17. {portforward-0.7.0 → portforward-0.7.1}/LICENSE +0 -0
  18. {portforward-0.7.0 → portforward-0.7.1}/Makefile +0 -0
  19. {portforward-0.7.0 → portforward-0.7.1}/docs/Makefile +0 -0
  20. {portforward-0.7.0 → portforward-0.7.1}/docs/authors.rst +0 -0
  21. {portforward-0.7.0 → portforward-0.7.1}/docs/conf.py +0 -0
  22. {portforward-0.7.0 → portforward-0.7.1}/docs/contributing.rst +0 -0
  23. {portforward-0.7.0 → portforward-0.7.1}/docs/docs/conf.rst +0 -0
  24. {portforward-0.7.0 → portforward-0.7.1}/docs/docs/modules.rst +0 -0
  25. {portforward-0.7.0 → portforward-0.7.1}/docs/history.rst +0 -0
  26. {portforward-0.7.0 → portforward-0.7.1}/docs/index.rst +0 -0
  27. {portforward-0.7.0 → portforward-0.7.1}/docs/installation.rst +0 -0
  28. {portforward-0.7.0 → portforward-0.7.1}/docs/make.bat +0 -0
  29. {portforward-0.7.0 → portforward-0.7.1}/docs/modules.rst +0 -0
  30. {portforward-0.7.0 → portforward-0.7.1}/docs/portforward.rst +0 -0
  31. {portforward-0.7.0 → portforward-0.7.1}/python/portforward/_portforward.pyi +0 -0
  32. {portforward-0.7.0 → portforward-0.7.1}/python/portforward/py.typed +0 -0
  33. {portforward-0.7.0 → portforward-0.7.1}/requirements-dev.txt +0 -0
  34. {portforward-0.7.0 → portforward-0.7.1}/src/lib.rs +0 -0
  35. {portforward-0.7.0 → portforward-0.7.1}/src/portforward.rs +0 -0
  36. {portforward-0.7.0 → portforward-0.7.1}/tests/conftest.py +0 -0
  37. {portforward-0.7.0 → portforward-0.7.1}/tests/resources.yaml +0 -0
@@ -21,7 +21,7 @@ jobs:
21
21
  strategy:
22
22
  matrix:
23
23
  target: [x86_64, x86, aarch64]
24
- version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
24
+ version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
25
25
  steps:
26
26
  - uses: actions/checkout@v3
27
27
  - uses: actions/setup-python@v4
@@ -45,7 +45,7 @@ jobs:
45
45
  strategy:
46
46
  matrix:
47
47
  target: [x64, x86]
48
- version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
48
+ version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
49
49
  steps:
50
50
  - uses: actions/checkout@v3
51
51
  - uses: actions/setup-python@v4
@@ -69,7 +69,7 @@ jobs:
69
69
  strategy:
70
70
  matrix:
71
71
  target: [x86_64, aarch64]
72
- version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
72
+ version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
73
73
  steps:
74
74
  - uses: actions/checkout@v3
75
75
  - uses: actions/setup-python@v4
@@ -1,6 +1,6 @@
1
1
  # This file is automatically @generated by Cargo.
2
2
  # It is not intended for manual editing.
3
- version = 3
3
+ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "ahash"
@@ -1142,7 +1142,7 @@ checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
1142
1142
 
1143
1143
  [[package]]
1144
1144
  name = "portforward"
1145
- version = "0.7.0"
1145
+ version = "0.7.1"
1146
1146
  dependencies = [
1147
1147
  "anyhow",
1148
1148
  "env_logger",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "portforward"
3
- version = "0.7.0"
3
+ version = "0.7.1"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -28,7 +28,7 @@ log = "0.4.17"
28
28
  env_logger = "0.10.0"
29
29
  # tokio
30
30
  tokio = { version = "1.27.0", features = ["full"] }
31
- tokio-util = "0.7.0"
31
+ tokio-util = "0.7.1"
32
32
  tokio-stream = { version = "0.1.9", features = ["net"] }
33
33
  # k8s
34
34
  kube = { version = "^0.81.0", default-features = false, features = ["admission"] }
@@ -2,6 +2,11 @@
2
2
  History
3
3
  =======
4
4
 
5
+ 0.7.1 (2024-12-15)
6
+ ------------------
7
+ * Allow "/" in strings
8
+ * Drop support for Python 3.8
9
+
5
10
  0.7.0 (2024-10-18)
6
11
  ------------------
7
12
  * Allow binding to a local random free port
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: portforward
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -18,9 +18,9 @@ Author-email: Sebastian Ziemann <corka149@mailbox.org>
18
18
  License: MIT License
19
19
  Requires-Python: >=3.7
20
20
  Description-Content-Type: text/x-rst; charset=UTF-8
21
- Project-URL: Documentation, https://portforward.readthedocs.io
22
- Project-URL: Changelog, https://github.com/pytogo/portforward/blob/main/HISTORY.rst
23
21
  Project-URL: Repository, https://github.com/pytogo/portforward.git
22
+ Project-URL: Changelog, https://github.com/pytogo/portforward/blob/main/HISTORY.rst
23
+ Project-URL: Documentation, https://portforward.readthedocs.io
24
24
 
25
25
  ===========
26
26
  portforward
@@ -64,11 +64,11 @@ Wheels are available for:
64
64
 
65
65
  with Python versions:
66
66
 
67
- * 3.8
68
67
  * 3.9
69
68
  * 3.10
70
69
  * 3.11
71
70
  * 3.12
71
+ * 3.13
72
72
 
73
73
  **Requirements for installation from source**
74
74
 
@@ -40,11 +40,11 @@ Wheels are available for:
40
40
 
41
41
  with Python versions:
42
42
 
43
- * 3.8
44
43
  * 3.9
45
44
  * 3.10
46
45
  * 3.11
47
46
  * 3.12
47
+ * 3.13
48
48
 
49
49
  **Requirements for installation from source**
50
50
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "portforward"
7
- version = "0.7.0"
7
+ version = "0.7.1"
8
8
  authors = [{ name = "Sebastian Ziemann", email = "corka149@mailbox.org" }]
9
9
  description = "Easy Kubernetes Port-Forward For Python"
10
10
  readme = "README.rst"
@@ -34,7 +34,7 @@ module-name = "portforward._portforward"
34
34
  python-source = "python"
35
35
 
36
36
  [tool.bumpversion]
37
- current_version = "0.7.0"
37
+ current_version = "0.7.1"
38
38
  tag = true
39
39
  commit = true
40
40
 
@@ -2,7 +2,7 @@
2
2
  Easy Kubernetes Port-Forward For Python
3
3
  """
4
4
 
5
- __version__ = "0.7.0"
5
+ __version__ = "0.7.1"
6
6
 
7
7
  import asyncio
8
8
  import contextlib
@@ -199,9 +199,6 @@ def _validate_str(arg_name, arg) -> str:
199
199
  if len(arg) == 0:
200
200
  raise ValueError(f"{arg_name} cannot be an empty str")
201
201
 
202
- if "/" in arg:
203
- raise ValueError(f"{arg_name} contains illegal character '/'")
204
-
205
202
  return arg
206
203
 
207
204
 
@@ -253,7 +250,4 @@ def _kube_context(context):
253
250
  if not isinstance(context, str):
254
251
  raise ValueError(f"kube_context={context} is not a valid str")
255
252
 
256
- if "/" in context:
257
- raise ValueError("kube_context contains illegal character '/'")
258
-
259
253
  return context
@@ -157,12 +157,10 @@ def test_portforward_from_port_zero_assigns_port(kind_cluster: KindCluster):
157
157
  [
158
158
  # Namespace
159
159
  ("", "web", 9000, 80),
160
- ("/test", "web", 9000, 80),
161
160
  (1337, "web", 9000, 80),
162
161
  (None, "web", 9000, 80),
163
162
  # Pod name
164
163
  ("test", "", 9000, 80),
165
- ("test", "web/", 9000, 80),
166
164
  ("test", 1337, 9000, 80),
167
165
  ("test", None, 9000, 80),
168
166
  # From port
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