-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix standalone install and add debian 12 support #573
Fix standalone install and add debian 12 support #573
Conversation
2fc70e8
to
0f654cc
Compare
5bec328
to
779fd73
Compare
@@ -36,7 +36,7 @@ geoalchemy2==0.9.4 | |||
# via -r requirements.in | |||
geojson==2.5.0 | |||
# via -r requirements.in | |||
greenlet==1.1.3 | |||
greenlet==3.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- fixer la version de greenlet sera à faire dans
requirements.in
, - pas pu tester sur Debian 11 pour le moment,
- cependant je ne vois pas d'utilisation de SQLAlchemy dans un mode asynchrone dans GN-Atlas, je ne pense pas que
greenlet
soit utilisé, la dépendance est juste incluse par défaut, - ce serait intéressant d'avoir l'erreur rencontrée lors de l'installation sur Ubuntu 24.04 pour documenter le pourquoi de cette montée de version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oui en effet.
Concernant greenlet
voir aussi les discussions :
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour cela, j'ai rajouté un test dans les github actions pour tester l'installation des requirements.txt sur les différentes versions de python.
1701ed9
to
7a6cbe6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont test ubuntu matrix. only ubuntu-latest. In the future gha will deprecated specific ubuntu versions. You just want to check if requirements will install on specific python version
7a6cbe6
to
dd0e3e8
Compare
install_db.sh => work without geonature (geonature-atlas alone) install_env.sh => add wget + use python3 requirements.txt => update greenlet
dd0e3e8
to
0974436
Compare
@@ -132,6 +132,10 @@ if ! database_exists $db_name | |||
-v type_territoire=$type_territoire \ | |||
-f data/gn2/atlas_ref_geo.sql &>> log/install_db.log | |||
else | |||
|
|||
echo "Create extension defined in geonature" | |||
sudo -u postgres -s psql -d $db_name -c "CREATE EXTENSION IF NOT EXISTS unaccent;" &>> log/install_db.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L'ajout de l'extension n'est pas au bon endroit, il faut l'ajouter pour tous au début du fichier, avec les autres extensions. On s'en charge.
intégré dans #582 |
Cette PR corrige les installations sur un debian 12.