Coder Social home page Coder Social logo

demo-poetry-en-legende's Introduction

Demo Poetry - DO3


Sommaire :

Pré-requis :

  • Installer poetry
curl -sSL https://install.python-poetry.org | python3 -

Puis ajoute cette ligne à votre .zshrc ou .bashrc

export PATH="$HOME/.local/bin:$PATH"

et source le fichier :

source ~/.bashrc
# ou
source ~/.zshrc
  • Installer make
make --version # pour vérifier si make est présent sur le système
# si ce n'est pas le cas
su - # cassedédi à MFA
apt install build-essentials

Installer les dépendances

Avec make

make install

Avec poetry

poetry install

Lancer le projet

Avec make

make run

Avec poetry

poetry run python poetry_project/main.py

Pour voir le site rdv ici : localhost:5000

Pour aller plus loin

Les tests unitaires

  1. Lance la commande suivante :
make test
  1. Analyse le Makefile pour comprendre ce que fait la commande et pourquoi elle ne fonctionne pas Indice : regarde aussi le fichier pyproject.toml, tu devras peut être utiliser la commande ... add ...
  2. Fait en sorte que le test passe au vert
  3. Enfin rends toi sur cette page poetry - managing dependencies et trouve un moyen d'installer pytest avec la commande :
poetry install --with docs

Indice : tu vas surement devoir modifier le fichier pyproject.toml

Notes

  • C'est tarpin important de lire la doc de poetry -> elle est là le sang : doc poetry
  • Si il y a un problème demande à Tristan ou à quelqu'un qui a fini

demo-poetry-en-legende's People

Contributors

courtcircuits avatar

Stargazers

Baptiste Bronsin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.