workers-py 1.1.4__tar.gz → 1.1.5__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.
@@ -2,6 +2,14 @@
2
2
 
3
3
  <!-- version list -->
4
4
 
5
+ ## v1.1.5 (2025-08-26)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Lock pyodide-build to fix running on Py 3.12
10
+ ([`2f301f4`](https://github.com/cloudflare/workers-py/commit/2f301f483be59ead2a799a0e8cba6291e428080b))
11
+
12
+
5
13
  ## v1.1.4 (2025-08-06)
6
14
 
7
15
  ### Bug Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workers-py
3
- Version: 1.1.4
3
+ Version: 1.1.5
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "workers-py"
7
- version = "1.1.4"
7
+ version = "1.1.5"
8
8
  description = "A set of libraries and tools for Python Workers"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -55,6 +55,10 @@ def check_wrangler_config():
55
55
  raise click.exceptions.Exit(code=1)
56
56
 
57
57
 
58
+ def _get_python_version():
59
+ return os.environ.get("_PYWRANGLER_PYTHON_VERSION", "3.12")
60
+
61
+
58
62
  def create_workers_venv():
59
63
  """
60
64
  Creates a virtual environment at `VENV_WORKERS_PATH` if it doesn't exist.
@@ -64,8 +68,10 @@ def create_workers_venv():
64
68
  return
65
69
 
66
70
  logger.debug(f"Creating virtual environment at {VENV_WORKERS_PATH}...")
67
- python = os.environ.get("_PYWRANGLER_PYTHON_VERSION", "python3.12")
68
- run_command(["uv", "venv", str(VENV_WORKERS_PATH), "--python", python])
71
+ python_version = _get_python_version()
72
+ run_command(
73
+ ["uv", "venv", str(VENV_WORKERS_PATH), "--python", f"python{python_version}"]
74
+ )
69
75
 
70
76
 
71
77
  def _get_pyodide_cli_path():
@@ -99,7 +105,14 @@ def install_pyodide_build():
99
105
  run_command(["uv", "pip", "install", "-p", str(venv_python_executable), "pip"])
100
106
 
101
107
  run_command(
102
- ["uv", "pip", "install", "-p", str(venv_python_executable), "pyodide-build"]
108
+ [
109
+ "uv",
110
+ "pip",
111
+ "install",
112
+ "-p",
113
+ str(venv_python_executable),
114
+ "pyodide-build==0.30.7",
115
+ ]
103
116
  )
104
117
 
105
118
 
@@ -111,6 +124,12 @@ def create_pyodide_venv():
111
124
  )
112
125
  return
113
126
 
127
+ # Workaround to fix caching issue on some machines.
128
+ #
129
+ # Fix is here: pyodide/pyodide-build#239
130
+ logger.debug("Installing xbuildenv...")
131
+ run_command([str(pyodide_cli_path), "xbuildenv", "install"])
132
+
114
133
  logger.debug(f"Creating Pyodide virtual environment at {PYODIDE_VENV_PATH}...")
115
134
  PYODIDE_VENV_PATH.parent.mkdir(parents=True, exist_ok=True)
116
135
  run_command([str(pyodide_cli_path), "venv", str(PYODIDE_VENV_PATH)])
@@ -402,7 +402,7 @@ wheels = [
402
402
 
403
403
  [[package]]
404
404
  name = "workers-py"
405
- version = "1.1.4"
405
+ version = "1.1.5"
406
406
  source = { editable = "." }
407
407
  dependencies = [
408
408
  { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes