File tree 5 files changed +29
-22
lines changed
5 files changed +29
-22
lines changed Original file line number Diff line number Diff line change 22
22
@echo "deploy: build and upload to PyPi"
23
23
@echo "tag: tag the repository with the current version\n"
24
24
25
+ version :
26
+ @hatch version
27
+
25
28
install :
26
29
./install.sh --unstable
27
30
@@ -47,7 +50,7 @@ pytest:
47
50
nopost :
48
51
@bash check.sh --nopost
49
52
50
- tag :
53
+ tag : version
51
54
git tag -a " v${LIBRARY_VERSION} " -m " Version ${LIBRARY_VERSION} "
52
55
53
56
build : check
Original file line number Diff line number Diff line change @@ -58,11 +58,6 @@ find_config() {
58
58
if [ ! -f " $CONFIG_DIR /$CONFIG_FILE " ]; then
59
59
fatal " Could not find $CONFIG_FILE !"
60
60
fi
61
- else
62
- if [ -f " /boot/$CONFIG_FILE " ] && [ ! -L " /boot/$CONFIG_FILE " ]; then
63
- warning " Oops! It looks like /boot/$CONFIG_FILE is not a link to $CONFIG_DIR /$CONFIG_FILE "
64
- warning " You might want to fix this!"
65
- fi
66
61
fi
67
62
inform " Using $CONFIG_FILE in $CONFIG_DIR "
68
63
}
@@ -171,6 +166,12 @@ function pip_pkg_install {
171
166
check_for_error
172
167
}
173
168
169
+ function pip_requirements_install {
170
+ # A null Keyring prevents pip stalling in the background
171
+ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring $PYTHON -m pip install -r " $@ "
172
+ check_for_error
173
+ }
174
+
174
175
while [[ $# -gt 0 ]]; do
175
176
K=" $1 "
176
177
case $K in
340
341
341
342
printf " \n"
342
343
344
+ if [ -f " requirements-examples.txt" ]; then
345
+ if confirm " Would you like to install example dependencies?" ; then
346
+ inform " Installing dependencies from requirements-examples.txt..."
347
+ pip_requirements_install requirements-examples.txt
348
+ fi
349
+ fi
350
+
351
+ printf " \n"
352
+
343
353
# Use pdoc to generate basic documentation from the installed module
344
354
345
355
if confirm " Would you like to generate documentation?" ; then
Original file line number Diff line number Diff line change @@ -41,13 +41,7 @@ dependencies = [
41
41
" pms5003 >= 1.0.1" ,
42
42
" ltr559 >= 1.0.0" ,
43
43
" st7735 >= 1.0.0" ,
44
- " ads1015 >= 1.0.0" ,
45
- " fonts" ,
46
- " font-roboto" ,
47
- " astral" ,
48
- " pytz" ,
49
- " sounddevice" ,
50
- " paho-mqtt"
44
+ " ads1015 >= 1.0.0"
51
45
]
52
46
53
47
[project .urls ]
Original file line number Diff line number Diff line change
1
+ fonts
2
+ font-roboto
3
+ astral
4
+ pytz
5
+ sounddevice
6
+ paho-mqtt
7
+ pillow
Original file line number Diff line number Diff line change @@ -20,15 +20,8 @@ commands =
20
20
python -m build --no-isolation
21
21
python -m twine check dist/*
22
22
isort --check .
23
- ruff .
23
+ ruff check .
24
24
codespell .
25
25
deps =
26
- check-manifest
27
- ruff
28
- codespell
29
- isort
30
- twine
31
- build
32
- hatch
33
- hatch-fancy-pypi-readme
26
+ -r{toxinidir}/requirements-dev.txt
34
27
You can’t perform that action at this time.
0 commit comments