Compare commits
4
Commits
0.4.0
...
e4328deaac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ 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:
|
||||
@@ -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__)
|
||||
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)
|
||||
|
||||
@@ -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
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "project-manager"
|
||||
description = ""
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
||||
requires-python = ">=3.14,<4.0"
|
||||
|
||||
Reference in New Issue
Block a user