-
Notifications
You must be signed in to change notification settings - Fork 48
Use apipkg to provide compatibility forwarders with v1
#151
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
Conversation
|
Ok this should be ready to go @conda/constructor. I have two main questions:
Thanks to the forwarders, menuinst v2 is backwards compatible with all the public calls I could find on Github (mostly |
I know that apipkg has been around for a LONG time, so it's probably pretty well tested and used, but I also remember that Holger suggested to always vendor it as it's relatively small. |
The README suggests is a single module, but all I see is a package with several (small) modules. Am I missing something? 🤔 |
|
Ah, that's v3. Maybe I try v2, which is indeed single-module. |
|
pytest-dev/apipkg@2acee50 seems to have changed that, I didn't know that before |
|
@jaimergp Hmm, seeing that the v3 also added Python 3.11 support (or at least testing), I wonder if dependening might actually be better :-/ It exists both on defaults and conda-forge: https://anaconda.org/anaconda/apipkg https://anaconda.org/conda-forge/apipkg but the versions don't match. |
|
We can vendor the whole v3 package too. Even if they are a few files. 🤷 |
|
WDYT about this way @jezdez? |
|
(need to review the API here in depth, next week though) |
|
Solving the conflicts dismissed the review, sorry @jezdez. Can you reapprove when you have a chance? Thanks 🙏 |
Description
Old menuinst v1 import paths are still in use in
conda.core.initialize. To avoid having to issue repodata patches for a lot of conda versions we are providing this little forwarding logic usingapipkg(only on Windows).I don't know how the team feels about adding one more dependency to the
condatree. If that's a problem we could vendor theapipkgproject.Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?