chore: scaffold shadowssh project with Makefile, pyproject.toml, setup.cfg, and initial package structure
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
BIN = ./.venv/bin/
|
||||
PYTHON = ./.venv/bin/python
|
||||
PIP = ./.venv/bin/pip
|
||||
|
||||
APP_NAME=shadowssh
|
||||
|
||||
all: install build
|
||||
|
||||
ensure_repo:
|
||||
-@git init
|
||||
|
||||
ensure_env: ensure_repo
|
||||
-@python3 -m venv .venv
|
||||
|
||||
install:
|
||||
$(PIP) install -e .
|
||||
|
||||
format:
|
||||
$(PIP) install shed
|
||||
. $(BIN)/activate && shed
|
||||
|
||||
build: install format
|
||||
$(PIP) install build
|
||||
$(PYTHON) -m build
|
||||
|
||||
serve:
|
||||
$(BIN)$(APP_NAME).serve --host=0.0.0.0 --port=443
|
||||
|
||||
run: serve
|
||||
|
||||
|
||||
Reference in New Issue
Block a user