realpython / realpython/python-guide
Clarification on Sample Repository Structure
Personne n'a encore pris cette issue.
- Langage dominant
- Batchfile
- Étoiles
- 29.8k
- Forks
- 5.9k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
In Structuring Your Project (/writing/structure/) the section Sample Repository is a little confusing (at least for me).
- Stating that this is the way Kenneth Reitz recommends structuring a project is a little confusing. Is there another way? (I'm sure there are) If so, is Reitz's way the de facto standard or is there another standard out there? (Perhaps links to some other popular structures would be helpful)
- On the same vein as 1 above, in most areas the guide is opinionated but in this section by stating its the way Reitz does it, it becomes very unopinionated and this sticks out. Does this mean that the authors aren't agreed upon Reitz's methodology?
- We haven't talked about setup.py up to this point in the guide. What is it? (https://stackoverflow.com/questions/1471994/what-is-setup-py)
- Here it is suggested we use requirements.txt although earlier we are encouraged to use pipenv and its pipfile (although we are also shown how to use virtualenv directly), this is a bit confusing as there is no mention of a pipfile at all. Might be helpful to expand to include some notes on the pipfile and whether we should include both or one over the other.
- The suggested project structure doesn't include context.py, but this seems to be as much a core part as the rest of the test files - should this be added?
- The section on Makefile is also confusing - there is no reference to Makefile in the initial project structure; when exactly might one use this?
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la section Sample Repository à l’adresse /writing/structure/ et lisez les indications environnantes sur setup.py, requirements.txt, Pipfile, virtualenv, context.py et Makefile. Comparez la structure du projet et le workflow décrits, puis identifiez les explications ou les liens qui nécessitent des éclaircissements. Le travail est considéré comme terminé lorsque la section explique de manière cohérente ses recommandations, ses alternatives et le rôle de chaque fichier nommé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100