Changeset 30
- Timestamp:
- 05/30/06 15:36:33 (6 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (2 diffs)
- branches/mk/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r28 r30 36 36 37 37 def has_extension(filename, ext): 38 """Check if filename has given extension. 39 40 >>> has_extension("foobar.py", ".py") 41 True 42 >>> has_extension("foo.bar.py", ".py") 43 True 44 >>> has_extension("foobar.pyc", ".py") 45 False 46 """ 38 47 return os.path.splitext(filename)[1] == ext 39 48 … … 683 692 684 693 def which_cheese_file(self, filename): 694 """Find out which Cheese file coresponds to given filename (if any). 695 696 Return False if filename is not a Cheese file. 697 """ 685 698 text_cheese_files = filter(lambda x: not has_extension(x, ".py"), 686 699 self.cheese_files) branches/mk/setup.py
r19 r30 1 1 #! /usr/bin/env python 2 2 import sys 3 import os .path3 import os 4 4 5 5 from setuptools import setup 6 6 from pkg_resources import require 7 8 # Instruct nose to use doctests. 9 os.environ['NOSE_WITH_DOCTEST'] = 'True' 10 os.environ['NOSE_DOCTEST_TESTS'] = 'True' 7 11 8 12 setup(
