-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update geoip2 requirement from ==4.* to ==5.* #538
base: development
Are you sure you want to change the base?
Conversation
Reviewer's Guide by SourceryThis pull request updates the geoip2 dependency from version 4.* to 5.* in the pyproject.toml file. This upgrade includes breaking changes, such as the replacement of the 'raw' attribute with 'to_dict()' method, changes to the 'ip_address' property, and a requirement for Python 3.9 or greater. Class diagram showing breaking changes in GeoIP2 v5classDiagram
class ModelBase {
-raw [removed]
+to_dict() [new]
+ip_address: IPv4Address|IPv6Address
}
class Traits {
+ip_address: IPv4Address|IPv6Address|None
+is_anycast: bool
}
class Location {
+metro_code [deprecated]
}
ModelBase <|-- Traits
ModelBase <|-- Location
note for ModelBase "Breaking changes in v5.0.0:
- raw attribute replaced with to_dict()
- ip_address now returns IPv4/IPv6Address
- keyword args required except locales & ip_address"
note for Location "metro_code is deprecated
as codes are no longer maintained"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
Updates the requirements on [geoip2](https://github.com/maxmind/GeoIP2-python) to permit the latest version. - [Release notes](https://github.com/maxmind/GeoIP2-python/releases) - [Changelog](https://github.com/maxmind/GeoIP2-python/blob/main/HISTORY.rst) - [Commits](maxmind/GeoIP2-python@v4.0.0...v5.0.1) --- updated-dependencies: - dependency-name: geoip2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
c040151
to
e11aae3
Compare
Updates the requirements on geoip2 to permit the latest version.
Release notes
Sourced from geoip2's releases.
Changelog
Sourced from geoip2's changelog.
... (truncated)
Commits
5df245d
Update for v5.0.17615adb
Update ip_address types in docs28c3b12
Allow Traits ip_address to be None again056787f
Update for v5.0.0eda1f07
Improve type hintsd0da163
Set release datefb38ff6
Fix some mypy issues in test codea88e4af
Start adding ruff config04260bf
Apply ruff unsafe fixes894b2c2
Run ruff's fixerDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by Sourcery
Enhancements: