All good
This commit is contained in:
parent
6ea544a0f6
commit
6cc7288126
45 changed files with 929 additions and 1043 deletions
|
|
@ -12,6 +12,7 @@ import tarfile
|
|||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
from pipeline.local_temp import local_tmp_dir
|
||||
from pipeline.utils import download
|
||||
|
||||
URL = "https://postcodes-mapit-static.s3.eu-west-2.amazonaws.com/data/gb-postcodes-v5.tar.bz2"
|
||||
|
|
@ -37,7 +38,7 @@ def main() -> None:
|
|||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
with tempfile.TemporaryDirectory() as cache_dir:
|
||||
with tempfile.TemporaryDirectory(dir=local_tmp_dir()) as cache_dir:
|
||||
cache = Path(cache_dir)
|
||||
archive_path = cache / "gb-postcodes-v5.tar.bz2"
|
||||
extract_dir = cache / "extracted"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue