Skip to content

Commit

Permalink
Update setup.py with testing and extra packaging requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Mar 22, 2021
1 parent 1bb6218 commit 73df78d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,33 @@ def compile():
requirements = open("requirements.txt", "r")
install_requires = requirements.read().splitlines()

tests_require = (
[
"pytest",
"pycodestyle",
"coverage",
],
)
extras_require = {
"required C libraries": ["udunits2==2.2.25"],
"regridding": ["esmpy", "ESMF>=8.0"],
"convolution filters, derivatives, relative vorticity": ["scipy>=1.1.0"],
"subspacing with multi-dimensional construct cells": ["matplotlib>=3.0.0"],
"parallel processing": ["mpich", "mpi4py>=3.0.0"],
"documentation": [
"sphinx>=2,<=4",
"sphinx-copybutton",
"sphinx-toggleprompt",
"sphinxcontrib-spelling",
],
"pre-commit hooks": [
"pre-commit",
"black",
"docformatter",
"flake8",
],
}

setup(
name="cf-python",
long_description=long_description,
Expand Down Expand Up @@ -281,6 +308,8 @@ def compile():
scripts=["scripts/cfa"],
python_requires=">=3.6",
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
# install_requires=[
# 'netCDF4>=1.5.3',
# 'cftime>=1.1.3',
Expand Down

0 comments on commit 73df78d

Please sign in to comment.