6 Commits
Author SHA1 Message Date
shmyga c4e2352cb5 ci(version): 0.4.2
release / release (push) Failing after 17s
test / test (push) Successful in 1m19s
2026-10-08 17:25:04 +03:00
shmyga cef665be88 fix: fix version detection 2026-10-08 17:24:48 +03:00
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 16 additions and 10 deletions
+2 -2
View File
@@ -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:
+10
View File
@@ -1,5 +1,7 @@
# 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
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
View File
@@ -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
+2 -2
View File
@@ -1,13 +1,13 @@
import logging
import sys
from argparse import ArgumentParser
from importlib.metadata import version
from pathlib import Path
from typing import Self
from .common.logging_colored import ColoredFormatter
from .entry.entry import PartialTaskKey
from .manager import ProjectManager
from .version import __version__
class ProjectManagerRunner:
@@ -64,7 +64,7 @@ class ProjectManagerRunner:
parser.add_argument("--version", action="store_true")
args = parser.parse_args()
if args.version:
print(__version__)
print(version("project-manager"))
sys.exit(0)
verbose = -1 if args.quiet else args.verbose
task_key = PartialTaskKey.from_str(args.task)
-4
View File
@@ -1,4 +0,0 @@
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]
name = "project-manager"
description = ""
version = "0.4.1"
version = "0.4.2"
readme = "README.md"
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
requires-python = ">=3.14,<4.0"