forked from alexander-akhmetov/python-shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (25 loc) · 824 Bytes
/
Makefile
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
generate-docs:
python docs.py docs/actions.md
tests:
tox
release-pypi:
test -n "$(VERSION)"
@echo "\033[92mVERSION=$(VERSION)\033[0m"
@echo "\033[92mStarting tests\033[0m"
tox
@echo "\033[92mReleasing python-shortcuts with VERSION=$(VERSION)\033[0m"
@echo "\033[92mBuilding python-shortcuts\033[0m"
sed -i '' "s/name='shortcuts'/name='python-shortcuts'/" setup.py
python setup.py sdist
@echo "\033[92mBuilding shortcuts\033[0m"
sed -i '' "s/name='python-shortcuts'/name='shortcuts'/" setup.py
python setup.py sdist
@echo "\033[92mUploading...\033[0m"
twine upload dist/python-shortcuts-$(VERSION).tar.gz
twine upload dist/shortcuts-$(VERSION).tar.gz
@echo "\033[92mDone\033[0m"
isort-fix:
isort -rc shortcuts
docker-build-cli:
test -n "$(TAG)"
docker build -t akhmetov/shortcuts-cli:$(TAG) .