2011-04-27 19:53:17 +02:00
|
|
|
# XXX have a Makefile written by someone that knows Makefiles...
|
|
|
|
|
2011-04-28 17:50:30 +02:00
|
|
|
all: test build install
|
2011-05-01 20:05:50 +02:00
|
|
|
|
2011-04-28 13:01:33 +02:00
|
|
|
readme:
|
2011-04-28 17:50:30 +02:00
|
|
|
# requires docutils, e.g. pip install docutils
|
2011-04-28 13:01:33 +02:00
|
|
|
rst2html.py README.rst > README.html
|
2011-05-01 19:07:09 +02:00
|
|
|
w3m -dump README.html | unix2dos > README.txt
|
2011-04-28 13:01:33 +02:00
|
|
|
|
2011-04-27 20:28:22 +02:00
|
|
|
test:
|
2011-04-28 17:50:30 +02:00
|
|
|
python setup.py test
|
2011-04-27 19:53:17 +02:00
|
|
|
|
2011-04-28 17:50:30 +02:00
|
|
|
# tests that don't require a Refine server running
|
2011-04-27 20:28:22 +02:00
|
|
|
smalltest:
|
2011-04-28 17:50:30 +02:00
|
|
|
python setup.py test --test-suite tests.test_refine_small
|
|
|
|
python setup.py test --test-suite tests.test_facet
|
|
|
|
python setup.py test --test-suite tests.test_history
|
|
|
|
|
|
|
|
build:
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
install:
|
|
|
|
sudo python setup.py install
|
2011-04-27 20:28:22 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
find . -name '*.pyc' | xargs rm -f
|
2011-04-28 17:50:30 +02:00
|
|
|
# XXX is there some way of having setup.py clean up its junk?
|
2013-10-10 13:42:29 +02:00
|
|
|
rm -rf README.{html,txt} build dist refine_client.egg-info distribute-*
|
2011-04-27 20:28:22 +02:00
|
|
|
|
2011-07-22 13:00:08 +02:00
|
|
|
upload: clean
|
|
|
|
python setup.py sdist upload
|
|
|
|
|