python-weather 2.2.7__tar.gz → 2.2.8__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.
Files changed (20) hide show
  1. {python_weather-2.2.7/python_weather.egg-info → python_weather-2.2.8}/PKG-INFO +6 -5
  2. {python_weather-2.2.7 → python_weather-2.2.8}/pyproject.toml +6 -4
  3. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/client.py +3 -2
  4. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/forecast.py +2 -2
  5. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/version.py +1 -1
  6. {python_weather-2.2.7 → python_weather-2.2.8/python_weather.egg-info}/PKG-INFO +6 -5
  7. python_weather-2.2.8/python_weather.egg-info/requires.txt +9 -0
  8. python_weather-2.2.7/python_weather.egg-info/requires.txt +0 -9
  9. {python_weather-2.2.7 → python_weather-2.2.8}/LICENSE +0 -0
  10. {python_weather-2.2.7 → python_weather-2.2.8}/MANIFEST.in +0 -0
  11. {python_weather-2.2.7 → python_weather-2.2.8}/README.md +0 -0
  12. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/__init__.py +0 -0
  13. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/base.py +0 -0
  14. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/constants.py +0 -0
  15. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/enums.py +0 -0
  16. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather/errors.py +0 -0
  17. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather.egg-info/SOURCES.txt +0 -0
  18. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather.egg-info/dependency_links.txt +0 -0
  19. {python_weather-2.2.7 → python_weather-2.2.8}/python_weather.egg-info/top_level.txt +0 -0
  20. {python_weather-2.2.7 → python_weather-2.2.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-weather
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: A free and asynchronous weather API wrapper made in Python, for Python.
5
5
  Author: null8626
6
6
  License-Expression: MIT
@@ -30,17 +30,18 @@ Classifier: Programming Language :: Python :: 3.11
30
30
  Classifier: Programming Language :: Python :: 3.12
31
31
  Classifier: Programming Language :: Python :: 3.13
32
32
  Classifier: Programming Language :: Python :: 3.14
33
+ Classifier: Programming Language :: Python :: 3.15
33
34
  Requires-Python: >=3.10
34
35
  Description-Content-Type: text/markdown
35
36
  License-File: LICENSE
36
37
  Requires-Dist: aiohttp>=3.14.5
37
38
  Provides-Extra: dev
38
39
  Requires-Dist: mock>=5.2.0; extra == "dev"
39
- Requires-Dist: pytest>=9.1.1; extra == "dev"
40
- Requires-Dist: pytest-asyncio>=1.4.0; extra == "dev"
40
+ Requires-Dist: pytest>=9.2.0; extra == "dev"
41
+ Requires-Dist: pytest-asyncio>=1.5.0; extra == "dev"
41
42
  Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
42
- Requires-Dist: multidict>=6.8.0; extra == "dev"
43
- Requires-Dist: yarl>=1.24.5; extra == "dev"
43
+ Requires-Dist: multidict>=7.2.1; extra == "dev"
44
+ Requires-Dist: yarl>=1.25.1; extra == "dev"
44
45
  Dynamic: license-file
45
46
 
46
47
  # [python-weather][pypi-url] [![pypi][pypi-image]][pypi-url] [![pypi downloads][pypi-downloads-image]][pypi-url] [![codacy-badge][codacy-image]][codacy-url] [![codecov-badge][codecov-image]][codecov-url] [![ko-fi][ko-fi-brief-image]][ko-fi-url]
@@ -3,7 +3,7 @@ requires = ["setuptools"]
3
3
 
4
4
  [project]
5
5
  name = "python-weather"
6
- version = "2.2.7"
6
+ version = "2.2.8"
7
7
  description = "A free and asynchronous weather API wrapper made in Python, for Python."
8
8
  readme = "README.md"
9
9
  license = "MIT"
@@ -30,12 +30,13 @@ classifiers = [
30
30
  "Programming Language :: Python :: 3.11",
31
31
  "Programming Language :: Python :: 3.12",
32
32
  "Programming Language :: Python :: 3.13",
33
- "Programming Language :: Python :: 3.14"
33
+ "Programming Language :: Python :: 3.14",
34
+ "Programming Language :: Python :: 3.15"
34
35
  ]
35
36
  requires-python = ">=3.10"
36
37
 
37
38
  [project.optional-dependencies]
38
- dev = ["mock>=5.2.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0", "multidict>=6.8.0", "yarl>=1.24.5"]
39
+ dev = ["mock>=5.2.0", "pytest>=9.2.0", "pytest-asyncio>=1.5.0", "pytest-cov>=7.1.0", "multidict>=7.2.1", "yarl>=1.25.1"]
39
40
 
40
41
  [project.urls]
41
42
  Documentation = "https://python-weather.readthedocs.io/en/latest/"
@@ -45,7 +46,8 @@ Changelog = "https://python-weather.readthedocs.io/en/latest/changelog.html"
45
46
  "Donate via Ko-fi" = "https://ko-fi.com/null8626"
46
47
 
47
48
  [tool.pytest.ini_options]
48
- minversion = "8.0"
49
+ asyncio_default_fixture_loop_scope = "function"
50
+ minversion = "9.2"
49
51
  testpaths = ["tests"]
50
52
 
51
53
  [tool.coverage.report]
@@ -2,6 +2,7 @@
2
2
  # SPDX-FileCopyrightText: 2021-2026 null8626
3
3
 
4
4
  from asyncio import sleep
5
+ from typing import Self
5
6
  from urllib.parse import quote_plus
6
7
 
7
8
  from aiohttp import ClientResponseError, ClientSession, ClientTimeout, TCPConnector
@@ -69,7 +70,7 @@ class Client:
69
70
  ):
