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

Update requirements.txt #237

Open
emiliom opened this issue May 2, 2023 · 6 comments
Open

Update requirements.txt #237

emiliom opened this issue May 2, 2023 · 6 comments
Assignees

Comments

@emiliom
Copy link
Member

emiliom commented May 2, 2023

Update requirements.txt, based on Alex's guidance:

  • Update my local env: conda/mamba env update -f environment.yml
  • Regenerate requirements.txt via a pip freeze of the environment
  • Update the repo

Doing this will minimize style differences between the deployed site and the netlify site previews.

See our 4/19 thread in the website Slack channel.

@emiliom emiliom self-assigned this May 2, 2023
@abkfenris
Copy link
Contributor

It might be worth making a 'locked environment' too, so that we have a known state that we can always pin to if needed. conda env export I believe.

@abkfenris
Copy link
Contributor

Largely taken care of via #246

Of note, when trying to freeze a conda environment, the normal pip freeze doesn't work as it includes Conda package details. python -m pip list --format=freeze > requirements.txt is the trick.

@emiliom
Copy link
Member Author

emiliom commented May 25, 2023

Woo-hoo! Thanks!

Largely taken care of via #246

Largely? Is what remains this?

It might be worth making a 'locked environment' too, so that we have a known state that we can always pin to if needed. conda env export I believe.

BTW, pinning to Python 3.8: not terrible, but yikes.

@abkfenris
Copy link
Contributor

Ok, pretty much all taken care of, but I started pondering if we could remove the need for having different environments instead and then got distracted and never finished writing the issue...

@abkfenris
Copy link
Contributor

Have you tried Pixi?

It really nicely helps manage a lock file for Conda and PyPI dependencies, and can track various tasks, so we could capture the docs serving and requirements freezing commands. I think we could automate requirements freezing reasonably with Github Actions (or at least checking), and getting Read the Docs to use it

@emiliom
Copy link
Member Author

emiliom commented Apr 25, 2024

Have you tried Pixi?

I haven't, but my curiosity was piqued when you mentioned at the last SC meeting how it had matured.

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

No branches or pull requests

2 participants