Skip to content

Conversation

@LovelyBuggies
Copy link
Collaborator

No description provided.

@LovelyBuggies LovelyBuggies changed the title dev in conda close #7 dev in conda Mar 27, 2020
@LovelyBuggies
Copy link
Collaborator Author

LovelyBuggies commented Mar 27, 2020

closes issue aghast #28

Opps... CI / pre-commit failing...

@LovelyBuggies
Copy link
Collaborator Author

@henryiii Could you help me with this CI problem? I don't know why I got this.

Copy link
Member

@henryiii henryiii left a 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.

@LovelyBuggies
Copy link
Collaborator Author

@henryiii Anything else to change?

@LovelyBuggies
Copy link
Collaborator Author

Btw, should this -- conda dev support -- be added for boost-histogram?

@henryiii
Copy link
Member

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 pip install boost-histogram or maybe pip install boost-histogram[dev], and will not have access to these files.

environment.yml is special, since mybinder.org picks it up; so that is always the requirements to run the example notebooks.

LovelyBuggies and others added 2 commits March 29, 2020 23:49
Co-Authored-By: Henry Schreiner <[email protected]>
Co-Authored-By: Henry Schreiner <[email protected]>
@LovelyBuggies
Copy link
Collaborator Author

@henryiii Agreed all your commits above.

- pip >=18
- root >=6.20.0
- pip:
- -r dev-requirements.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- -r dev-requirements.txt

This environment should have conda dependencies, not PyPI ones. dev-requirements is PyPI.

Copy link
Member

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.

Copy link
Collaborator Author

@LovelyBuggies LovelyBuggies Mar 29, 2020

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?

Copy link
Collaborator Author

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.txt in the conda environment manually?

If so, I add a this line to CONTRIBUTING.md instructions as you can see in a57d828

Copy link
Member

@henryiii henryiii Mar 29, 2020

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).

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

@LovelyBuggies LovelyBuggies Mar 30, 2020

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.

@LovelyBuggies
Copy link
Collaborator Author

LovelyBuggies commented Apr 2, 2020

@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).

@henryiii henryiii merged commit 5a3e0dd into scikit-hep:master Apr 2, 2020
@henryiii
Copy link
Member

henryiii commented Apr 3, 2020

This should be merged, not sure why it's "open".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants