Skip to content

Simple task tool for python integrating with pyproject.toml

License

Notifications You must be signed in to change notification settings

steven-kleist/task-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task-tool

Simple task tool for python integrating with pyproject.toml

Usage

Add the following section(s) to your pyproject.toml file:

[tool.tt.tasks]
build = "./scripts/buil_project.py"
update = "my_project.utils:update"
"build:docker" = {cmd = "docker", args = ["build", "--build-arg", "APP_VERSION=$APP_VERSION", "."]}

[tool.tt.tasks.build]
script = "./scripts/test.py"

[tool.tt.tasks.update]
module = "my_project.utils"
func = "update"

[tool.tt.tasks."build:docker"]
cmd = "docker"
args = [
   "build",
   "--build-arg",
   "APP_VERSION=$APP_VERSION",
   "."
]

[tool.tt.tasks.release]
cmd = "utils\\release_maker.bat"
args = "--release-type=major"

Call your tasks like this:

(venv) PS C:\Dev\Repos\my-project> tt build ...script-args...

Prepare

  1. python -m venv venv
  2. Activate venv
    • PWSH: . .\venv\Scripts\Activate.ps1
    • CMD: .\venv\Scripts\activate.bat
  3. python -m pip install -e .[dev]

About

Simple task tool for python integrating with pyproject.toml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages