-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 876 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 876 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
# Makefile for asksage-proxy pip package
# Variables
PACKAGE_NAME := asksage-proxy
DIST_DIR := dist
# Default target
all: build push clean
# Build the package
build: clean
@echo "Building $(PACKAGE_NAME) version ..."
python -m build
@echo "Build complete. Distribution files are in $(DIST_DIR)/"
# Push the package to PyPI
push:
@echo "Pushing $(PACKAGE_NAME) version to PyPI..."
twine upload dist/*
@echo "Package pushed to PyPI."
# Clean up build and distribution files
clean:
@echo "Cleaning up build and distribution files..."
rm -rf $(DIST_DIR) *.egg-info
@echo "Cleanup complete."
# Help target
help:
@echo "Available targets:"
@echo " build - Build the pip package"
@echo " push - Push the package to PyPI"
@echo " clean - Clean up build and distribution files"
@echo " help - Show this help message"
.PHONY: all build push clean help