-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (38 loc) · 969 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
test-pypi:
python setup.py check
rm -rf dist
python setup.py sdist bdist_wheel
twine upload -r testpypi dist/*
proj-doc:
# python setup.py build_sphinx
sphinx-apidoc -o docs/source bgameb
$(MAKE) -C ./docs html
draft:
# read release notes draft
towncrier build --draft
release:
@read -p "Enter final version as X.Y.Z:" bump; \
python -m incremental.update bgameb --newversion=$$bump; \
towncrier build --yes; \
sphinx-apidoc -o docs/source bgameb; \
$(MAKE) -C ./docs html; \
git add .; \
git status; \
git commit -m "release $$bump"; \
git tag "$$bump"; \
git push origin --tags; \
git push
test:
python -m pytest -x -s -v -m "not slow"
check:
echo "---> Check main package by flake8"; \
flake8 bgameb; \
echo "---> Check types annotation in main package"; \
mypy bgameb; \
echo "---> Check tests folder by flake8"; \
flake8 tests
log:
@read -p "Enter newsfragment name:" frag; \
towncrier create $$frag
ipython:
python -m IPython