forked from geopy/geopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 754 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
.PHONY: lint
.PHONY: test
.PHONY: clean
.PHONY: docs
.PHONY: dist
.PHONY: release
develop:
virtualenv .venv --distribute
. .venv/bin/activate
python setup.py develop && python setup.py test
lint:
./lint.sh
pylint:
pylint --rcfile .pylintrc geopy
test:
nosetests --verbose --with-cover --cover-erase --cover-package=geopy
clean:
find . -name "*.pyc" -print0 | xargs -0 rm -rf
docs:
touch docs/_build/html/index.rst
cd docs && make html
dist:
rm -rf dist
pandoc -f markdown -t rst README.md > README
python setup.py sdist --format=gztar
pip wheel --no-index --no-deps --wheel-dir dist dist/*.tar.gz
rm README
rm -rf *.egg-info
release:
make dist
git tag -a $(version)
remote-docs:
curl -X POST http://readthedocs.org/build/geopy