forked from PetterS/quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·33 lines (25 loc) · 846 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
test: install
poetry run python -X dev -m unittest
install: build
poetry run python setup.py develop
build: Makefile module.c third-party/quickjs.c third-party/quickjs.h
poetry run python setup.py build
format:
poetry run python -m yapf -i -r --style .style.yapf *.py
clang-format-7 -i module.c
distribute: test
rm -rf dist/
@echo "Now build the wheel for Windows in the dist/ folder."
@echo " poetry run python setup.py build -c mingw32"
@echo " poetry run python setup.py bdist_wheel --skip-build"
@echo "Press enter to continue when done..."
@read _
poetry run python setup.py sdist
upload-test: distribute
poetry run python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload: distribute
poetry run python -m twine upload dist/*
clean:
rm -rf build/ dist/
rm -f *.so
rm -f *.pyd