Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
make + pip + pip-tools
Search
Caio Carrara
August 03, 2019
Programming
0
65
make + pip + pip-tools
Slides da lighting apresentada no meetup Python Floripa na Hostgator
Caio Carrara
August 03, 2019
Tweet
Share
More Decks by Caio Carrara
See All by Caio Carrara
Pythonic OOP pt. 1
cacarrara
1
210
Python para web 101
cacarrara
1
90
Python @classmethod
cacarrara
0
130
Anti-patterns - o que são e como se livrar deles em Python
cacarrara
1
190
Distributed Systems of Microservices using Docker and Serfnode
cacarrara
0
120
Revisão de Código - Desafios, soluções e experiências
cacarrara
0
250
Viés Algorítmico
cacarrara
0
84
Pyramid e uma questão de interface
cacarrara
0
52
Tecnologia da Informação: carreira e mercado
cacarrara
1
85
Other Decks in Programming
See All in Programming
Identifying and Analyzing Fake OSS with Malware - fukuoka.go#21
rhykw
0
470
研究開発と実装OSSと プロダクトの好循環 / A virtuous cycle of research and development implementation OSS and products
linyows
1
180
Go1.24 go vetとtestsアナライザ
kuro_kurorrr
2
330
「その気にさせる」エンジニアが 最強のリーダーになる理由
gimupop
3
460
SLI/SLOの設定を進めるその前に アラート品質の改善に取り組んだ話
tanden
2
530
技術好きなエンジニアが "リーダーへの進化" によって得たものと失ったもの
pospome
5
1.3k
신입 안드로이드 개발자의 AI 스타트업 생존기 (+ Native C++ Code를 Android에서 사용해보기)
dygames
0
480
Scala 3 で GLSL のための c-like-for を実装してみた
exoego
1
160
OpenTelemetryを活用したObservability入門 / Introduction to Observability with OpenTelemetry
seike460
PRO
0
190
WordPress Playground for Developers
iambherulal
0
110
Functional APIから再考するLangGraphを使う理由
os1ma
4
630
小さく段階的リリースすることで深夜メンテを回避する
mkmk884
2
110
Featured
See All Featured
A designer walks into a library…
pauljervisheath
205
24k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
176
52k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
The Pragmatic Product Professional
lauravandoore
33
6.5k
How to Ace a Technical Interview
jacobian
276
23k
Adopting Sorbet at Scale
ufuk
75
9.3k
Statistics for Hackers
jakevdp
797
220k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
A better future with KSS
kneath
238
17k
How STYLIGHT went responsive
nonsquared
99
5.4k
Designing for humans not robots
tammielis
250
25k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Transcript
1 / 20 make + pip + pip-tools caiocarrara.com.br
2 / 20 make + pip + pip-tools • Necessidade:
– Gerenciar dependências Python • Contexto: – Aplicações server side
3 / 20 make + pip + pip-tools Necessidade: Gerenciar
dependências Python Contexto: Aplicações server side ONLY
4 / 20 AVISO
5 / 20
6 / 20 make + pip + pip-tools • Princípios:
– Do one thing and do it well – DOTADIW (Unix) – Se apoiar no ombro de gigantes – Não perder ou complicar o controle das coisas – Manter as coisas o mais simples possível
7 / 20 make + pip + pip-tools • O
que eu quero: – Especificar e rastrear as dependências do meu projeto – (Re)Instalar as dependências
8 / 20 make + pip + pip-tools • O
que eu não quero: – Rodar scripts/programas Python – Criar pacotes Python para distribuir – Criar/editar/mexer no virtual environment
9 / 20 make + pip + pip-tools
10 / 20 make + pip + pip-tools • make
– Executar as ações/tarefas • pip – Instalar os pacotes Python • pip-tools – Ajudante para lock and sync
11 / 20 pip pip install [package] pip install django
pip install requests pip install pytest
12 / 20 pip
13 / 20 pip pip freeze > requirements.txt celery==4.3.0 Click==7.0
Django==2.2.4 requests==2.22.0
14 / 20 pip-tools requirements.in flask
15 / 20 pip-tools
16 / 20 make • Makefile
17 / 20 make • Makefile
18 / 20 make • Commands: make test make run
make shell make test-coverage
19 / 20 make + pip + pip-tools
20 / 20 Obrigado • Make – https://www.gnu.org/software/make/ • Pip
– https://pip.pypa.io/en/stable/ • Pip-Tools – https://github.com/jazzband/pip-tools caiocarrara.com.br speakerdeck.com/cacarrara