Commits

Anonymous committed 6d4b189

fixed usage of pip

  • Participants
  • Parent commits 9114e85

Comments (0)

Files changed (3)

 	zip -j docs.zip docs/*.html docs/format.css LICENSE.txt
 
 deploy: dist
-	rm -f pyPEG2.tar.gz
+	rm -f pyPEG2.tar.gz pyPEG2-*.tar.gz
 	ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1` pyPEG2.tar.gz
-	scp docs/*.html docs/format.css pyPEG2.tar.gz *.txt samples/* dragon:fdik.org/pyPEG2/
+	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:
 
 clean:
 	$(MAKE) -C docs clean
-	rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz
+	rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz pyPEG2-*.tar.gz
 
 push:
-	hg push ssh://hg@bitbucket.org/fdik/pypeg
+	hg push ssh://hg@bitbucket.org/fdik/pyPEG
 
 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) 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
 

File samples/sample1.py

 </Function>
 ...
 
-The XMl backend can read XML text and create things:
+The XML backend can read XML text and create things:
 
 >>> from pypeg2.xmlast import xml2thing
 >>> xml = b'<Function typing="long" name="g"><Parameters><Parameter name="x" typing="int"/></Parameters><Instruction>return</Instruction></Function>'
 from distutils.core import setup
 
+_version = '2.7.1'
+
 setup(
     name='pyPEG2',
-    version='2.7.0',
+    version=_version,
     author='Volker Birk',
     author_email='vb@dingens.org',
-    packages=['pypeg2', 'pypeg2.test'],
+    packages=['pyPEG2', 'pyPEG2.test'],
     scripts=['samples/sample1.py', 'samples/sample2.py'],
     url='http://fdik.org/pyPEG2',
-    download_url='http://fdik.org/pyPEG2/pyPEG2.tar.gz',
+    download_url='http://fdik.org/pyPEG2/pyPEG2-' + _version + '.tar.gz',
     license='LICENSE.txt',
     description='An intrinsic PEG Parser-Interpreter for Python',
     long_description=open('README.txt').read(),