chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
PY = python -m
|
||||
|
||||
plugin = protoc-gen-connect-python
|
||||
|
||||
dev:
|
||||
$(PY) pip install -r requirements-dev.txt
|
||||
|
||||
fmt:
|
||||
$(PY) ruff format src
|
||||
|
||||
lint:
|
||||
$(PY) ruff check src
|
||||
|
||||
clean:
|
||||
rm -f bin/protoc-gen-connect-python
|
||||
rm -rf dist
|
||||
|
||||
upload: clean
|
||||
$(PY) build
|
||||
$(PY) twine upload --repository=connect-python dist/*
|
||||
|
||||
|
||||
bin/$(plugin): $(wildcard cmd/$(plugin)/*.go) pyproject.toml Makefile
|
||||
go install -ldflags "-w -s" ./cmd/$(plugin)
|
||||
|
||||
.PHONY: dev fmt lint upload clean build
|
||||
|
||||
build:
|
||||
make bin/protoc-gen-connect-python
|
||||
Reference in New Issue
Block a user