Skip to content
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

chore: drop python 3.8 support and upgrade ETH dependencies #118

Merged
merged 6 commits into from
Aug 19, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Apr 2, 2024

What I did

fixes: #

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@fubuloubu
Copy link
Member

related to the other discussion, I wonder if these lower-level packages than ape should stay 3.8 a little bit longer, enough time for those using ape to upgrade to 0.8 where py 3.8 is dropped

then we drop this closer to the deprecation date (maybe when we go v1.0 with ape)

@antazoey
Copy link
Member Author

antazoey commented Apr 9, 2024

related to the other discussion, I wonder if these lower-level packages than ape should stay 3.8 a little bit longer, enough time for those using ape to upgrade to 0.8 where py 3.8 is dropped

then we drop this closer to the deprecation date (maybe when we go v1.0 with ape)

I am going back and forth. The main thing is I need the eth dependencies upgraded and I can't do that without also it being breaking (think Hexbytes change). So I need breaking changes releases for all these lower levels packages to even upgrade ape. I guess a chicken and egg problem.

@antazoey
Copy link
Member Author

antazoey commented Apr 9, 2024

@fubuloubu OK here is a separate PR that add 3.12, so now it will support 3.8-3.12 withou breaking #119

@antazoey antazoey closed this May 20, 2024
@antazoey antazoey changed the title feat!: py3.8 drop and py3.12 add feat!: drop python 3.8 support May 20, 2024
@antazoey antazoey reopened this May 20, 2024
@antazoey antazoey force-pushed the feat/38312 branch 2 times, most recently from 1569c5c to 49236ff Compare May 20, 2024 14:28
@@ -1,4 +1,4 @@
from typing import Iterator
from collections.abc import Iterator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the story behind this change? I saw this somewhere else and didn't get why

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typing is deprecated as of 3.9
https://docs.python.org/3/library/typing.html#typing.Sequence
where it introduced generic types for collections like list and dict
https://docs.python.org/3/library/stdtypes.html#types-genericalias

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typing has aliases to collections.abc but theyre deprecated. Pre python 3.9, they were required

setup.py Outdated Show resolved Hide resolved
ethpm_types/utils.py Show resolved Hide resolved
ethpm_types/utils.py Outdated Show resolved Hide resolved
bytes_val = (
self._selector_hash_fn(aitem.selector)[:4]
if isinstance(aitem, (MethodABI, ErrorABI))
else self._selector_hash_fn(aitem.selector)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think of this one as the weird one (basically for EventABI it only uses 32 bytes)

ethpm_types/contract_type.py Show resolved Hide resolved
ethpm_types/contract_type.py Show resolved Hide resolved
@antazoey antazoey changed the title feat!: drop python 3.8 support feat: drop python 3.8 support Aug 19, 2024
@antazoey antazoey changed the title feat: drop python 3.8 support chore: drop python 3.8 support and upgrade ETH dependencies Aug 19, 2024
@antazoey antazoey merged commit 796a114 into ApeWorX:main Aug 19, 2024
17 checks passed
@antazoey antazoey deleted the feat/38312 branch August 19, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants