From 2b735ad8d1fbc065ec40617cf7a4ae78a0cf0bf9 Mon Sep 17 00:00:00 2001 From: Fatou Date: Tue, 19 Sep 2023 19:34:03 +0000 Subject: [PATCH] Adding makefile and requirements to the repo --- .github/workflows/main_workflow.yml | 1 + Makefile | 1 + main.py | 9 +++++++-- requirements.txt | 5 +++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 requirements.txt diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index 6a5a94f..29eb347 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -20,6 +20,7 @@ jobs: run: | python -m pipninstall --upgrade pip pip install requests + pip install -r requirements.txt pip install pandas pip install numpy pip install matplotlib diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..33ceb8f --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +Makefile \ No newline at end of file diff --git a/main.py b/main.py index 8aae046..2a12b17 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ def generate_project_tree(): with open('.gitignore', 'w') as gitignore: gitignore.write(gitignore_content) - + """ # Création de l'arborescence du projet os.makedirs('data/cleaned') os.makedirs('data/processed') @@ -31,7 +31,12 @@ def generate_project_tree(): os.makedirs('notebooks') os.makedirs('reports') os.makedirs('src') + """ + with open('Makefile', 'w') as makefile: + makefile.write('Makefile') + with open('requirements.txt', 'w') as requirements: + requirements.write('numpy\npandas\nmatplotlib\nscikit-learn\njupyter\n') # Initialisation du dépôt Git subprocess.run(['git', 'init']) @@ -40,7 +45,7 @@ def generate_project_tree(): subprocess.run(['git', 'add', '.']) # Commit des fichiers ajoutés - subprocess.run(['git', 'commit', '-m', 'Adding folders (data, docs, models, notebooks, reports, src) to the repo']) + subprocess.run(['git', 'commit', '-m', 'Adding makefile and requirements to the repo']) # Push des fichiers créer subprocess.run(['git', 'push', 'origin', 'branche-1']) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8a600f4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +numpy +pandas +matplotlib +scikit-learn +jupyter