Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use poetry to install tomtoolkit #7

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions make-tom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,18 @@ source env/bin/activate
pip install --upgrade pip # so we don't get reminded again and again

#
# 4. pip install tomtoolkit and dependencies (including Django) to the Virtual Environment
# 4. Install and initialize Poetry and the tomtoolkit
#
echo
echo "${bold}Installing tomtoolkit and dependencies into the virtual environment...${normal}"
pip install tomtoolkit
echo "${bold}Installing pipx and Poetry...${normal}"
pip install pipx
pipx install poetry

echo
echo "${bold}Initializing Poetry and installing tomtoolkit and its dependencies into the env...${normal}"
poetry init --no-interaction --python=">=3.8.1,<3.12"
poetry add tomtoolkit


#
# 5. Create the Django project in the directory we've created for this purpose.
Expand Down