Tips on creating a plugin to install min requirements #1016
Unanswered
tlambert03
asked this question in
Q&A
Replies: 3 comments 11 replies
-
I would have your package contain one or two plugins:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
many thanks for taking the time! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did anyone go ahead and create such a plugin by chance? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @ofek,
If you have a moment, I'm looking for some quick tips before I embark on creating a plugin.
For the sake of testing, I like to be able to create an environment that installs the minimum declared dependencies, to ensure that I've set my pins correctly:
So if
pyproject
declaresI'd like it to specifically install
package==0.3.4
.I've noticed that hatch-mypyc temporarily hides the pyproject.toml, and I thought something like that might be a good way to achieve this - by inspecting dependencies and temporarily rewriting them if the plugin is enabled via some environment variable or something.
Do you any broad suggestions on how you would go about that? (I'm not looking for code or anything, just a quick verification of the general ideas and perhaps pointers to hooks I should specifically use to accomplish it)
Thanks as always for your fantastic work
Beta Was this translation helpful? Give feedback.
All reactions