Skip to content
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

Conversation

juggler31
Copy link

@juggler31 juggler31 commented Sep 18, 2024

Cette PR corrige les installations sur un debian 12.

  • Update de la library greenlet
  • Correction de l'installation de l'atlas de manière autonome.
  • Ajout d'un test d'installation des paquets python dans les github actions

@juggler31 juggler31 marked this pull request as draft September 18, 2024 12:58
@juggler31 juggler31 changed the title update: install files + update greenlet dependency update: install files + some config Sep 25, 2024
@juggler31 juggler31 force-pushed the update_some_install_file branch from 2fc70e8 to 0f654cc Compare September 26, 2024 13:49
@juggler31 juggler31 changed the title update: install files + some config update install files Sep 26, 2024
@juggler31 juggler31 force-pushed the update_some_install_file branch 2 times, most recently from 5bec328 to 779fd73 Compare September 26, 2024 13:51
@@ -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

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

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.

@juggler31 juggler31 force-pushed the update_some_install_file branch 23 times, most recently from 1701ed9 to 7a6cbe6 Compare October 1, 2024 13:50
Copy link
Member

@submarcos submarcos left a 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

.github/workflows/test_install.yml Outdated Show resolved Hide resolved
.github/workflows/test_install.yml Outdated Show resolved Hide resolved
.github/workflows/test_install.yml Outdated Show resolved Hide resolved
@juggler31 juggler31 changed the title update install files Fix standalone install and add debian 12 support Oct 1, 2024
@juggler31 juggler31 added bug dependencies Pull requests that update a dependency file labels Oct 1, 2024
@juggler31 juggler31 force-pushed the update_some_install_file branch from 7a6cbe6 to dd0e3e8 Compare October 1, 2024 14:54
install_db.sh => work without geonature (geonature-atlas alone)
install_env.sh => add wget + use python3
requirements.txt => update greenlet
@juggler31 juggler31 force-pushed the update_some_install_file branch from dd0e3e8 to 0974436 Compare October 2, 2024 07:27
@juggler31 juggler31 marked this pull request as ready for review October 4, 2024 09:35
@@ -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
Copy link
Member

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.

@amandine-sahl amandine-sahl changed the base branch from develop to feat/fix_install_debian12 October 15, 2024 14:06
@amandine-sahl
Copy link
Contributor

intégré dans #582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants