forked from AaronTraas/Clash-Royale-Clan-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (31 loc) · 868 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
# Define required macros here
SHELL = /bin/sh
SRCDIR = ./pyroyale
TESTDIR = ./tests
clean:
python3 setup.py clean
rm -rf build dist .pytest_cache *.egg-info $(SRCDIR)/__pycache__ $(TESTDIR)/__pycache__ MANIFEST
install:
python3 setup.py install
develop:
python3 setup.py develop
test-depend:
pip3 install coverage pytest pytest-runner requests_mock
test: test-depend
python3 setup.py test
coverage: test-depend
coverage run setup.py test
coverage xml
coverage-html: coverage
coverage html
sonar: coverage
sonar-scanner -Dsonar.projectVersion=`python -c "import sys; from crtools import __version__; sys.stdout.write(__version__)"`
translate-update:
python setup.py extract_messages
python setup.py update_catalog
translate:
python setup.py compile_catalog
dist: translate
python3 setup.py sdist bdist_wheel
upload: dist
twine upload dist/*