workers-py 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl
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.
- pywrangler/sync.py +16 -0
- {workers_py-1.2.0.dist-info → workers_py-1.2.1.dist-info}/METADATA +3 -3
- {workers_py-1.2.0.dist-info → workers_py-1.2.1.dist-info}/RECORD +5 -5
- {workers_py-1.2.0.dist-info → workers_py-1.2.1.dist-info}/WHEEL +0 -0
- {workers_py-1.2.0.dist-info → workers_py-1.2.1.dist-info}/entry_points.txt +0 -0
pywrangler/sync.py
CHANGED
|
@@ -152,6 +152,21 @@ def create_workers_venv():
|
|
|
152
152
|
)
|
|
153
153
|
|
|
154
154
|
|
|
155
|
+
MIN_UV_VERSION = (0, 8, 10)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def check_uv_version():
|
|
159
|
+
res = run_command(["uv", "--version"], capture_output=True)
|
|
160
|
+
ver_str = res.stdout.split(" ")[1]
|
|
161
|
+
ver = tuple(int(x) for x in ver_str.split("."))
|
|
162
|
+
if ver >= MIN_UV_VERSION:
|
|
163
|
+
return
|
|
164
|
+
min_version_str = ".".join(str(x) for x in MIN_UV_VERSION)
|
|
165
|
+
logger.error(f"uv version at least {min_version_str} required, have {ver_str}.")
|
|
166
|
+
logger.error("Update uv with `uv self update`.")
|
|
167
|
+
raise click.exceptions.Exit(code=1)
|
|
168
|
+
|
|
169
|
+
|
|
155
170
|
def create_pyodide_venv():
|
|
156
171
|
if PYODIDE_VENV_PATH.is_dir():
|
|
157
172
|
logger.debug(
|
|
@@ -159,6 +174,7 @@ def create_pyodide_venv():
|
|
|
159
174
|
)
|
|
160
175
|
return
|
|
161
176
|
|
|
177
|
+
check_uv_version()
|
|
162
178
|
logger.debug(f"Creating Pyodide virtual environment at {PYODIDE_VENV_PATH}...")
|
|
163
179
|
PYODIDE_VENV_PATH.parent.mkdir(parents=True, exist_ok=True)
|
|
164
180
|
interp_name = _get_uv_pyodide_interp_name()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workers-py
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: A set of libraries and tools for Python Workers
|
|
5
5
|
Project-URL: Homepage, https://github.com/cloudflare/workers-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/cloudflare/workers-py/issues
|
|
@@ -29,7 +29,7 @@ A CLI tool for managing vendored packages in a Python Workers project.
|
|
|
29
29
|
On Linux, you may be able to install the tool globally by running:
|
|
30
30
|
|
|
31
31
|
```
|
|
32
|
-
uv
|
|
32
|
+
uv tool install workers-py
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Alternatively, you can add `workers-py` to your pyproject.toml:
|
|
@@ -60,7 +60,7 @@ uv run --project $REPO_ROOT $REPO_ROOT/src/pywrangler --help
|
|
|
60
60
|
On Linux, to install it globally, you may also be able to run:
|
|
61
61
|
|
|
62
62
|
```
|
|
63
|
-
uv
|
|
63
|
+
uv tool install -e .
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Alternatively, you can add `workers-py` to your pyproject.toml:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
pywrangler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
pywrangler/__main__.py,sha256=BnrUM7YiBmlM4HAn2MI9hP1kVNtzeK_kEgQhRy5HTq0,38
|
|
3
3
|
pywrangler/cli.py,sha256=3hMjtOOib3HaTqCkuMGQe7MbBZNnim2ByHcDY4JxFlw,5091
|
|
4
|
-
pywrangler/sync.py,sha256=
|
|
4
|
+
pywrangler/sync.py,sha256=zTX-zZ5OJ7701N07zGnE0GeSebXGeBKJlFRrhNwBy4M,9961
|
|
5
5
|
pywrangler/utils.py,sha256=wfkT7GbKtgtjHXtV3AjNeb25ohdAfrprdZIlqqidiQU,3269
|
|
6
|
-
workers_py-1.2.
|
|
7
|
-
workers_py-1.2.
|
|
8
|
-
workers_py-1.2.
|
|
9
|
-
workers_py-1.2.
|
|
6
|
+
workers_py-1.2.1.dist-info/METADATA,sha256=o50STsChreiwJ1o3SxrVVUM1vbz4yIrSPLPR495b1_s,1733
|
|
7
|
+
workers_py-1.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
workers_py-1.2.1.dist-info/entry_points.txt,sha256=pt6X-Nv5-gSiKUwrnvLwzlSXs9yP37m7zdTAi8f6nAM,50
|
|
9
|
+
workers_py-1.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|