4 Commits
Author SHA1 Message Date
shmyga e4328deaac fix(action): add '--upgrade' flag to project-manager install
test / test (push) Failing after 29s
2026-10-08 17:12:40 +03:00
shmyga 3aef3b22bf docs(readme): update README.md 2026-10-08 17:11:24 +03:00
shmyga 79bc6ad519 ci(version): 0.4.1
release / release (push) Successful in 28s
test / test (push) Successful in 1m5s
2026-10-08 12:53:51 +03:00
shmyga db30814b54 feat: add --version arg support 2026-10-08 12:43:56 +03:00
6 changed files with 25 additions and 4 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ on:
tags: ["*"] tags: ["*"]
env: env:
POETRY_HTTP_BASIC_InfernalGames_USERNAME: ${{ vars.PUBLISH_USERNAME }} POETRY_HTTP_BASIC_INFERNALGAMES_USERNAME: ${{ vars.PUBLISH_USERNAME }}
POETRY_HTTP_BASIC_InfernalGames_PASSWORD: ${{ secrets.PUBLISH_TOKEN }} POETRY_HTTP_BASIC_INFERNALGAMES_PASSWORD: ${{ secrets.PUBLISH_TOKEN }}
jobs: jobs:
release: release:
+10
View File
@@ -1,5 +1,7 @@
# Project Manager # Project Manager
[![test](https://git.shmyga.ru/InfernalGames/project-manager/actions/workflows/test.yaml/badge.svg?branch=master)](https://git.shmyga.ru/InfernalGames/project-manager/actions?workflow=test.yaml)
Automatically detects modules and executes commands Automatically detects modules and executes commands
Supported types: Supported types:
@@ -10,10 +12,18 @@ Supported types:
## Install ## Install
With pipx
```bash ```bash
pipx install project-manager -i https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ --pip-args="--extra-index-url https://pypi.org/simple" 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 ## Usage
### Show tasks list ### Show tasks list
+1 -1
View File
@@ -16,7 +16,7 @@ runs:
cache: "pip" cache: "pip"
- run: | - run: |
pip install project-manager \ pip install --upgrade project-manager \
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \ --index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
--extra-index-url https://pypi.org/simple --extra-index-url https://pypi.org/simple
+5
View File
@@ -7,6 +7,7 @@ from typing import Self
from .common.logging_colored import ColoredFormatter from .common.logging_colored import ColoredFormatter
from .entry.entry import PartialTaskKey from .entry.entry import PartialTaskKey
from .manager import ProjectManager from .manager import ProjectManager
from .version import __version__
class ProjectManagerRunner: class ProjectManagerRunner:
@@ -60,7 +61,11 @@ class ProjectManagerRunner:
parser.add_argument("-p", "--path", type=Path, default=Path.cwd()) parser.add_argument("-p", "--path", type=Path, default=Path.cwd())
parser.add_argument("-v", "--verbose", action="count", default=1) parser.add_argument("-v", "--verbose", action="count", default=1)
parser.add_argument("-q", "--quiet", action="store_true") parser.add_argument("-q", "--quiet", action="store_true")
parser.add_argument("--version", action="store_true")
args = parser.parse_args() args = parser.parse_args()
if args.version:
print(__version__)
sys.exit(0)
verbose = -1 if args.quiet else args.verbose verbose = -1 if args.quiet else args.verbose
task_key = PartialTaskKey.from_str(args.task) task_key = PartialTaskKey.from_str(args.task)
return cls(path=args.path, task_key=task_key, verbose=verbose) return cls(path=args.path, task_key=task_key, verbose=verbose)
+6
View File
@@ -0,0 +1,6 @@
import tomllib
from pathlib import Path
__version__ = tomllib.loads(
(Path(__file__).parent.parent / "pyproject.toml").read_text()
)["project"]["version"]
+1 -1
View File
@@ -1,7 +1,7 @@
[project] [project]
name = "project-manager" name = "project-manager"
description = "" description = ""
version = "0.4.0" version = "0.4.1"
readme = "README.md" readme = "README.md"
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }] authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
requires-python = ">=3.14,<4.0" requires-python = ">=3.14,<4.0"