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

MNT: handle a deprecation warning from attrs v24.1.0 #1815

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

neutrinoceros
Copy link
Contributor

@neutrinoceros neutrinoceros commented Aug 4, 2024

Description

attrs 24.1.0 (released yesterday) deprecated the hash argument in favor of unsafe_hash
For simplicity of implementation, I also bumped the minimal requirement to 22.2.0, which added the unsafe_hash argument.

xref python-attrs/attrs#1323

For context, I noticed this because it breaks astropy's CI, so please let me know if this patch can be released promptly or not. We'll be able to adapt in any case.

Checklist:

  • pre-commit checks ran successfully
  • tests ran successfully
  • for a public change, a changelog entry was added
  • for a public change, documentation was updated
  • for any new features, unit tests were added

@neutrinoceros neutrinoceros force-pushed the mnt/follow_attrs_depr branch from adfa36e to 14ea0af Compare August 4, 2024 07:30
@neutrinoceros neutrinoceros changed the title MNT: handle a deprecation warning from attrs v24.1.0 MNT: handle a deprecation warning from attrs v24.1.0 Aug 4, 2024
@neutrinoceros neutrinoceros marked this pull request as ready for review August 4, 2024 07:37
@neutrinoceros neutrinoceros requested a review from a team as a code owner August 4, 2024 07:37
Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

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

Thanks!

I'll try to make a release with this today.

@braingram braingram merged commit 669f5e2 into asdf-format:main Aug 4, 2024
55 of 56 checks passed
@neutrinoceros neutrinoceros deleted the mnt/follow_attrs_depr branch August 4, 2024 14:18
@braingram
Copy link
Contributor

@neutrinoceros asdf 3.4.0 (with these changes) is up on pypi. Let me know if you run into more issues and thanks again for the fix.

@neutrinoceros
Copy link
Contributor Author

Awesome, thank you very much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants