File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ VERSION := $(shell grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
2
+
1
3
define SCRIPT
2
4
if ! type pip &> /dev/null; then
3
5
if ! type opkg &> /dev/null; then
@@ -7,21 +9,21 @@ if ! type pip &> /dev/null; then
7
9
opkg update
8
10
opkg install python3-pip
9
11
fi
10
- pip install --force-reinstall /tmp/liboxide-0.1.0 -py3-none-any.whl
12
+ pip install --force-reinstall /tmp/liboxide-${VERSION} -py3-none-any.whl
11
13
endef
12
14
export SCRIPT
13
15
14
- dist/liboxide-0.1.0 .tar.gz : $(shell find liboxide -type f)
16
+ dist/liboxide-${VERSION} .tar.gz : $(shell find liboxide -type f)
15
17
python -m build --sdist
16
18
17
- dist/liboxide-0.1.0 -py3-none-any.whl : $(shell find liboxide -type f)
19
+ dist/liboxide-${VERSION} -py3-none-any.whl : $(shell find liboxide -type f)
18
20
python -m build --wheel
19
21
20
22
clean :
21
23
git clean --force -dX
22
24
23
- deploy : dist/liboxide-0.1.0 -py3-none-any.whl
24
- rsync dist/liboxide-
0.1.0 -py3-none-any.whl
[email protected] :/tmp
25
+ deploy : dist/liboxide-${VERSION} -py3-none-any.whl
26
+ rsync dist/liboxide-
${VERSION} -py3-none-any.whl
[email protected] :/tmp
25
27
26
28
install : deploy
27
29
echo -e
" $$ SCRIPT" | ssh
[email protected] bash -le
You can’t perform that action at this time.
0 commit comments