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.
- {portforward-0.7.0 → portforward-0.7.1}/.github/workflows/release.yml +3 -3
- {portforward-0.7.0 → portforward-0.7.1}/Cargo.lock +2 -2
- {portforward-0.7.0 → portforward-0.7.1}/Cargo.toml +2 -2
- {portforward-0.7.0 → portforward-0.7.1}/HISTORY.rst +5 -0
- {portforward-0.7.0 → portforward-0.7.1}/PKG-INFO +4 -4
- {portforward-0.7.0 → portforward-0.7.1}/README.rst +1 -1
- {portforward-0.7.0 → portforward-0.7.1}/pyproject.toml +2 -2
- {portforward-0.7.0 → portforward-0.7.1}/python/portforward/__init__.py +1 -7
- {portforward-0.7.0 → portforward-0.7.1}/tests/test_portforward.py +0 -2
- {portforward-0.7.0 → portforward-0.7.1}/.editorconfig +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/.github/ISSUE_TEMPLATE.md +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/.github/workflows/python-app.yml +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/.gitignore +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/.readthedocs.yml +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/AUTHORS.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/CONTRIBUTING.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/LICENSE +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/Makefile +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/Makefile +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/authors.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/conf.py +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/contributing.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/docs/conf.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/docs/modules.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/history.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/index.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/installation.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/make.bat +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/modules.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/docs/portforward.rst +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/python/portforward/_portforward.pyi +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/python/portforward/py.typed +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/requirements-dev.txt +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/src/lib.rs +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/src/portforward.rs +0 -0
- {portforward-0.7.0 → portforward-0.7.1}/tests/conftest.py +0 -0
- {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.
|
|
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.
|
|
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.
|
|
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
|
+
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.
|
|
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.
|
|
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.
|
|
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"] }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: portforward
|
|
3
|
-
Version: 0.7.
|
|
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
|
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "portforward"
|
|
7
|
-
version = "0.7.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|