d-u-d-e / c-compiler

GNU General Public License v3.0
3 stars 0 forks source link

feat: implement Poetry #1

Closed albertoursino closed 1 week ago

albertoursino commented 1 week ago

How to create a Python virtual env. with Poetry 🚀

  1. Install Poetry on your Linux system
  2. Jump into the project working directory
  3. Run poetry init and set up the env (already done 🔗)
  4. Run poetry shell, which spawns the Python virtual environment
  5. Run poetry install, which installs the packages based on the file poetry.lock.

🔗 I have already created the file pyproject.toml (where you can see all the project dependencies and other settings) and the poetry.lock (a file you don't need to read which holds Python packages versions information). Both these files should stay in the working directory.

Later in the project you will learn for example how to add new dependencies to pyproject.toml, or how to update packages versions.

Useful Links ✨