mirror of
https://github.com/Doctorado-ML/FImdlp.git
synced 2025-08-18 17:05:52 +00:00
Update Makefile for project
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -134,3 +134,4 @@ cmake-build-debug
|
|||||||
cmake-build-debug/**
|
cmake-build-debug/**
|
||||||
**/lcoverage/**
|
**/lcoverage/**
|
||||||
**/x/*
|
**/x/*
|
||||||
|
**/*.so
|
21
Makefile
21
Makefile
@@ -4,37 +4,32 @@ SHELL := /bin/bash
|
|||||||
|
|
||||||
clean: ## Clean up
|
clean: ## Clean up
|
||||||
rm -rf build dist *.egg-info
|
rm -rf build dist *.egg-info
|
||||||
if [ -f fimdlp/cfimdlp.cpp ]; then rm fimdlp/cfimdlp.cpp; fi;
|
if [ -f src/fimdlp/cfimdlp.cpp ]; then rm src/fimdlp/cfimdlp.cpp; fi;
|
||||||
if [ -f fimdlp/cppfimdlp.cpython-310-darwin.so ]; then rm fimdlp/cppfimdlp.cpython-310-darwin.so; fi;
|
for file in src/fimdlp/*.so; do \
|
||||||
if [ -d fimdlp/testcpp/build ]; then rm -fr fimdlp/testcpp/build/* ; fi;
|
if [ -f $${file} ]; then rm $${file}; fi; \
|
||||||
if [ -d fimdlp/testcpp/lcoverage ]; then rm -fr fimdlp/testcpp/lcoverage/* ; fi;
|
done
|
||||||
|
|
||||||
test:
|
test:
|
||||||
coverage run -m unittest -v fimdlp.tests
|
coverage run -m unittest discover -v -s src
|
||||||
coverage:
|
coverage:
|
||||||
make test
|
make test
|
||||||
coverage report -m
|
coverage report -m
|
||||||
|
|
||||||
lint: ## Lint and static-check
|
lint: ## Lint and static-check
|
||||||
black fimdlp
|
black src
|
||||||
flake8 fimdlp
|
flake8 src
|
||||||
|
|
||||||
push: ## Push code with tags
|
push: ## Push code with tags
|
||||||
git push && git push --tags
|
git push && git push --tags
|
||||||
|
|
||||||
build: ## Build package
|
build: ## Build package
|
||||||
rm -fr dist/*
|
make clean
|
||||||
rm -fr build/*
|
|
||||||
python -m build --wheel
|
python -m build --wheel
|
||||||
|
|
||||||
buildext: ## Build extension
|
buildext: ## Build extension
|
||||||
rm -fr dist/*
|
|
||||||
rm -fr build/*
|
|
||||||
make clean
|
make clean
|
||||||
python setup.py build_ext
|
python setup.py build_ext
|
||||||
echo "Build extension success"
|
echo "Build extension success"
|
||||||
if [ -f build/lib.macosx-12-x86_64-cpython-310/cppfimdlp.cpython-310-darwin.so ] ; then mv build/lib.macosx-12-x86_64-cpython-310/cppfimdlp.cpython-310-darwin.so fimdlp; fi
|
|
||||||
if [ -f build/lib.macosx-10.9-universal2-3.10/cppfimdlp.cpython-310-darwin.so ] ; then mv build/lib.macosx-10.9-universal2-3.10/cppfimdlp.cpython-310-darwin.so fimdlp; fi
|
|
||||||
|
|
||||||
audit: ## Audit pip
|
audit: ## Audit pip
|
||||||
pip-audit
|
pip-audit
|
||||||
|
Reference in New Issue
Block a user