forked from FPGAwars/apio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 882 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
.PHONY: deps cenv env lint tox publish publish_test
deps: ## Install dependencies
python -m pip install --upgrade pip
python -m pip install black flake8 flit pylint tox tox-gh-actions semantic_version polib
python -m pip install click pyserial requests
python -m pip install pytest
python -m pip install scons==4.2.0
cenv: ## Create the virtual-environment and update dependencies
python3 -m venv venv
python3 -m venv venv --upgrade
env:
@echo "For entering the virtual-environment just type:"
@echo ". venv/bin/activate"
lint: ## Lint and static-check
python -m flake8 apio
python -m pylint apio
tox: ## Run tox
python -m tox
publish_test: ## Publish to testPypi
flit publish --repository pypitest
publish: ## Publish to PyPi
python -m flit publish
install: ## Install the tool locally
flit build
flit install
tests: ## Make tests
pytest apio test