5 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
6 changed files with 16 additions and 12 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
+2 -2
View File
@@ -1,13 +1,13 @@
import logging import logging
import sys import sys
from argparse import ArgumentParser from argparse import ArgumentParser
from importlib.metadata import version
from pathlib import Path from pathlib import Path
from typing import Self 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:
@@ -64,7 +64,7 @@ class ProjectManagerRunner:
parser.add_argument("--version", action="store_true") parser.add_argument("--version", action="store_true")
args = parser.parse_args() args = parser.parse_args()
if args.version: if args.version:
print(__version__) print(version("project-manager"))
sys.exit(0) 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)
-6
View File
@@ -1,6 +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] [project]
name = "project-manager" name = "project-manager"
description = "" description = ""
version = "0.4.0" version = "0.4.2"
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"