summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-05-26 15:02:33 -0500
committerGitHub <noreply@github.com>2021-05-26 20:02:33 +0000
commit2421e489e4a75f7d0fbe56e4397cc0c9b6c9e541 (patch)
tree90fc82e9d2c8b4496befd195b0e79546506cf0c2
parentf3e3e5514dcebeac92337f3570fe6ddc54b213d0 (diff)
downloadspack-2421e489e4a75f7d0fbe56e4397cc0c9b6c9e541.tar.gz
spack-2421e489e4a75f7d0fbe56e4397cc0c9b6c9e541.tar.bz2
spack-2421e489e4a75f7d0fbe56e4397cc0c9b6c9e541.tar.xz
spack-2421e489e4a75f7d0fbe56e4397cc0c9b6c9e541.zip
py-sqlalchemy: fix import tests (#23920)
-rw-r--r--var/spack/repos/builtin/packages/py-sqlalchemy/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-sqlalchemy/package.py b/var/spack/repos/builtin/packages/py-sqlalchemy/package.py
index b7eb45ec3b..6633e253c6 100644
--- a/var/spack/repos/builtin/packages/py-sqlalchemy/package.py
+++ b/var/spack/repos/builtin/packages/py-sqlalchemy/package.py
@@ -12,6 +12,19 @@ class PySqlalchemy(PythonPackage):
homepage = 'http://www.sqlalchemy.org/'
pypi = "SQLAlchemy/SQLAlchemy-1.3.9.tar.gz"
+ # 'sqlalchemy.testing.suite' requires 'pytest'
+ # Attempt to import everything other than 'sqlalchemy.testing'
+ # to avoid unnecessary 'pytest' dependency
+ import_modules = [
+ 'sqlalchemy', 'sqlalchemy.connectors', 'sqlalchemy.databases',
+ 'sqlalchemy.util', 'sqlalchemy.ext', 'sqlalchemy.ext.declarative',
+ 'sqlalchemy.dialects', 'sqlalchemy.dialects.sybase',
+ 'sqlalchemy.dialects.postgresql', 'sqlalchemy.dialects.oracle',
+ 'sqlalchemy.dialects.sqlite', 'sqlalchemy.dialects.mysql',
+ 'sqlalchemy.dialects.mssql', 'sqlalchemy.dialects.firebird', 'sqlalchemy.orm',
+ 'sqlalchemy.engine', 'sqlalchemy.pool', 'sqlalchemy.event', 'sqlalchemy.sql'
+ ]
+
version('1.3.19', sha256='3bba2e9fbedb0511769780fe1d63007081008c5c2d7d715e91858c94dbaa260e')
version('1.3.9', sha256='272a835758908412e75e87f75dd0179a51422715c125ce42109632910526b1fd')
version('1.2.19', sha256='5bb2c4fc2bcc3447ad45716c66581eab982c007dcf925482498d8733f86f17c7')