You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet, I don't see the conda package publishing in CD. Maybe I am missing something?
Suggestion
Since this is a "pure" Python package, maybe you can re-use a "dev" and "prod" file for both conda setup and the non-conda python setup (for virtual environments or such)
You could have a requirements.txt and a requirements-dev.txt for "production" and "development", respectively.
Then, setup.py reads in these two files for the install_requires and test_require, like following:
Overall,Just throwing the idea out there since it looks like this is becoming an issue in your project. I haven't completely fleshed out the idea but hopefully provided enough context for a possible strategy. Feel free to close if not helpful.
The text was updated successfully, but these errors were encountered:
Unfortunately, it is not possible to unify the environment and packaging management completely, conda and pypi package managers are just too separated (see details in this discussion).
Still we were able to improve the local environment and requirements files in #121 as you suggested, so thank you for that!
Yet, I don't see the conda package publishing in CD. Maybe I am missing something?
This is part of my openjournals/joss-reviews#4494
NOTE: Only an optional suggestion, definitely not a requested change for the review
Description
The packaging and environment management seems to be duplicating lists that appear unmatched.
Specifically, for "dev" setup, I am comparing
requirements.txt
toconda/environment-dev.yaml
For the "production" setup, I am comparing
setup.py
toconda/meta.yaml
.I see where the PyPi package publishing occurs using
setup.py
here as a CD pipeline: https://github.com/RECETOX/MSMetaEnhancer/blob/main/.github/workflows/publish_pypi.yamlYet, I don't see the conda package publishing in CD. Maybe I am missing something?
Suggestion
Since this is a "pure" Python package, maybe you can re-use a "dev" and "prod" file for both conda setup and the non-conda python setup (for virtual environments or such)
You could have a
requirements.txt
and arequirements-dev.txt
for "production" and "development", respectively.Then,
setup.py
reads in these two files for theinstall_requires
andtest_require
, like following:Then, you can probably have your
meta.yml
conda recipe simplified to something like:NOTE: Just copied this from here
And you can do away with the
conda/environment-dev.yml
Instead just have in the README under "developer docs" that you can use:
Overall,Just throwing the idea out there since it looks like this is becoming an issue in your project. I haven't completely fleshed out the idea but hopefully provided enough context for a possible strategy. Feel free to close if not helpful.
The text was updated successfully, but these errors were encountered: