realpython / realpython/python-guide
Addition of Poetry to "Using virtualenvs..." section
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Batchfile
- Estrelas
- 29.8k
- Forks
- 5.9k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi there, thank you for all the work put into this guide so far!
Are there any discussions or plans to mention Poetry anywhere in this guide (I couldn't find any previous issues on this)?
Rationale
I think poetry solves a huge missing piece in the Python ecosystem. For any node.js developers, it is similar to npm and yarn. For many newcomers to the language, the way python does dependency management and virtual environments has a very high learning curve.
Poetry introduces (over traditional pip based package management):
- A unified project manifest
pyproject.tomlcontaining dependencies and build information - Introduces a
poetry.lockfile that pins dependency versions (a better alternative thanpip freezeIMO) - Avoids installing dependencies globally (poetry automatically creates a virtualenv and installs project dependencies there)
- Using
poetry runexecutes commands automatically in the proper virtualenv context (no more needing tosource venv/bin/activate)
And plenty more that I'm sure I am not listing here...
Limitations
As with any new technology, there are some limitations:
- Poetry is dropping support for Python 2.7 and 3.5 in the next release
- Lots of older tutorials and resources probably do not use it, which could confuse beginners even more
Thoughts on this? Would be happy to help contribute wherever I can.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
A solicitação tem como alvo a seção “Using virtualenvs...” do guia e inclui um link para Poetry; comece lendo essa seção e as orientações ao redor sobre gerenciamento de dependências. Esclareça o escopo e as ressalvas de compatibilidade e, em seguida, atualize o guia para que o tratamento de Poetry e suas limitações seja explícito.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100