File size: 682 Bytes
34121ca 98cb1cd f3fe9b4 34121ca 98cb1cd bcf3c90 34121ca e23a2a1 |
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 |
CFLAGS += -std=c99 -Wall
.PHONY: quality style test
quality:
python -m black --check --line-length 119 --target-version py38 .
python -m isort --check-only .
python -m flake8 --max-line-length 119
style:
python -m black --line-length 119 --target-version py38 .
python -m isort .
docker:
docker build -t competitions:latest .
docker tag competitions:latest huggingface/competitions:latest
docker push huggingface/competitions:latest
test:
pytest -sv .
socket-kit.so: socket-kit.c
gcc $(CFLAGS) -shared -fPIC $^ -o $@ -ldl
clean:
rm *.so
pip:
rm -rf build/
rm -rf dist/
make style && make quality
python setup.py sdist bdist_wheel
twine upload dist/* --verbose |