forked from multigcs/riocore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·35 lines (25 loc) · 939 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
clean:
find ./ -type d | grep "/__pycache__" | xargs -r -l rm -r
rm -rf dist *.egg-info
format:
find ./riocore/ ./tests/ ./bin/ -type f | grep ".py$$\|bin/" | xargs -r -l ruff format -q
check:
find ./riocore/ ./bin/ -type f | grep ".py$$\|bin/" | xargs -r -l ruff check
unittests:
python3 -m pytest -vv -v tests/unit/
verilator:
find ./riocore/ -type f | grep ".v$$" | xargs -r -l verilator --lint-only
plugin_docs:
PYTHONPATH=. bin/rio-plugininfo -g
dist:
python3 setup.py sdist
pypi: clean dist
$(eval VERSION = v$(shell ls dist/riocore-*.tar.gz | cut -d"-" -f2 | cut -d"." -f1-3))
twine upload --verbose dist/riocore-*.tar.gz
git tag -a ${VERSION} -m "version ${VERSION}"
git push origin ${VERSION}
pyvenv: clean dist
python3 -m venv pyvenv
pyvenv/bin/python -m pip install -r requirements.txt
pyvenv/bin/python -m pip install dist/riocore*
pyvenv/bin/python bin/rio-generator Altera10M08Eval/config-test.json