forked from felipemfp/dicio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 743 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
VERSION=$(shell git describe --tags `git rev-list --tags --max-count=1`)
PIPENV=pipenv run
install:
@pipenv install
test:
@$(PIPENV) python setup.py test
minor:
@$(PIPENV) bumpversion --current-version $(VERSION) minor setup.py dicio/__init__.py
major:
@$(PIPENV) bumpversion --current-version $(VERSION) major setup.py dicio/__init__.py
patch:
@$(PIPENV) bumpversion --current-version $(VERSION) patch setup.py dicio/__init__.py
build: clean
@$(PIPENV) python setup.py sdist bdist_wheel
clean:
@rm -r dist Dicio.egg-info build
upload: build
@$(PIPENV) twine upload --repository-url https://test.pypi.org/legacy/ dist/*
release:
@$(PIPENV) twine upload dist/*
.PHONY: install test minor major path build clean upload release