-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 688 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 688 Bytes
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
36
VENV_PATH = .venv
PACKAGE_NAME = python-code-splitter
TESTPYPI_REPOSITORY = https://test.pypi.org/legacy/
.PHONY: install update shell fmt build upload prod-upload clean
install:
uv sync --dev
update:
uv lock --upgrade
shell:
python -m venv $(VENV_PATH)
sh $(VENV_PATH)/bin/activate
fmt:
isort .
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place .
ruff format .
ruff check . --fix
build: clean
$(VENV_PATH)/bin/python -m build
# NOTE: check ~/.pypirc is configured correctly
upload:
uv run twine upload --verbose --repository testpypi dist/*
prod-upload:
uv run twine upload --verbose --repository pypi dist/*
clean:
rm -rf dist