Permalink
Browse files

Adds Makefile and bumps version to 0.1.1

Signed-off-by: Gora Khargosh <gora.khargosh@gmail.com>
  • Loading branch information...
1 parent 0074d1e commit be6220eebc0cf87170e681ad0f248f6a2d0a8c9b @gorakhargosh committed Jan 2, 2011
Showing with 83 additions and 2 deletions.
  1. +81 −0 Makefile
  2. +1 −1 docs/source/global.rst.inc
  3. +1 −1 pathtools/version.py
View
81 Makefile
@@ -0,0 +1,81 @@
+RM = rm -rf
+
+.PHONY: all
+
+all: build
+
+help:
+ @echo "Possible targets:"
+ @echo " test - run testsuite"
+ @echo " doc - builds the documentation"
+ @echo " view-doc - opens documentation in the browser"
+ @echo " upload-doc - uploads the documentation to PyPI"
+ @echo " develop - set up development environment"
+ @echo " clean - clean up generated files"
+ @echo " release - performs a release"
+ @echo " auto - continuous builds"
+
+release: clean test upload-doc
+ python setup.py sdist upload
+
+build: doc
+ @bin/python setup.py build
+
+doc: develop
+ @make SPHINXBUILD=../bin/sphinx-build -C docs/ html
+
+upload-doc: doc
+ @bin/python setup.py upload_docs --upload-dir=docs/build/html
+
+view-doc: doc
+ @bin/python -c "import webbrowser; webbrowser.open('docs/build/html/index.html')"
+
+test:
+ @bin/coverage erase
+ @bin/python-tests tests/run_tests.py
+ @bin/coverage html
+
+auto: scripts/nosy.py
+ @bin/python scripts/nosy.py .
+
+# Development environment targets and dependencies.
+develop: submodules bin/python
+
+submodules:
+ @git submodule update --init --recursive
+
+bin/buildout: buildout.cfg setup.py
+ @python scripts/bootstrap.py --distribute
+
+bin/python: bin/buildout
+ @bin/buildout
+
+clean:
+ @make -C docs/ clean > /dev/null
+ @$(RM) build/ *.egg-info/
+ @find . \( \
+ -iname "*.pyc" \
+ -or -iname "*.pyo" \
+ -or -iname "*.so" \
+ -or -iname "*.o" \
+ -or -iname "*~" \
+ -or -iname "._*" \
+ -or -iname "*.swp" \
+ -or -iname "Desktop.ini" \
+ -or -iname "Thumbs.db" \
+ -or -iname "__MACOSX__" \
+ -or -iname ".DS_Store" \
+ \) -delete
+
+distclean: clean
+ @$(RM) \
+ dist/ \
+ bin/ \
+ develop-eggs/ \
+ eggs/ \
+ parts/ \
+ MANIFEST \
+ htmlcov/ \
+ .pythoscope/ \
+ .coverage \
+ .installed.cfg
View
2 docs/source/global.rst.inc
@@ -4,7 +4,7 @@
.. |author_email| replace:: gora.khargosh@gmail.com
.. |copyright| replace:: Copyright (C) 2010 Gora Khargosh.
.. |project_name| replace:: ``pathtools``
-.. |project_version| replace:: 0.1.0
+.. |project_version| replace:: 0.1.1
.. _issue tracker: http://github.com/gorakhargosh/pathtools/issues
.. _code repository: http://github.com/gorakhargosh/pathtools
View
2 pathtools/version.py
@@ -24,7 +24,7 @@
# ``docs/source/global.rst.inc`` file as well.
VERSION_MAJOR = 0
VERSION_MINOR = 1
-VERSION_BUILD = 0
+VERSION_BUILD = 1
VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD)
VERSION_STRING = "%d.%d.%d" % VERSION_INFO

0 comments on commit be6220e

Please sign in to comment.