Skip to content

Commit

Permalink
DEP: Make database dependencies optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Snow committed Feb 15, 2024
1 parent 5351ee9 commit ddb19b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@
'test': tests_require,
'cf': ['compliance-checker>=4.0.0'],
'netcdf': ['netcdf4'],
'db': [
'psycopg2',
'sqlalchemy>=2.0', # GeoAlchemy2 requires >=1.4. SqlAlchemy2 *may* work but has not been tested yet.
'GeoAlchemy2',
"alembic",
]
}

extras_require['dev'] = sorted(set(sum([extras_require[k] for k in [
'test',
'db',
'doc',
'performance',
's3',
Expand Down Expand Up @@ -100,16 +107,12 @@
'distributed',
'jsonschema>=4.18', # New reference resolution API
'numpy',
'psycopg2',
'lark',
'pandas',
'python-dateutil',
'pyyaml',
'rasterio>=1.3.2', # Warping broken in 1.3.0 and 1.3.1
'ruamel.yaml',
'sqlalchemy>=2.0', # GeoAlchemy2 requires >=1.4. SqlAlchemy2 *may* work but has not been tested yet.
'GeoAlchemy2',
"alembic",
'toolz',
'xarray>=0.9', # >0.9 fixes most problems with `crs` attributes being lost
'packaging',
Expand Down

0 comments on commit ddb19b3

Please sign in to comment.