-
Notifications
You must be signed in to change notification settings - Fork 5
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
Create a conda release #45
Comments
Hi, |
Ah I see that you already started the process and got really far with it! I am wondering how when I make updates/bug fixes how to then fix the conda version with updates, as updating the pip version is relatively easy. Thanks for moving forward with this, I think it will be useful for the community! |
Hi, Glad you find it useful. As far as making updates, whenever a version is released here on GitHub, it would be necessary to make a PR to the meta.yaml in the bioconda-recipe repository:
Unless a requirement is added, then the requirements section must also be updated. Best, |
I've noticed that the PyPI version is more updated than the version here on GitHub, so I'll modify the URL and sha256 to use the PyPI tarball. Would that be better? I have a question. Where does the package look for the 'curated_markers' directory? Is it hardcoded into the package path or attached to an environment variable? The maintainers over at @bioconda were concerned with its path, and whether it could be found by the package (please see here). Thank you for any assistance you can provide, V |
Yes, I believe the most stable release is the version through PyPi and not through the "official release" section here on Github. I haven't made another official release as I'm still fixing a bug here and there and wanted to wait until those were done, but have still been updating the version on pyPi. To get the curated markers, you have to manually download them from here: https://github.com/elizabethmcd/metabolisHMM/releases/download/v1.9/metabolisHMM_markers_v1.9.tgz. And then usually they had to be within the directory that you were running the specific metabolisHMM program. I'm not sure how that would work with a conda release, as its looking for it in that directory. I would maybe have to create an argument where the user can decide where the curated markers are stored. |
I see. I noticed that the GitHub release is bundled with the marker files but the PyPI is not. Therefore, it would be 'easier' to use the GitHub release rather than the PyPI. But if the PyPI is more stable, it's probably best to use it and manually download the marker files. This step can be described in the
I'm aware it would require some work to implement this, but I believe it would be a best practice. If I understand correctly, this would cause complications in running metabolisHMM anywhere in the machine, as it would require my I believe the easiest way to do this would be to simply point the function calls to a variable and have this variable set as default to the Hope you find the suggestions useful. V |
Yes, they are relatively small files and could be built with the pypi package in like a |
Yes, for the GTDB-Tk it is definitely impracticable to have them bundled with the package. I noticed the marker files compress really well (3 MB in the .tar.gz and 18MB uncompressed), so I'd suggest bundling them compressed, but either way is good. I think it is possible to add the uncompress step in the I'll leave it to you to figure out how you want to implement this, but let me know if I can help in any way. Edit: I thought it would be better to wait to implement this before changing the recipe's tarball to PyPI. So I'll try and publish v1.9 for now and can update it when the other one is out. Best, |
Hi, I’m the one who was reviewing the Conda recipe over at Bioconda. I would also recommend distributing the marker files as part of the PyPI distribution. It would be easiest to store them uncompressed since then there’s no additional unpacking step. The PyPI distribution is compressed anyway, so having a compressed archive within it won’t gain anything. Also, if you ever need to update individual files, you don’t have to replace the entire Just because I’ve recently done this in one of my projects, I thought I’d mention how you could practically go about doing this. Feel free to ignore this suggestion. First, you would need to rename the If you then move your data files into a subdirectory of the Next, you would need to ensure that the files are actually included in the PyPI package by adding a Finally, you may need to add |
This is great, thanks @marcelm |
Thanks for these suggestions @marcelm , they are really helpful. I'll try to get around to making these changes and some other small fixes within a week or so. |
Note that the |
Hi @elizabethmcd ,
thank you for providing this package. I'm excited to use it.
I believe providing a conda release for it would greatly improve it and attract users. I'm attempting one myself for Bioconda over here and would like to kindly invite you to collaborate, if you are keen :)
I'm not very experienced with conda so your help as the main developer would be invaluable.
Thank you for any assistance you can provide,
V
The text was updated successfully, but these errors were encountered: