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

Replace cachecontrol with a fork #7997

Closed
wants to merge 1 commit into from

Conversation

Secrus
Copy link
Member

@Secrus Secrus commented May 24, 2023

CacheControl package was largely unmaintained and made us haul around a deprecated dependency, lockfile. Due to recent changes connected to urllib3 2.0 release, a fork was made and is now maintained by @frostming. This fork merges some long-waiting PRs of cachecontrol, one of them being typing support, so we no longer need to ignore typing errors from that library.

@dimbleby
Copy link
Contributor

should be able to remove filelock as a direct dependency too

I had also seen this and was holding off on making this pull request until frostming/cacheyou#10 was resolved - though I guess if it's not causing us any problems perhaps it's no big deal

@Secrus
Copy link
Member Author

Secrus commented May 24, 2023

should be able to remove filelock as a direct dependency too

I had also seen this and was holding off on making this pull request until frostming/cacheyou#10 was resolved - though I guess if it's not causing us any problems perhaps it's no big deal

Nice, didn't notice the filelock part. As to the issue, it's more important for distro packagers than for us, so I don't see it as an issue.

@ralbertazzi ralbertazzi mentioned this pull request May 24, 2023
2 tasks
@Secrus Secrus requested a review from radoering May 24, 2023 16:30
@Secrus Secrus marked this pull request as draft May 24, 2023 21:24
@Secrus
Copy link
Member Author

Secrus commented May 24, 2023

cachecontrol might be moved to PSF org, so I am drafting this for now until we see how this unfolds.

@ralbertazzi
Copy link
Contributor

Another +1 for considering the migration: I took a look again at #7916 (which was broken and reverted by #7995) and in looks like we could easily reintroduce the performance improvement by using a SeparateBodyFileCache instead of a basic FileCache implementation. However, SeparateBodyFileCache is badly broken on the latest pypi release of cachecontrol, used by Poetry (while issues seem fixed on master).

@dimbleby
Copy link
Contributor

psf/cachecontrol#300 contains discussion about moving cachecontrol to a new home.

It's hard to tell, from the outside, whether that is active and about to happen: or has stalled in the same way as everything else in that repository.

@Secrus
Copy link
Member Author

Secrus commented May 29, 2023

I am gonna give them some more time. There might be some internal discussion about the topic.

@dimbleby
Copy link
Contributor

dimbleby commented Jun 1, 2023

there's a cachecontrol 0.13.0

@Secrus
Copy link
Member Author

Secrus commented Jun 1, 2023

Yeah, I will make the changes tonight

@ralbertazzi
Copy link
Contributor

So the idea is to stick with psf/cachecontrol right?

@Secrus
Copy link
Member Author

Secrus commented Jun 1, 2023

So the idea is to stick with psf/cachecontrol right?

Yes, since it is now maintained by the PSF and a dedicated team, not only the author.

@Secrus
Copy link
Member Author

Secrus commented Jun 2, 2023

superseded by #8055

@Secrus Secrus closed this Jun 2, 2023
@Secrus Secrus deleted the replace-cachecontrol branch June 2, 2023 22:25
Copy link

github-actions bot commented Mar 3, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants