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
[FEATURE] Use grayskull with any pypi mirror/server #204
Comments
Yes, that is something which is good to have indeed! For another repositories that would be relatively easy to change, for local/specific paths it will need a bit more of modifications. But it is something doable. I will add it to my plans, thanks for this request! |
Nice, thanks Marcelo! I think this feature will be especially useful in enterprise environments (which is precisely my use case) 😄 |
Is this line: The one actually responsible for |
It will depend if your enterprise pypi server will return the metadata correctly. If they return it like pypi it will work, otherwise I am afraid that might not work |
Actually, I think it would be really useful to have Edit: not |
Yeap, that is a nice improvement to have, a bit of work but it is doable :) |
I've just tested grayskull with It was surprisingly difficult to find up-to-date public pypi servers but I guess test.pypi.org will do for now. While it's good that the functionality is there with a different host than pypi.org I think the CLI may need to change a bit (e.g. I'd be happy to submit a PR but there's quite a bit of code to dig through. I'd be happy to dig deeper if you give me any pointers @marcelotrevisani #### Initializing recipe for pytest (pypi) ####
Recovering metadata from pypi...
Starting the download of the sdist package pytest-0.0.0.dev1.tar.gz
pytest-0.0.0.dev1.tar.gz 100% Time: 0:00:00 1.1 MiB/s|####################################################################|
Recovering information from setup.py
Executing injected distutils...
Recovering metadata from setup.cfg
Checking >> numpy 100% |##############################################################################|[Elapsed Time: 0:00:00]
Recovering license info from spdx.org ...
Matching license file with database from Grayskull...
License type: MIT
License file: LICENSE.txt
Host requirements:
- pip
- python
Run requirements:
- numpy
- python
RED: Missing packages
GREEN: Packages available on conda-forge
Maintainers:
- LuisF3
#### Recipe generated on /Users/luischavesrodriguez/Documents/ExtratimeWork/grayskull for pytest #### |
That would be great! This part here |
Just one thing, I believe would be better to name it as |
Same need here, would be great ! |
That was developed already. |
Is your feature request related to a problem? Please describe.
As per my reading and testing of this tool, I do not think it is is possible to make a conda recipe out of any pypi mirror just out of the official one (ref to code: https://github.com/conda-incubator/grayskull/blob/d72b59804ab6800d18f1cef40c03ff22565ff2b2/grayskull/pypi/pypi.py#L40).
Describe the solution you'd like
I would like to be able to use
grayskull
to make conda recipes out of any python package listed in any arbitrarily provided pypi mirror or even locally. Perhaps by having a CLI command option:Describe alternatives you've considered
Building a conda recipe manually and having undesired behaviours.
The text was updated successfully, but these errors were encountered: