-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (26 loc) · 649 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
VENV = venv
PYTHON = $(VENV)/bin/python3
PIP = $(VENV)/bin/python3 -m pip
DIST = dist
upload: $(DIST)
twine upload $(DIST)/*
test-upload: $(DIST)
twine upload -r testpypi $(DIST)/*
$(DIST): build
build: $(VENV)/bin/activate
rm -rf dist
rm -rf tweetkit.egg-info
$(VENV)/bin/python3 -m build
setup: requirements.txt $(VENV)/bin/activate
$(PIP) install -r requirements.txt
requirements.txt: $(VENV)/bin/activate
$(PIP) install pip-tools
pip-compile -o requirements.txt --extra dev
$(VENV)/bin/activate:
python3 -m venv $(VENV)
$(PIP) install --upgrade pip
clean:
rm -rf tweetkit.egg-info
rm -rf dist
rm -rf __pycache__
rm -rf venv