linem / mjewelplot

Other
0 stars 0 forks source link

Add `requirements.txt` file #3

Closed Jakob37 closed 2 months ago

Jakob37 commented 2 months ago

A common practice in Python projects is to produce a requirements.txt file so that other (or yourself) can install exactly the same versions used to run the code.

Typically I would make a virtual environment and use it as such:

$ python -m virtualenv ~/venv/mjewel
$ source ~/venv/mjewel/bin/activate
(mjewel) $ pip install -r requirements.txt

You can generate the file simply by:

pip freeze > requirements.txt

This will only work if you are using a virtual environment though. Otherwise you'll spit out all the dependencies you have available on your laptop.

Jakob37 commented 2 months ago

I wonder if this applies to packages though 🤔 Something we can look into

linem commented 2 months ago

The requirements for the package is now defined in the pyproject.toml file.

Jakob37 commented 2 months ago

Nice! Let's close the issue then.