70
71
  self.__own_session = session is None
71
72
  self.__session = session or ClientSession(
72
- timeout=ClientTimeout(total=5000.0),
73
+ timeout=ClientTimeout(total=5.0),
73
74
  connector=TCPConnector(ssl=False),
74
75
  )
75
76
  self._max_retries = max_retries
@@ -204,7 +205,7 @@ class Client:
204
205
  if self.__own_session and not self.__session.closed:
205
206
  await self.__session.close()
206
207
 
207
- async def __aenter__(self) -> 'Client':
208
+ async def __aenter__(self) -> Self:
208
209
  """Starts using the client. This method is no-op and just returns itself."""
209
210
  return self
210
211
 
@@ -1,7 +1,7 @@
1
1
  # SPDX-License-Identifier: MIT
2
2
  # SPDX-FileCopyrightText: 2021-2026 null8626
3
3
 
4
- from datetime import date, datetime, time
4
+ from datetime import UTC, date, datetime, time
5
5
  from typing import TYPE_CHECKING
6
6
 
7
7
  from .base import BaseForecast
@@ -268,7 +268,7 @@ class Forecast(BaseForecast):
268
268
  self.location = nearest['areaName'][0]['value']
269
269
  self.country = nearest['country'][0]['value']
270
270
  self.datetime = datetime.combine(
271
- datetime.today(), _parse_time(current['observation_time'])
271
+ datetime.now(UTC), _parse_time(current['observation_time'])
272
272
  )
273
273
 
274
274
  try:
@@ -1,4 +1,4 @@
1
1
  # SPDX-License-Identifier: MIT
2
2
  # SPDX-FileCopyrightText: 2021-2026 null8626
3
3
 
4
- VERSION = '2.2.7'
4
+ VERSION = '2.2.8'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-weather
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: A free and asynchronous weather API wrapper made in Python, for Python.
5
5
  Author: null8626
6
6
  License-Expression: MIT
@@ -30,17 +30,18 @@ Classifier: Programming Language :: Python :: 3.11
30
30
  Classifier: Programming Language :: Python :: 3.12
31
31
  Classifier: Programming Language :: Python :: 3.13
32
32
  Classifier: Programming Language :: Python :: 3.14
33
+ Classifier: Programming Language :: Python :: 3.15
33
34
  Requires-Python: >=3.10
34
35
  Description-Content-Type: text/markdown
35
36
  License-File: LICENSE
36
37
  Requires-Dist: aiohttp>=3.14.5
37
38
  Provides-Extra: dev
38
39
  Requires-Dist: mock>=5.2.0; extra == "dev"
39
- Requires-Dist: pytest>=9.1.1; extra == "dev"
40
- Requires-Dist: pytest-asyncio>=1.4.0; extra == "dev"
40
+ Requires-Dist: pytest>=9.2.0; extra == "dev"
41
+ Requires-Dist: pytest-asyncio>=1.5.0; extra == "dev"
41
42
  Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
42
- Requires-Dist: multidict>=6.8.0; extra == "dev"
43
- Requires-Dist: yarl>=1.24.5; extra == "dev"
43
+ Requires-Dist: multidict>=7.2.1; extra == "dev"
44
+ Requires-Dist: yarl>=1.25.1; extra == "dev"
44
45
  Dynamic: license-file
45
46
 
46
47
  # [python-weather][pypi-url] [![pypi][pypi-image]][pypi-url] [![pypi downloads][pypi-downloads-image]][pypi-url] [![codacy-badge][codacy-image]][codacy-url] [![codecov-badge][codecov-image]][codecov-url] [![ko-fi][ko-fi-brief-image]][ko-fi-url]
@@ -0,0 +1,9 @@
1
+ aiohttp>=3.14.5
2
+
3
+ [dev]
4
+ mock>=5.2.0
5
+ pytest>=9.2.0
6
+ pytest-asyncio>=1.5.0
7
+ pytest-cov>=7.1.0
8
+ multidict>=7.2.1
9
+ yarl>=1.25.1
@@ -1,9 +0,0 @@
1
- aiohttp>=3.14.5
2
-
3
- [dev]
4
- mock>=5.2.0
5
- pytest>=9.1.1
6
- pytest-asyncio>=1.4.0
7
- pytest-cov>=7.1.0
8
- multidict>=6.8.0
9
- yarl>=1.24.5
File without changes
File without changes
File without changes