Skip to content

Commit

Permalink
Adding makefile and requirements to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fatou1526 committed Sep 19, 2023
1 parent 17d9832 commit 2b735ad
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Makefile
9 changes: 7 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'])
Expand All @@ -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'])
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
numpy
pandas
matplotlib
scikit-learn
jupyter

0 comments on commit 2b735ad

Please sign in to comment.