workers-py 1.1.7__py3-none-any.whl → 1.1.8__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/__init__.py +0 -1
- pywrangler/sync.py +8 -5
- {workers_py-1.1.7.dist-info → workers_py-1.1.8.dist-info}/METADATA +2 -2
- workers_py-1.1.8.dist-info/RECORD +9 -0
- workers_py-1.1.7.dist-info/RECORD +0 -9
- {workers_py-1.1.7.dist-info → workers_py-1.1.8.dist-info}/WHEEL +0 -0
- {workers_py-1.1.7.dist-info → workers_py-1.1.8.dist-info}/entry_points.txt +0 -0
pywrangler/__init__.py
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
pywrangler/sync.py
CHANGED
|
@@ -22,7 +22,9 @@ logger = logging.getLogger(__name__)
|
|
|
22
22
|
PYPROJECT_TOML_PATH = find_pyproject_toml()
|
|
23
23
|
PROJECT_ROOT = PYPROJECT_TOML_PATH.parent
|
|
24
24
|
VENV_WORKERS_PATH = PROJECT_ROOT / ".venv-workers"
|
|
25
|
+
VENV_WORKERS_TOKEN = PROJECT_ROOT / ".venv-workers/.synced"
|
|
25
26
|
PYODIDE_VENV_PATH = VENV_WORKERS_PATH / "pyodide-venv"
|
|
27
|
+
VENDOR_TOKEN = PROJECT_ROOT / "python_modules/.synced"
|
|
26
28
|
VENV_REQUIREMENTS_PATH = VENV_WORKERS_PATH / "temp-venv-requirements.txt"
|
|
27
29
|
|
|
28
30
|
|
|
@@ -243,6 +245,7 @@ def _install_requirements_to_vendor(requirements: list[str]):
|
|
|
243
245
|
|
|
244
246
|
# Create a pyvenv.cfg file in python_modules to mark it as a virtual environment
|
|
245
247
|
(vendor_path / "pyvenv.cfg").touch()
|
|
248
|
+
VENDOR_TOKEN.write_text("")
|
|
246
249
|
|
|
247
250
|
logger.info(
|
|
248
251
|
f"Packages installed in [bold]{relative_vendor_path}[/bold].",
|
|
@@ -290,6 +293,7 @@ def _install_requirements_to_venv(requirements: list[str]):
|
|
|
290
293
|
str(temp_file_path),
|
|
291
294
|
]
|
|
292
295
|
)
|
|
296
|
+
VENV_WORKERS_TOKEN.write_text("")
|
|
293
297
|
logger.info(
|
|
294
298
|
f"Packages installed in [bold]{relative_venv_workers_path}[/bold].",
|
|
295
299
|
extra={"markup": True},
|
|
@@ -321,19 +325,18 @@ def is_sync_needed():
|
|
|
321
325
|
pyproject_mtime = PYPROJECT_TOML_PATH.stat().st_mtime
|
|
322
326
|
|
|
323
327
|
# Check if .venv-workers exists and get its timestamp
|
|
324
|
-
if not
|
|
328
|
+
if not VENV_WORKERS_TOKEN.exists():
|
|
325
329
|
return True
|
|
326
330
|
|
|
327
|
-
venv_mtime =
|
|
331
|
+
venv_mtime = VENV_WORKERS_TOKEN.stat().st_mtime
|
|
328
332
|
venv_needs_update = pyproject_mtime > venv_mtime
|
|
329
333
|
if venv_needs_update:
|
|
330
334
|
return True
|
|
331
335
|
|
|
332
336
|
# Check if vendor directory exists and get its timestamp
|
|
333
|
-
|
|
334
|
-
if not vendor_path.is_dir():
|
|
337
|
+
if not VENDOR_TOKEN.exists():
|
|
335
338
|
return True
|
|
336
339
|
|
|
337
|
-
vendor_mtime =
|
|
340
|
+
vendor_mtime = VENDOR_TOKEN.stat().st_mtime
|
|
338
341
|
vendor_needs_update = pyproject_mtime > vendor_mtime
|
|
339
342
|
return vendor_needs_update
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workers-py
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.8
|
|
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
|
|
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
A set of libraries and tools for Python Workers.
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
## Pywrangler
|
|
23
|
+
## Pywrangler
|
|
24
24
|
|
|
25
25
|
A CLI tool for managing vendored packages in a Python Workers project.
|
|
26
26
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
pywrangler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
pywrangler/__main__.py,sha256=BnrUM7YiBmlM4HAn2MI9hP1kVNtzeK_kEgQhRy5HTq0,38
|
|
3
|
+
pywrangler/cli.py,sha256=BnGGrdksWP-qBj-b0ipji-61Q0kZJohyr2KZZz-XG5s,5150
|
|
4
|
+
pywrangler/sync.py,sha256=vcaL_jOWCC6vWEaJnTnbnxgdgFeW30pndRcMRWOv5pw,11286
|
|
5
|
+
pywrangler/utils.py,sha256=wfkT7GbKtgtjHXtV3AjNeb25ohdAfrprdZIlqqidiQU,3269
|
|
6
|
+
workers_py-1.1.8.dist-info/METADATA,sha256=rE874u2Io40CgLK1JPBMO5eMTwyychzO14K_jO5Emrc,1749
|
|
7
|
+
workers_py-1.1.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
workers_py-1.1.8.dist-info/entry_points.txt,sha256=pt6X-Nv5-gSiKUwrnvLwzlSXs9yP37m7zdTAi8f6nAM,50
|
|
9
|
+
workers_py-1.1.8.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
pywrangler/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
-
pywrangler/__main__.py,sha256=BnrUM7YiBmlM4HAn2MI9hP1kVNtzeK_kEgQhRy5HTq0,38
|
|
3
|
-
pywrangler/cli.py,sha256=BnGGrdksWP-qBj-b0ipji-61Q0kZJohyr2KZZz-XG5s,5150
|
|
4
|
-
pywrangler/sync.py,sha256=cjqKuId3QSz7K1qUC0-zOF1Fb9ahV2HVybR9-Np5SqE,11135
|
|
5
|
-
pywrangler/utils.py,sha256=wfkT7GbKtgtjHXtV3AjNeb25ohdAfrprdZIlqqidiQU,3269
|
|
6
|
-
workers_py-1.1.7.dist-info/METADATA,sha256=tBk1r9Nk_ch-I1tUJ5biEczlLuPyvPPSp2TPpftuYNY,1750
|
|
7
|
-
workers_py-1.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
workers_py-1.1.7.dist-info/entry_points.txt,sha256=pt6X-Nv5-gSiKUwrnvLwzlSXs9yP37m7zdTAi8f6nAM,50
|
|
9
|
-
workers_py-1.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|