diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3e29fb4..fedf639 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.7' + python-version: '3.8' architecture: 'x64' - name: Install dependencies run: python3 -m pip install . diff --git a/LICENSE b/LICENSE index 6f49d27..bda05ec 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml index c1d6896..3bec901 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,13 +3,13 @@ requires = ["setuptools"] [project] name = "python-weather" -version = "1.0.3" +version = "1.1.0" description = "A free and asynchronous weather API wrapper made in Python, for Python." readme = "README.md" license = { text = "MIT" } authors = [{ name = "null8626" }] keywords = ["weather", "forecast", "weather-api", "weather-forecast"] -dependencies = ["aiohttp==3.8.6"] +dependencies = ["aiohttp==3.9.3"] classifiers = [ "Development Status :: 5 - Production/Stable", "Framework :: aiohttp", @@ -34,8 +34,8 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12" ] -requires-python = ">=3.7" +requires-python = ">=3.8" [project.urls] repository = "https://github.com/null8626/python-weather" -download_url = "https://github.com/null8626/python-weather/archive/1.0.3.tar.gz" +download_url = "https://github.com/null8626/python-weather/archive/1.1.0.tar.gz" diff --git a/python_weather/__init__.py b/python_weather/__init__.py index 932931e..b3f9102 100644 --- a/python_weather/__init__.py +++ b/python_weather/__init__.py @@ -4,7 +4,7 @@ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/python_weather/base.py b/python_weather/base.py index 6804646..c34fda8 100644 --- a/python_weather/base.py +++ b/python_weather/base.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal @@ -30,7 +30,7 @@ class CustomizableBase: __slots__ = ('__unit', '__locale') - def __init__(self, unit: auto, locale: Locale): + def __init__(self, unit: _Unit, locale: Locale): self.unit = unit self.locale = locale @@ -41,7 +41,7 @@ def unit(self) -> auto: return self.__unit @unit.setter - def unit(self, to: auto): + def unit(self, to: _Unit): """ Sets the default measuring unit used to display information in this object. @@ -91,7 +91,7 @@ def locale(self, to: Locale): class BaseForecast(CustomizableBase): __slots__ = ('__inner',) - def __init__(self, json: dict, unit: auto, locale: Locale): + def __init__(self, json: dict, unit: _Unit, locale: Locale): self.__inner = json super().__init__(unit, locale) diff --git a/python_weather/client.py b/python_weather/client.py index 0f47f74..6cb26e7 100644 --- a/python_weather/client.py +++ b/python_weather/client.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/python_weather/constants.py b/python_weather/constants.py index 8a7b7cb..b9bccd0 100644 --- a/python_weather/constants.py +++ b/python_weather/constants.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/python_weather/enums.py b/python_weather/enums.py index 44c7a7a..57ce31b 100644 --- a/python_weather/enums.py +++ b/python_weather/enums.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/python_weather/errors.py b/python_weather/errors.py index b3f8ee5..681202a 100644 --- a/python_weather/errors.py +++ b/python_weather/errors.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/python_weather/forecast.py b/python_weather/forecast.py index cb795b0..46b848b 100644 --- a/python_weather/forecast.py +++ b/python_weather/forecast.py @@ -1,7 +1,7 @@ """ The MIT License (MIT) -Copyright (c) 2021-2023 null (https://github.com/null8626) +Copyright (c) 2021-2024 null (https://github.com/null8626) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal @@ -27,7 +27,7 @@ from enum import auto from .base import BaseForecast, CustomizableBase -from .constants import LATLON_REGEX +from .constants import _Unit, LATLON_REGEX from .enums import Phase, Locale class Area: @@ -163,7 +163,7 @@ class HourlyForecast(BaseForecast): __slots__ = () - def __init__(self, json: dict, unit: auto, locale: Locale): + def __init__(self, json: dict, unit: _Unit, locale: Locale): # for inheritance purposes if 'temp_C' not in json: json['temp_C'] = json.pop('tempC') @@ -283,7 +283,7 @@ def time(self) -> time: class DailyForecast(CustomizableBase): __slots__ = ('__inner',) - def __init__(self, json: dict, unit: auto, locale: Locale): + def __init__(self, json: dict, unit: _Unit, locale: Locale): self.__inner = json super().__init__(unit, locale) @@ -358,7 +358,7 @@ class Weather(CustomizableBase): __slots__ = ('__inner',) - def __init__(self, json: dict, unit: auto, locale: Locale): + def __init__(self, json: dict, unit: _Unit, locale: Locale): self.__inner = json super().__init__(unit, locale)