cagov / caldata-mdsa-caltrans-pems

CalData's MDSA project with Caltrans on Performance Measurement System (PeMS) data
https://cagov.github.io/caldata-mdsa-caltrans-pems/
MIT License
7 stars 0 forks source link

Make use of Python virtual environments #377

Open jkarpen opened 2 months ago

jkarpen commented 2 months ago

From Ian: Each individual server should have a Python virtual environment for running its scripts. These environments do not necessarily have to be identical, but it would be better if they were. The environments should have the following features:

  1. Isolation from other Python environments on the machine (conda or venv both fit this)
  2. A specific major Python version (e.g. 3.11 or 3.12)
  3. A pyproject.toml and poetry.lock file fully specifying the dependencies of the environment and their precise versions. Python packages should not be installed using pip directly, but should instead be managed by Poetry.
jkarpen commented 2 months ago

Plan is for Yanlin to work on this, keeping it assigned to Pingping for now until she gets added to GitHub.