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
59
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
84
Python @classmethod
cacarrara
0
120
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
110
Revisão de Código - Desafios, soluções e experiências
cacarrara
0
240
Viés Algorítmico
cacarrara
0
80
Pyramid e uma questão de interface
cacarrara
0
51
Tecnologia da Informação: carreira e mercado
cacarrara
1
84
Other Decks in Programming
See All in Programming
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
AHC041解説
terryu16
0
400
BEエンジニアがFEの業務をできるようになるまでにやったこと
yoshida_ryushin
0
200
ASP.NET Core の OpenAPIサポート
h455h1
0
120
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
220
Rubyでつくるパケットキャプチャツール
ydah
0
170
毎日13時間もかかるバッチ処理をたった3日で60%短縮するためにやったこと
sho_ssk_
1
550
Beyond ORM
77web
11
1.6k
テストコード書いてみませんか?
onopon
2
340
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
1.9k
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
Alba: Why, How and What's So Interesting
okuramasafumi
0
210
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
How to Ace a Technical Interview
jacobian
276
23k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Making the Leap to Tech Lead
cromwellryan
133
9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
KATA
mclloyd
29
14k
Visualization
eitanlees
146
15k
Navigating Team Friction
lara
183
15k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
jQuery: Nuts, Bolts and Bling
dougneiner
62
7.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
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