-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 876 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
46
47
48
49
50
51
52
53
#
# Cleanup
#
clean:
rm -vrf .venv build dist .eggs *.egg-info hactar/server/static
find . -name '__pycache__' -delete
#
# Install
#
venv:
python3 -m venv .venv
develop:
pip install -r requirements-dev.txt
pip install -e .
install:
pip install .
#
# Test
#
test-pycodestyle:
curl -so tox.ini https://git.confirm.ch/confirm/code-analysis/raw/master/tox.ini
pycodestyle rocket-r60v
pycodestyle rocket_r60v
test-pylint:
curl -so .pylintrc https://git.confirm.ch/confirm/code-analysis/raw/master/pylintrc
pylint rocket-r60v
find rocket_r60v -maxdepth 2 -type f -name '__init__.py' -exec dirname {} \; | xargs pylint
test-unittest:
python -munittest discover
test: test-pycodestyle test-pylint test-unittest
#
# Build
#
build:
./setup.py sdist
upload-test:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload:
twine upload dist/*