10000 Merge pull request #18 from mitechie/add_makefile · optionalg/python-readability@6e8a1f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e8a1f5

Browse files
committed
Merge pull request buriy#18 from mitechie/add_makefile
Add makefile, update .gitignore for venv potential testfile output.
2 parents 7338e9e + b8fc399 commit 6e8a1f5

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
*.pyc
2+
*.egg-info
23
build
34
dist
4-
readability_lxml.egg-info
5+
/bin
6+
/include
7+
/lib
8+
/local
9+
/man
10+
nosetests.xml
11+
.coverage

Makefile

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Makefile to help automate tasks
2+
WD := $(shell pwd)
3+
PY := bin/python
4+
PIP := bin/pip
5+
PEP8 := bin/pep8
6+
NOSE := bin/nosetests
7+
8+
9+
# ###########
10+
# Tests rule!
11+
# ###########
12+
.PHONY: test
13+
test: venv develop $(NOSE)
14+
$(NOSE) --with-id -s tests
15+
16+
$(NOSE):
17+
$(PIP) install nose pep8 coverage
18+
19+
# #######
20+
# INSTALL
21+
# #######
22+
.PHONY: all
23+
all: venv develop
24+
25+
venv: bin/python
26+
bin/python:
27+
virtualenv .
28+
29+
.PHONY: clean_venv
30+
clean_venv:
31+
rm -rf bin include lib local man
32+
33+
develop: lib/python*/site-packages/bookie-api.egg-link
34+
lib/python*/site-packages/bookie-api.egg-link:
35+
$(PY) setup.py develop
36+
37+
38+
# ###########
39+
# Development
40+
# ###########
41+
.PHONY: clean_all
42+
clean_all: clean_venv
43+
44+
45+
# ###########
46+
# Deploy
47+
# ###########
48+
.PHONY: dist
49+
dist:
50+
$(PY) setup.py sdist
51+
576C 52+
.PHONY: upload
53+
upload:
54+
$(PY) setup.py sdist upload
55+
56+
.PHONY: version_update
57+
version_update:
58+
$(EDITOR) setup.py

0 commit comments

Comments
 (0)
0