ogc-na 0.4.6__py3-none-any.whl → 0.4.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.
Potentially problematic release.
This version of ogc-na might be problematic. Click here for more details.
- ogc/na/_version.py +2 -2
- ogc/na/download.py +4 -0
- {ogc_na-0.4.6.dist-info → ogc_na-0.4.8.dist-info}/METADATA +1 -1
- {ogc_na-0.4.6.dist-info → ogc_na-0.4.8.dist-info}/RECORD +7 -7
- {ogc_na-0.4.6.dist-info → ogc_na-0.4.8.dist-info}/WHEEL +0 -0
- {ogc_na-0.4.6.dist-info → ogc_na-0.4.8.dist-info}/licenses/LICENSE +0 -0
- {ogc_na-0.4.6.dist-info → ogc_na-0.4.8.dist-info}/top_level.txt +0 -0
ogc/na/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.4.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 4,
|
|
31
|
+
__version__ = version = '0.4.8'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 4, 8)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
ogc/na/download.py
CHANGED
|
@@ -20,6 +20,7 @@ def download_file(url: str,
|
|
|
20
20
|
dest: str | Path,
|
|
21
21
|
object_diff: bool = True,
|
|
22
22
|
ignore_diff_errors: bool = True):
|
|
23
|
+
logger.info('Downloading %s to %s', url, dest)
|
|
23
24
|
if not isinstance(dest, Path):
|
|
24
25
|
dest = Path(dest)
|
|
25
26
|
r = requests.get(url)
|
|
@@ -30,12 +31,15 @@ def download_file(url: str,
|
|
|
30
31
|
newcontent = util.load_yaml(content=r.content)
|
|
31
32
|
oldcontent = util.load_yaml(filename=dest)
|
|
32
33
|
overwrite = newcontent != oldcontent
|
|
34
|
+
if overwrite:
|
|
35
|
+
logger.info('Contents have changed, existing file will be overwritten')
|
|
33
36
|
except Exception as e:
|
|
34
37
|
if ignore_diff_errors:
|
|
35
38
|
logger.warning('Error when loading content for diff: %s', str(e))
|
|
36
39
|
else:
|
|
37
40
|
raise
|
|
38
41
|
if overwrite:
|
|
42
|
+
logger.info('Saving %s', dest)
|
|
39
43
|
dest.parent.mkdir(parents=True, exist_ok=True)
|
|
40
44
|
with open(dest, 'wb') as f:
|
|
41
45
|
f.write(r.content)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
ogc/na/__init__.py,sha256=uzcNiJ3uKFNJ1HBfKxIwgAy2HMUFsLAe5RkrUg8ncac,464
|
|
2
|
-
ogc/na/_version.py,sha256=
|
|
2
|
+
ogc/na/_version.py,sha256=l9Fcfei-6qgEJwxd5FCkf4TDq-wrSNmhBwLzsVi57uo,704
|
|
3
3
|
ogc/na/annotate_schema.py,sha256=YeDVHBZf-XzRb0TrUa-On2DxQNnsL-ZoVeC8YR2Yry8,43818
|
|
4
4
|
ogc/na/domain_config.py,sha256=ORzITa1rTrD1MQdpWYrIVW5SwSa9lJd3hnyHIxNgiIU,13947
|
|
5
|
-
ogc/na/download.py,sha256=
|
|
5
|
+
ogc/na/download.py,sha256=PmmCRMQm5ikNAttqbmieOLc5r0MgsGxJyRjVGjnueR4,3558
|
|
6
6
|
ogc/na/exceptions.py,sha256=cwvnq79ih90T9lfwJww0zOx_QwuICaUvlo3Mc8m8ouA,85
|
|
7
7
|
ogc/na/gsp.py,sha256=KGa2G9i8kPefYTHNPUDoXnNyF7Tiwt8K__Ew_Qa7eeg,6048
|
|
8
8
|
ogc/na/ingest_json.py,sha256=tCqQLxudnI7aIG9XslGm0tdvbfIY68HPrtgYfKtWO4A,37889
|
|
@@ -16,8 +16,8 @@ ogc/na/input_filters/__init__.py,sha256=AhE7n_yECwxFKwOM3Jc0ft96TtF5i_Z-fHrS4HYO
|
|
|
16
16
|
ogc/na/input_filters/csv.py,sha256=nFfB1XQF_QApcGGzMqEvzD_b3pBtCtsfUECsZ9UGE6s,2616
|
|
17
17
|
ogc/na/input_filters/xlsx.py,sha256=X9EpFgC9WwHQD8iUJRGdaDYfgiLKjXPdhTVhDmNPAQ0,2730
|
|
18
18
|
ogc/na/input_filters/xml.py,sha256=9qYjp_w5JLInFM48zB15IYH9eTafjp1Aqd_8kfuW3aA,2074
|
|
19
|
-
ogc_na-0.4.
|
|
20
|
-
ogc_na-0.4.
|
|
21
|
-
ogc_na-0.4.
|
|
22
|
-
ogc_na-0.4.
|
|
23
|
-
ogc_na-0.4.
|
|
19
|
+
ogc_na-0.4.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
20
|
+
ogc_na-0.4.8.dist-info/METADATA,sha256=YLylzywoJ9wylyNeVJcF9ICg7zHnI-fufv3itfiVUT0,3917
|
|
21
|
+
ogc_na-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
22
|
+
ogc_na-0.4.8.dist-info/top_level.txt,sha256=Kvy3KhzcIhNPT4_nZuJCmS946ptRr_MDyU4IIhZJhCY,4
|
|
23
|
+
ogc_na-0.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|