Skip to content

Commit

Permalink
#172 – Migrate to Python Poetry
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Savin <msavin@ptsecurity.com>
  • Loading branch information
jtprogru committed Nov 24, 2023
1 parent 7a1bfba commit c8fc7eb
Show file tree
Hide file tree
Showing 3 changed files with 1,369 additions and 14 deletions.
21 changes: 7 additions & 14 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,28 @@ tasks:
cmd: task -l
silent: true

venv:
desc: Init Python venv
preconditions:
- test -f $(which python3)
cmds:
- python3 -m venv venv

install:
desc: Install dependencies
preconditions:
- test -f requirements.txt
deps:
- venv
- test -f $(which poetry)
cmds:
- ./venv/bin/pip install -r requirements.txt
- poetry run pip install -U pip
- poetry install --no-interaction --no-ansi --sync --no-root

build:
desc: Build static site
deps:
- install
- clean
cmds:
- ./venv/bin/mkdocs build
- poetry run mkdocs build

ghdeploy:
desc: Deploy Github Pages
deps:
- build
cmds:
- ./venv/bin/mkdocs gh-deploy --force
- poetry run mkdocs gh-deploy --force

serve:
desc: Run development
Expand All @@ -59,4 +52,4 @@ tasks:
clean:
desc: Clean all artifacts
cmds:
- rm -rf ./site/*
- rm -rf ./site/*

0 comments on commit c8fc7eb

Please sign in to comment.