Skip to content

Commit b8d2c50

Browse files
committed
Automate the wheel building to avoid editable mode bugs
1 parent 3f356eb commit b8d2c50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# last version of `build` supporting Python 3.6
4+
pip install build==0.9.0
5+
6+
# build the wheel and install it
7+
WHEEL_NAME=$(python -m build | grep -Po "fastapi_oauth2-.*\.whl" | tail -n 1)
8+
pip install dist/$WHEEL_NAME

0 commit comments

Comments
 (0)