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
58
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
200
Python para web 101
cacarrara
1
80
Python @classmethod
cacarrara
0
120
Anti-patterns - o que são e como se livrar deles em Python
cacarrara
1
180
Distributed Systems of Microservices using Docker and Serfnode
cacarrara
0
100
Revisão de Código - Desafios, soluções e experiências
cacarrara
0
240
Viés Algorítmico
cacarrara
0
78
Pyramid e uma questão de interface
cacarrara
0
48
Tecnologia da Informação: carreira e mercado
cacarrara
1
80
Other Decks in Programming
See All in Programming
React への依存を最小にするフロントエンド設計
takonda
20
5.9k
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
180
イベント駆動で成長して委員会
happymana
1
340
WebAssembly Unleashed: Powering Server-Side Applications
chrisft25
0
440
Jakarta EE meets AI
ivargrimstad
0
320
flutterkaigi_2024.pdf
kyoheig3
0
210
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
230
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
1.2k
カンファレンスの「アレ」Webでなんとかしませんか? / Conference “thing” Why don't you do something about it on the Web?
dero1to
1
130
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
180
Macとオーディオ再生 2024/11/02
yusukeito
0
390
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
980
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
The Cult of Friendly URLs
andyhume
78
6k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Fireside Chat
paigeccino
34
3k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Music & Morning Musume
bryan
46
6.2k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Embracing the Ebb and Flow
colly
84
4.5k
Building Adaptive Systems
keathley
38
2.3k
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