-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (31 loc) · 1.09 KB
/
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
POETRY=python3 -m poetry
PRINT=python3 -c "import sys; print(str(sys.argv[1]))"
help:
$(PRINT) "Usage:"
$(PRINT) " help show this message"
$(PRINT) " setup create virtual environment and install dependencies"
$(PRINT) " devsetup create virtual environment and install dev dependencies"
$(PRINT) " shell spawn a shell within the virtual environment"
$(PRINT) " test run test suites"
$(PRINT) " dist package application for distribution"
$(PRINT) " pub publish package to PyPI"
$(PRINT) " pubt publish package to Test PyPI"
setup:
$(POETRY) install --no-dev
$(POETRY) config repositories.testpypi https://test.pypi.org/simple
devsetup:
$(POETRY) install
$(POETRY) config repositories.testpypi https://test.pypi.org/simple
shell:
$(POETRY) shell
update:
$(POETRY) update
test:
$(POETRY) run pytest
dist: update
$(POETRY) build
pub: dist
$(POETRY) publish
pubt: dist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
.PHONY: setup devsetup shell update test dist pub pubt