Skip to content

Commit

Permalink
meta: drop support for python 3.7
Browse files Browse the repository at this point in the history
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.6 to 3.9.0.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.9.0/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.8.6...v3.9.0)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

fix: fixed outdated types

deps: bump

deps: bump aiohttp from 3.9.0 to 3.9.1

Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.0 to 3.9.1.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.9.0...v3.9.1)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

meta: bump license year

meta: bump license year [skip ci]

deps: bump aiohttp from 3.9.1 to 3.9.3 (#52)

Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.1 to 3.9.3.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.9.1...v3.9.3)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
null8626 and dependabot[bot] committed Oct 28, 2024
1 parent e1d5fdf commit b38bab2
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
2 changes: 1 addition & 1 deletion python_weather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions python_weather/base.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python_weather/client.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion python_weather/constants.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion python_weather/enums.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion python_weather/errors.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions python_weather/forecast.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b38bab2

Please sign in to comment.