Skip to content
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

Pin requirements.txt #6

Merged
merged 8 commits into from
Apr 4, 2018
Merged

Pin requirements.txt #6

merged 8 commits into from
Apr 4, 2018

Conversation

tunnell
Copy link
Member

@tunnell tunnell commented Apr 3, 2018

If you pin versions, it will make things in the long run easier for reproducibility. Also, we make sure that we are testing the same versions that we are deploying.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 52.248%

Totals Coverage Status
Change from base Build 12: 0.0%
Covered Lines: 430
Relevant Lines: 823

💛 - Coveralls

@JelleAalbers
Copy link
Member

Thanks! While I was against this for pax in the past, it makes sense. We've had a few issues when new numpy and numba versions came at one point. So let's pin.

However we should probably stop filling install_requires from requirements.txt after pinning; see e.g.

The best practice seems to be to have pinned dependencies in requirements.txt and unpinned ones in install_requires. This way you can have consistent deployments with pip install -r requirements.txt while pip install remains flexible, e.g. for people who want to use part of strax in their projects.

Moreover, this allows you to pin dependencies of your dependencies in requirements.txt; essentially requirements.txt can then become just the pip freeze output.

@JelleAalbers JelleAalbers merged commit d66a8f1 into AxFoundation:master Apr 4, 2018
@JelleAalbers
Copy link
Member

Maybe we should also look at pipenv, it's apparently now the officially recommended python packaging tool.

@tunnell
Copy link
Member Author

tunnell commented Apr 4, 2018

@JelleAalbers I'll look at this install requires thing...

@JelleAalbers
Copy link
Member

Cool, I just did JelleAalbers@718456d now, but the repetition feels a bit wrong.

This was referenced Apr 4, 2018
Closed
JoranAngevaare pushed a commit that referenced this pull request Jul 21, 2020
JoranAngevaare added a commit that referenced this pull request Jul 22, 2020
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.

4 participants