forked from plaid/plaid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 767 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
#!make
.PHONY: lint
lint:
flake8 plaid_legacy
# Requires tox to be installed and in the executable path
.PHONY: test
test: lint
./.env tox
# Setting up for local development
.PHONY: setup
setup:
pip install -r requirements.txt
.PHONY: docs
docs:
-rm -r docs/
sphinx-build docs_source/ docs/ -b html
touch docs/.nojekyll
cp docs_source/index.html docs/
# Clean the /dist directory for a new publish
.PHONY: package-clean
package-clean:
@rm -rf dist/*
# Build a new package into the /dist directory
.PHONY: package-build
package-build:
python setup.py sdist
# Test new package before publish
.PHONY: package-check
package-check:
twine check dist/*
# Publish the new /dist package to Pypi
.PHONY: package-publish
package-publish:
twine upload dist/*