env-canada 0.10.0__py3-none-any.whl → 0.10.2__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.
env_canada/constants.py CHANGED
@@ -1 +1 @@
1
- USER_AGENT = "env_canada/0.8.0"
1
+ USER_AGENT = "env_canada/0.10.2"
env_canada/ec_weather.py CHANGED
@@ -1,8 +1,10 @@
1
+ import copy
1
2
  import csv
2
3
  import logging
3
4
  import re
4
5
  from dataclasses import dataclass
5
6
  from datetime import datetime, timedelta, timezone
7
+
6
8
  import voluptuous as vol
7
9
  from aiohttp import (
8
10
  ClientConnectorDNSError,
@@ -466,7 +468,7 @@ class ECWeather:
466
468
  }
467
469
 
468
470
  # Update alerts
469
- self.alerts = ALERTS_INIT[self.language].copy()
471
+ self.alerts = copy.deepcopy(ALERTS_INIT[self.language])
470
472
  alert_elements = weather_tree.findall("./warnings/event")
471
473
  for alert in alert_elements:
472
474
  title = alert.attrib.get("description")
@@ -1,42 +1,22 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: env_canada
3
- Version: 0.10.0
3
+ Version: 0.10.2
4
4
  Summary: A package to access meteorological data from Environment Canada
5
5
  Author-email: Michael Davie <michael.davie@gmail.com>
6
6
  Maintainer-email: Michael Davie <michael.davie@gmail.com>
7
- License: Copyright (c) 2018 The Python Packaging Authority
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE
26
-
7
+ License-Expression: MIT
27
8
  Project-URL: Homepage, https://github.com/michaeldavie/env_canada
28
9
  Project-URL: Documentation, https://github.com/michaeldavie/env_canada
29
10
  Project-URL: Repository, https://github.com/michaeldavie/env_canada
30
11
  Project-URL: Issues, https://github.com/michaeldavie/env_canada/issues
31
12
  Project-URL: Changelog, https://github.com/michaeldavie/env_canada/blob/master/CHANGELOG.md
32
13
  Classifier: Programming Language :: Python :: 3
33
- Classifier: License :: OSI Approved :: MIT License
34
14
  Classifier: Operating System :: OS Independent
35
15
  Requires-Python: >=3.11
36
16
  Description-Content-Type: text/markdown
37
17
  License-File: LICENSE
38
18
  Requires-Dist: aiohttp>=3.9.0
39
- Requires-Dist: geopy>=2.4.1
19
+ Requires-Dist: geopy>=2.3.0
40
20
  Requires-Dist: imageio>=2.28.0
41
21
  Requires-Dist: lxml>=5.3.0
42
22
  Requires-Dist: numpy>=1.22.2
@@ -1,16 +1,16 @@
1
1
  env_canada/10x20.pbm,sha256=ClKTs2WUmhUhTHAQzPuGwPTICGVBzCvos5l-vHRBE5M,2463
2
2
  env_canada/10x20.pil,sha256=Oki6-TD7b0xFtfm6vxCKsmpEpsZ5Jaia_0v_aDz8bfE,5143
3
3
  env_canada/__init__.py,sha256=O1KVC2GAPTmxAP46FXo9jd8Tq3YMefViowGjuxJ5JJM,366
4
- env_canada/constants.py,sha256=RHa-Hp2H6XroFE9Z5-H0MIUPWlFXUVKmWEidwuWzakE,32
4
+ env_canada/constants.py,sha256=k6Oe20AiFaK_CiM1q7jlYvABkMnNUsC4INTShGEuAoI,33
5
5
  env_canada/ec_aqhi.py,sha256=oE52qfk-AKbHdhTSl5RP3vsWL-50eMRCCRVy9RW-pP4,8080
6
6
  env_canada/ec_cache.py,sha256=zb3n79ul7hUTE0IohDfZbRBLY-siOHPjYzWldMbuPVk,798
7
7
  env_canada/ec_exc.py,sha256=SBJwzmLf94lTx7KYVLfQYrMXYNYUoIxeVXc-BLkuXoE,67
8
8
  env_canada/ec_historical.py,sha256=qMr4RE6vfNiNa_zFolQ0PQGraok8bQtIVjs_o6sJKD4,16276
9
9
  env_canada/ec_hydro.py,sha256=JoBe-QVV8GEeZXCNFscIs2R_spgkbxCZpLt7tL6-NUI,4889
10
10
  env_canada/ec_radar.py,sha256=0SKusJWDTFODdn3D9yrhlkOS-Bv9hhBJM9EBh8TNRlk,12965
11
- env_canada/ec_weather.py,sha256=l-gyXePkHBLW9vidFgiPEm81xevbZCeBKzKDLiLr7Y8,19200
12
- env_canada-0.10.0.dist-info/licenses/LICENSE,sha256=BkgGIGgy9sv-OsI7mRi9dIQ3Su0m4IbjpZlfxv8oBbM,1073
13
- env_canada-0.10.0.dist-info/METADATA,sha256=z3eTytpDqWrjng4_eFp4bbX_3ng16QPJXG_SayaeFHY,12710
14
- env_canada-0.10.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
15
- env_canada-0.10.0.dist-info/top_level.txt,sha256=fw7Pcl9ULBXYvqnAdyBdmwPXW8GSRFmhO0sLZWVfOCc,11
16
- env_canada-0.10.0.dist-info/RECORD,,
11
+ env_canada/ec_weather.py,sha256=CoL9lr7C-0bXFc5CjPR6edK-lZS31OVcr6Yl0SdGED0,19221
12
+ env_canada-0.10.2.dist-info/licenses/LICENSE,sha256=BkgGIGgy9sv-OsI7mRi9dIQ3Su0m4IbjpZlfxv8oBbM,1073
13
+ env_canada-0.10.2.dist-info/METADATA,sha256=0bkHqTUq-1Ot79R6IwdWY5aMU4JW9MLy5AwRBVBqUVQ,11448
14
+ env_canada-0.10.2.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
15
+ env_canada-0.10.2.dist-info/top_level.txt,sha256=fw7Pcl9ULBXYvqnAdyBdmwPXW8GSRFmhO0sLZWVfOCc,11
16
+ env_canada-0.10.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5