postgresql-binaries 0.0.3__tar.gz → 0.0.4__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.
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/PKG-INFO +1 -1
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/pyproject.toml +1 -1
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/src/postgresql_binaries/__init__.py +2 -1
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/README.md +0 -0
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/src/postgresql_binaries/postgresql-17.10.0-aarch64-apple-darwin.tar.gz +0 -0
- {postgresql_binaries-0.0.3 → postgresql_binaries-0.0.4}/src/postgresql_binaries/py.typed +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from functools import cache
|
|
2
2
|
from pathlib import Path
|
|
3
|
+
import shutil
|
|
3
4
|
import tarfile
|
|
4
5
|
|
|
5
6
|
LIB = Path(__file__).parent
|
|
@@ -13,7 +14,7 @@ def bin() -> Path:
|
|
|
13
14
|
# Clean up any previous versions
|
|
14
15
|
for existing in LIB.glob("postgresql-*"):
|
|
15
16
|
if existing.is_dir() and existing.name != stem:
|
|
16
|
-
|
|
17
|
+
shutil.rmtree(existing)
|
|
17
18
|
|
|
18
19
|
if not (LIB / stem).exists():
|
|
19
20
|
with tarfile.open(archive, "r:gz") as tar:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|