forked from buriy/python-readability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (45 loc) · 880 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Makefile to help automate tasks
WD := $(shell pwd)
PY := .env/bin/python
PIP := .env/bin/pip
PEP8 := .env/bin/pep8
NOSE := .env/bin/nosetests
# ###########
# Tests rule!
# ###########
.PHONY: test
test: venv develop $(NOSE)
$(NOSE) --with-id -s tests
$(NOSE):
$(PIP) install nose pep8 coverage
# #######
# INSTALL
# #######
.PHONY: all
all: venv develop
venv: bin/python
bin/python:
virtualenv .env
.PHONY: clean_venv
clean_venv:
rm -rf .env
develop: .env/lib/python*/site-packages/readability-lxml.egg-link
.env/lib/python*/site-packages/readability-lxml.egg-link:
$(PY) setup.py develop
# ###########
# Development
# ###########
.PHONY: clean_all
clean_all: clean_venv
# ###########
# Deploy
# ###########
.PHONY: dist
dist:
$(PY) setup.py sdist
.PHONY: upload
upload:
$(PY) setup.py sdist upload
.PHONY: version_update
version_update:
$(EDITOR) setup.py