Compare commits
6
Commits
0.4.0
..
c4e2352cb5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4e2352cb5 | ||
|
|
cef665be88 | ||
|
|
e4328deaac | ||
|
|
3aef3b22bf | ||
|
|
79bc6ad519 | ||
|
|
db30814b54 |
@@ -5,8 +5,8 @@ on:
|
||||
tags: ["*"]
|
||||
|
||||
env:
|
||||
POETRY_HTTP_BASIC_InfernalGames_USERNAME: ${{ vars.PUBLISH_USERNAME }}
|
||||
POETRY_HTTP_BASIC_InfernalGames_PASSWORD: ${{ secrets.PUBLISH_TOKEN }}
|
||||
POETRY_HTTP_BASIC_INFERNALGAMES_USERNAME: ${{ vars.PUBLISH_USERNAME }}
|
||||
POETRY_HTTP_BASIC_INFERNALGAMES_PASSWORD: ${{ secrets.PUBLISH_TOKEN }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Project Manager
|
||||
|
||||
[](https://git.shmyga.ru/InfernalGames/project-manager/actions?workflow=test.yaml)
|
||||
|
||||
Automatically detects modules and executes commands
|
||||
|
||||
Supported types:
|
||||
@@ -10,10 +12,18 @@ Supported types:
|
||||
|
||||
## Install
|
||||
|
||||
With pipx
|
||||
|
||||
```bash
|
||||
pipx install project-manager -i https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ --pip-args="--extra-index-url https://pypi.org/simple"
|
||||
```
|
||||
|
||||
With pip
|
||||
|
||||
```bash
|
||||
pip install project-manager --index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ --extra-index-url https://pypi.org/simple
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Show tasks list
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ runs:
|
||||
cache: "pip"
|
||||
|
||||
- run: |
|
||||
pip install project-manager \
|
||||
pip install --upgrade project-manager \
|
||||
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
|
||||
--extra-index-url https://pypi.org/simple
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import logging
|
||||
import sys
|
||||
from argparse import ArgumentParser
|
||||
from importlib.metadata import version
|
||||
from pathlib import Path
|
||||
from typing import Self
|
||||
|
||||
@@ -60,7 +61,11 @@ class ProjectManagerRunner:
|
||||
parser.add_argument("-p", "--path", type=Path, default=Path.cwd())
|
||||
parser.add_argument("-v", "--verbose", action="count", default=1)
|
||||
parser.add_argument("-q", "--quiet", action="store_true")
|
||||
parser.add_argument("--version", action="store_true")
|
||||
args = parser.parse_args()
|
||||
if args.version:
|
||||
print(version("project-manager"))
|
||||
sys.exit(0)
|
||||
verbose = -1 if args.quiet else args.verbose
|
||||
task_key = PartialTaskKey.from_str(args.task)
|
||||
return cls(path=args.path, task_key=task_key, verbose=verbose)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "project-manager"
|
||||
description = ""
|
||||
version = "0.4.0"
|
||||
version = "0.4.2"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
||||
requires-python = ">=3.14,<4.0"
|
||||
|
||||
Reference in New Issue
Block a user