chore: initialize project scaffold with gitignore, Makefile, pyproject.toml, and rchat package skeleton
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
BIN = ./.venv/bin/
|
||||
PYTHON = ./.venv/bin/python
|
||||
PIP = ./.venv/bin/pip
|
||||
|
||||
APP_NAME=rchat
|
||||
|
||||
all: ensure_repo ensure_env format install build
|
||||
|
||||
ensure_repo:
|
||||
-@git init
|
||||
|
||||
ensure_env:
|
||||
-@python3 -m venv .venv
|
||||
|
||||
install:
|
||||
$(PIP) install -e .
|
||||
|
||||
format:
|
||||
$(PIP) install shed
|
||||
. $(BIN)/activate && shed
|
||||
|
||||
build: format install
|
||||
$(PIP) install build
|
||||
$(PYTHON) -m build
|
||||
|
||||
run:
|
||||
$(BIN)rchat.serve
|
||||
|
||||
Reference in New Issue
Block a user