-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.16 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.16 KB
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
37
38
39
40
41
42
43
.PHONY: help install test build publish-test publish tag bump-patch bump-minor bump-major
# Default target
help:
@echo "Agent Notes Development Commands:"
@echo " make install - Install dependencies using uv"
@echo " make test - Run tests (if any)"
@echo " make build - Build source and wheel distributions"
@echo " make publish - Build and publish to PyPI"
@echo " make tag - Create and push a git tag for the current version"
@echo " make bump-patch - Bump patch version (0.0.x)"
@echo " make bump-minor - Bump minor version (0.x.0)"
@echo " make bump-major - Bump major version (x.0.0)"
install:
uv sync
test:
uv run pytest
build:
uv build
publish: build
uv publish
tag:
@VERSION=$$(grep -m 1 version pyproject.toml | tr -d '"' | tr -d ' ' | cut -d'=' -f2); \
echo "Tagging version v$$VERSION..."; \
git tag -a v$$VERSION -m "Release v$$VERSION"; \
git push origin v$$VERSION
bump-patch:
uv version patch
@echo "Don't forget to commit and 'make tag'"
bump-minor:
uv version minor
@echo "Don't forget to commit and 'make tag'"
bump-major:
uv version major
@echo "Don't forget to commit and 'make tag'"