Permalink
Browse files

Allow multiple values in single ignore argument.

  • Loading branch information...
1 parent df01526 commit 6f33953935789637c8b11fe9ad1af34776b1f230 @tkaemming tkaemming committed Oct 24, 2012
Showing with 12 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 Makefile
  3. +1 −1 VERSION
  4. +8 −1 templateusage.py
View
@@ -1,2 +1,3 @@
*.py[co]
*.egg*
+dist/
View
@@ -1,12 +1,12 @@
clean:
- find . -name *.pyc -delete
+ find . -name \*.pyc -delete
test: clean
python setup.py test
publish:
git tag $$(python setup.py --version)
- git push --tags
+ git push && git push --tags
python setup.py sdist upload
.PHONY: publish clean test
View
@@ -1 +1 @@
-0.1.0
+0.1.1
View
@@ -1,4 +1,5 @@
import os
+import string
import sys
import mock
@@ -47,7 +48,13 @@ def options(self, parser, env):
def configure(self, options, conf):
self.enabled = options.enabled
- self.ignore_prefixes = options.ignore_prefixes
+
+ ignore_prefixes = options.ignore_prefixes
+ # Allow for multiple values in a single argument, e.g. from `setup.cfg`.
+ if len(ignore_prefixes) == 1:
+ ignore_prefixes = map(string.strip, ignore_prefixes[0].split('\n'))
+
+ self.ignore_prefixes = ignore_prefixes
def begin(self):
self.used_templates = set()

0 comments on commit 6f33953

Please sign in to comment.