forked from PaddlePaddle/PaddleNLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) Β· 636 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) Β· 636 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
.DEFAULT_GOAL := all
.PHONY: all
all: deploy-version build deploy
.PHONY: build
build:
python3 setup.py sdist bdist_wheel
.PHONY: deploy
deploy:
make deploy-version
twine upload --skip-existing dist/*
.PHONY: deploy-version
deploy-version:
echo "VERSION = '$$(cat VERSION)'" > ppdiffusers/version.py
.PHONY: install
install:
pip install -r requirements.txt
.PHONY: version
version:
@newVersion=$$(awk -F. '{print $$1"."$$2"."$$3+1}' < VERSION) \
&& echo $${newVersion} > VERSION \
&& git add VERSION \
&& git commit -m "π₯ update version to $${newVersion}" > /dev/null \
&& echo "Bumped version to $${newVersion}"