summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-10-17 15:23:14 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-10-17 15:23:14 -0400
commit976df5bf96adc16ea8c97e822cf7e773b0525f78 (patch)
tree8a26ee1e7464f0acb14d333b3270d18f1b98c800 /setup.py
parentaa20e20b88d243d5277b5e1fefcd0021588feb52 (diff)
downloadsqlalchemy-976df5bf96adc16ea8c97e822cf7e773b0525f78.tar.gz
- the NoseSQLAlchemyPlugin has been moved to a
new package "sqlalchemy_nose" which installs along with "sqlalchemy". This so that the "nosetests" script works as always but also allows the --with-coverage option to turn on coverage before SQLAlchemy modules are imported, allowing coverage to work correctly. - added some new ignores
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 76cba0584..7a8a0f3f2 100644
--- a/setup.py
+++ b/setup.py
@@ -56,11 +56,11 @@ elif BUILD_CEXTENSIONS:
def find_packages(dir_):
packages = []
- for _dir, subdirectories, files in os.walk(os.path.join(dir_,
- 'sqlalchemy')):
- if '__init__.py' in files:
- lib, fragment = _dir.split(os.sep, 1)
- packages.append(fragment.replace(os.sep, '.'))
+ for pkg in ['sqlalchemy', 'sqlalchemy_nose']:
+ for _dir, subdirectories, files in os.walk(os.path.join(dir_, pkg)):
+ if '__init__.py' in files:
+ lib, fragment = _dir.split(os.sep, 1)
+ packages.append(fragment.replace(os.sep, '.'))
return packages
if sys.version_info < (2, 4):
@@ -90,7 +90,7 @@ setup(name = "SQLAlchemy",
test_suite = "nose.collector",
entry_points = {
'nose.plugins.0.10': [
- 'sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy',
+ 'sqlalchemy = sqlalchemy_nose.noseplugin:NoseSQLAlchemy',
]
},