File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
13# Check if Poetry is installed
24if ! command -v poetry & > /dev/null
35then
1517# Initialize a new Poetry project with the project name
1618poetry init --name " $POETRY_PROJECT_NAME " --no-interaction
1719
18- # Switch to non-package-mode
19- cat << EOF >> pyproject.toml
20-
21- [tool.poetry]
22- package-mode = false
23- EOF
20+ # Modify the existing [tool.poetry] section to add package-mode = false
21+ sed -i ' /^\[tool.poetry\]/a package-mode = false' pyproject.toml
2422
25- # add python stuff to gitignore
2623echo " __pycache__/" >> .gitignore
2724
28- # describe in the README
2925cat << EOF >> "README.md"
3026# $POETRY_PROJECT_NAME
3127
32- ## Python deps
28+ ## Python dependencies
3329
3430This project uses Poetry for dependency management. To install the dependencies, run:
3531
You can’t perform that action at this time.
0 commit comments