-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupdate_pyproject.sh
executable file
·44 lines (41 loc) · 1.03 KB
/
update_pyproject.sh
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
34
35
36
37
38
39
40
41
42
43
44
#
# Script: update_pyproject.sh
# Update pyproject.toml pacakges to the latest version with command poetry add ${package}@latest.
# This has the added benefit of updating poetry.lock as well.
# We still need to run the `poetry update` command afterwards to update package dependencies
# that are not coverred by the `poetry add` command.
# for now we omit `django-matomo-api-tracking` because of how it is sourced.
# Do not update Python or Django in this script.
# Manually run the `poetry add {package}@version` command to update Python and Django to a desired version.
DEPS="
aiomysql
mysqlclient
boto3
mysql
myloginpath
jinja2
pygments
fasteners
feedparser
filelock
freezegun
hjson
lxml
python-dateutil
requests
toml
simplegist
xmltodict
pymysql
configparser
ecs-logging
celery
sqlalchemy
"
for package in $DEPS; do
poetry add ${package}@latest
done
# update package dependencies
poetry update
echo "Python and Django are not updated."
echo "If needed run the `poetry add {package}@version` command to update the package to a desired version."