mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
add typing annotations for DB status module
Requires TypedDict which is only available from Python 3.8. Require therefore typing_extensions to make the functions available for earlier Python versions.
This commit is contained in:
@@ -33,7 +33,7 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
||||
# Some of the Python packages that come with Ubuntu 18.04 are too old, so
|
||||
# install the latest version from pip:
|
||||
|
||||
pip3 install --user python-dotenv datrie pyyaml psycopg2-binary
|
||||
pip3 install --user python-dotenv datrie pyyaml psycopg2-binary typing-extensions
|
||||
|
||||
#
|
||||
# System Configuration
|
||||
|
||||
@@ -28,7 +28,12 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
||||
postgresql-contrib-12 postgresql-12-postgis-3-scripts \
|
||||
php php-pgsql php-intl libicu-dev python3-dotenv \
|
||||
python3-psycopg2 python3-psutil python3-jinja2 \
|
||||
python3-icu python3-datrie python3-yaml git
|
||||
python3-icu python3-datrie python3-yaml python3-pip git
|
||||
|
||||
# Nominatim uses some typing features only available in later Python versions.
|
||||
# Install the latest version of the backport package:
|
||||
|
||||
pip3 install --user typing-extensions
|
||||
|
||||
#
|
||||
# System Configuration
|
||||
|
||||
Reference in New Issue
Block a user