forked from Nayjest/Gito
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 1.09 KB
/
Makefile
File metadata and controls
35 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cs:
flake8 .
black:
black .
install:
pip install -e .
pkg:
python multi-build.py
build: pkg
clear-dist:
python -c "import shutil, os; shutil.rmtree('dist', ignore_errors=True); os.makedirs('dist', exist_ok=True)"
clr-dist: clear-dist
windows-build: # Build Windows executable using PyInstaller to dist/gito.exe
pyinstaller gito.spec
publish:
python -c "import os,subprocess;t=os.getenv('PYPI_TOKEN');subprocess.run(['python', '-m', 'twine', 'upload', 'dist/*', '-u', '__token__', '-p', t], check=True)"
upload: publish
test:
pytest --log-cli-level=INFO
tests: test
# Generate CLI reference documentation
# Does not work on Windows due to PYTHONUTF8 env var setting
cli-reference:
PYTHONUTF8=1 typer gito.cli utils docs --name gito --title="<a href=\"https://github.com/Nayjest/Gito\"><img src=\"https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png\" align=\"left\" width=64 height=50 title=\"Gito: AI Code Reviewer\"></a>Gito CLI Reference" --output documentation/command_line_reference.md
cli-ref: cli-reference
cli-doc: cli-reference
cli-docs: cli-reference