Parser/Composer library for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
927 B

PYTHON=python3
.PHONY: docs test_docs clean dist test register deploy
docs:
$(MAKE) -C docs
zip -j docs.zip docs/*.html docs/format.css LICENSE.txt
deploy: dist
rm -f pyPEG2.tar.gz pyPEG2-*.tar.gz
ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1` pyPEG2.tar.gz
ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1`
scp docs/*.html docs/format.css pyPEG2.tar.gz pyPEG2-*.tar.gz *.txt samples/* dragon:fdik.org/pyPEG2/
make register
register:
$(PYTHON) setup.py check
$(PYTHON) setup.py register sdist upload
test_docs:
$(MAKE) -C docs test
clean:
$(MAKE) -C docs clean
rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz pyPEG2-*.tar.gz
dist: docs
$(PYTHON) setup.py sdist
test:
PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_pyPEG2.py
PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_xmlast.py
PYTHONPATH=`pwd` $(PYTHON) samples/sample1.py
PYTHONPATH=`pwd` $(PYTHON) samples/sample2.py
install: dist
$(PYTHON) setup.py install --user