Skip to content

Commit 314140b

Browse files
committed
[skip ci] update: deploy rule
1 parent dd567e9 commit 314140b

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

Makefile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: init check format requirements build clean
1+
.PHONY: init check format requirements build deploy
22

33
init:
44
python3 -m pip install -U pipenv setuptools wheel
@@ -11,19 +11,10 @@ check:
1111

1212
build:
1313
python3 setup.py sdist bdist_wheel
14-
twine check dist/*
1514

16-
clean:
17-
rm -rf `find . -name __pycache__`
18-
rm -f `find . -type f -name '*.py[co]' `
19-
rm -f `find . -type f -name '*~' `
20-
rm -f `find . -type f -name '.*~' `
21-
rm -f `find . -type f -name '@*' `
22-
rm -f `find . -type f -name '#*#' `
23-
rm -f `find . -type f -name '*.orig' `
24-
rm -f `find . -type f -name '*.rej' `
25-
rm -rf build
26-
rm -rf dist
15+
deploy:
16+
python3 -m twine check dist/*
17+
python3 -m twine upload dist/*
2718

2819
format:
2920
isort --profile black -l 79 pytorch_optimizer setup.py

0 commit comments

Comments
 (0)