-
Notifications
You must be signed in to change notification settings - Fork 74
/
Makefile
45 lines (36 loc) · 968 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
38
39
40
41
42
43
44
45
# default makefile target
all::
.PHONY: help
help:
echo "clean - removes all untracked files"
echo "lint - run flake8"
echo "package - create package for pypi"
echo "setup - install project and maintainer dependencies"
echo "test - run tests"
echo "upload - create and upload distribution for pypi"
echo "upload-test - create and upload distribution for testpypi"
.PHONY: clean
clean:
git clean -fxd
.PHONY: upload
upload: package
python -m twine upload --repository nasdaq-data-link --non-interactive dist/*
.PHONY: upload-test
upload-test: package
python -m twine upload --repository test-nasdaq-data-link --non-interactive --verbose dist/*
.PHONY: lint
lint:
flake8
.PHONY: package
package: clean
python setup.py sdist bdist_wheel
.PHONY: setup
setup:
pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel twine
pip install flake8
pip install tox
.PHONY: test
test:
tox