-
Notifications
You must be signed in to change notification settings - Fork 28
dev in conda #8
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
dev in conda #8
Conversation
|
closes issue aghast #28 Opps... CI / pre-commit failing... |
|
@henryiii Could you help me with this CI problem? I don't know why I got this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a space at the end of a line, that's why pre-commit is complaining. If you install and use pre-commit, then you can't have this failure.
|
@henryiii Anything else to change? |
|
Btw, should this -- conda dev support -- be added for boost-histogram? |
No, let's keep boost-histogram simple. And it's really only a special case for the 2-3 people who actually download the repository - for the vast majority of users, they will be running environment.yml is special, since mybinder.org picks it up; so that is always the requirements to run the example notebooks. |
Co-Authored-By: Henry Schreiner <[email protected]>
Co-Authored-By: Henry Schreiner <[email protected]>
|
@henryiii Agreed all your commits above. |
dev-environment.yml
Outdated
| - pip >=18 | ||
| - root >=6.20.0 | ||
| - pip: | ||
| - -r dev-requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - -r dev-requirements.txt |
This environment should have conda dependencies, not PyPI ones. dev-requirements is PyPI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only exception is if requirements are only available through pip, but I don't think we have any of those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agreed your commits.
But how do we install them, we need to pip install -r dev-requirements.txt in the conda environment manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mean that we need to
pip install -r dev-requirements.txtin the conda environment manually?
If so, I add a this line to CONTRIBUTING.md instructions as you can see in a57d828
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. PyPI and Conda are different. You have to list the packages again here in this file if you want them - they aren't even guaranteed to have the same Conda name as PyPI name (though often they do).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they aren't even guaranteed to have the same Conda name as PyPI name (though often they do)
👍 You are right! And some even do not have conda installation like mplhep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No dev-requirements.txt anymore, PTAL.
|
@henryiii LGTM, able to merge? I need to make some changes to aghast (I made pip dev-requriement.txt for it in env YAML previously, it should be in conda style). |
|
This should be merged, not sure why it's "open". |
No description provided.