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

Passage à poetry #49

Merged
merged 26 commits into from
Nov 21, 2023
Merged

Passage à poetry #49

merged 26 commits into from
Nov 21, 2023

Conversation

Ash-Crow
Copy link
Collaborator

@Ash-Crow Ash-Crow commented Nov 16, 2023

🎯 Objectif

Passage à poetry qui simplifie la gestion des dépendances Python en combinant configuration et scripts dans un fichier unique (pyproject.toml), assurant ainsi une lisibilité accrue. Son fichier lock garantit la reproductibilité des environnements, et sa résolution des dépendances facilite la maintenance et les mises à jour.

🔍 Implémentation

  • Transfert de requirements.txt à pyproject.toml (en séparant dépendances de prod et de dev)
  • Mise à jour de la CI
  • Mise à jour du Dockerfile
  • Mise à jour de la doc

⚠️ Point d'attention

  • Poetry n'est pas encore officiellement géré par le buildpack python Heroku utilisé par Scalingo. Cela semble fonctionner en mettant un setup.py vide, mais une alternative pourrait être d'utiliser un requirements.txt généré par le pre-commit hook poetry-lock.

@Ash-Crow Ash-Crow closed this Nov 20, 2023
@Ash-Crow Ash-Crow reopened this Nov 20, 2023
README.md Outdated
```

#### Copier les variables d'environnement
- Mettre une clef secrète et vérifier les autres valeurs

Choose a reason for hiding this comment

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

Peut-être un bout de doc sur comment générer la clé secrète ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

C'est ajouté !

Dockerfile Outdated
Comment on lines 16 to 18
# For behave tests
RUN apt-get update && apt-get install -y --no-install-recommends firefox-esr
RUN wget -qO- $GECKODRIVER_URL | tar xvz -C /usr/bin/
RUN apt-get update && apt-get install -y --no-install-recommends firefox-esr && rm -rf /var/lib/apt/lists/*
RUN wget -qO- ${GECKODRIVER_URL} | tar xvz -C /usr/bin/
Copy link
Member

Choose a reason for hiding this comment

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

Je pense que tu peux l'enlever tant qu'on s'en sert pas.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

C'est fait.

.env.example Show resolved Hide resolved
@Ash-Crow Ash-Crow merged commit 072dec0 into main Nov 21, 2023
3 checks passed
@Ash-Crow Ash-Crow deleted the poetry branch January 3, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants