forked from FPGAwars/apio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 775 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 for apio development
python -m pip install --upgrade pip
pip install flit black flake8 pylint tox pytest
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 black apio
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