Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update makefile and dependency specification

  • Loading branch information...
commit 3fccaa7699387b40673588166fe0fb9d2b9d1540 1 parent aabdc05
@mwilliamson authored
View
32 makefile
@@ -1,11 +1,31 @@
-.PHONY: test
+.PHONY: test upload clean bootstrap setup
test:
nosetests -m'^$$' `find tests -name '*.py'`
+
+upload: setup
+ python setup.py sdist upload
+ make clean
+
+register: setup
+ python setup.py register
-upload:
+README:
pandoc --from=markdown --to=rst README.md > README
- python setup.py sdist upload
- rm README
- rm MANIFEST
- rm -r dist
+
+clean:
+ rm -f README
+ rm -f MANIFEST
+ rm -rf dist
+
+bootstrap: _virtualenv setup
+ _virtualenv/bin/pip install -e .
+ifneq ($(wildcard test-requirements.txt),)
+ _virtualenv/bin/pip install -r test-requirements.txt
+endif
+ make clean
+
+setup: README
+
+_virtualenv:
+ virtualenv _virtualenv
View
2  setup.py
@@ -15,5 +15,5 @@ def read(fname):
url='http://github.com/mwilliamson/blah',
scripts=["scripts/blah"],
packages=['blah'],
- install_requires=["argparse==1.2.1", "nose==1.2.1"],
+ install_requires=["argparse==1.2.1"],
)
View
1  requirements.txt → test-requirements.txt
@@ -1,3 +1,2 @@
-argparse==1.2.1
nose==1.2.1
mock==0.8.0
Please sign in to comment.
Something went wrong with that request. Please try again.