From ffd7dfa0cb366e1c3f43cb3ecd83285786b2cd8e Mon Sep 17 00:00:00 2001 From: "David P. Chassin" Date: Sun, 8 Sep 2024 17:20:54 +0200 Subject: [PATCH] Add requirements.txt to files in repo for security (#239) --- .gitignore | 3 --- python/README.md | 4 ++-- requirements.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 09396dd0f..d8784435e 100644 --- a/.gitignore +++ b/.gitignore @@ -103,9 +103,6 @@ fault_check.txt # files that should be ignored by git *_ignore.* -# requirements files -requirements.txt - # terraform artifacts *.zip terraform.* diff --git a/python/README.md b/python/README.md index 96f744930..9529e9af0 100644 --- a/python/README.md +++ b/python/README.md @@ -1,6 +1,6 @@ # Python Requirements -The `requirements.csv` file provides platform specific information about python modules required to build and run GridLAB-D. +The `requirements.csv` file provides platform specific information about python modules required to build and run GridLAB-D. This file is used to generate the `requirements.txt` file. If you change the CSV file you must push the updated TXT file. ## Sysinfo @@ -8,7 +8,7 @@ You can determine which platform the python build system is running on by using ## Default -The `default` column specified the module version required if none is specified for the current platform. +The `default` column specifies the module version required if none is specified for the current platform. ## Priority diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..139988407 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,40 @@ +CensusData==1.15 +Fiona==1.8.22 +PYPOWER==5.1.16 +Pillow==9.3.0 +Shapely==1.8.4 +address==0.1.1 +boto3==1.26.115 +build==0.9.0 +cfo==1.0.1 +control==0.9.2 +docker==4.4.4 +elevation==1.1.3 +flask==3.0.3 +flask-restful-swagger==0.20.1 +folium==0.12.1 +geocoder==1.38.1 +geopandas==0.12.2 +geopy==2.1.0 +haversine==2.3.0 +imageio==2.31.5 +ipinfo==4.2.1 +ipykernel==5.5.5 +ipyplot==1.1.1 +ipython==8.10.0 +matplotlib_inline==0.1.6 +metar==1.9.0 +networkx==2.8.8 +numpy==1.24.4 +openpyxl==3.1.0 +pandas==2.2.2 +pandas_access==0.0.1 +pymysql==1.0.2 +pyproj==3.4.0 +pyrlu==0.2.0 +pysolar==0.9 +rasterio==1.3.6 +scipy==1.13.1 +simplekml==1.3.6 +timezonefinder==5.2.0 +xlrd==2.0.1