Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre authored and aaronspring committed Nov 9, 2023
1 parent 683e1ed commit 2ed5fcf
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from setuptools import find_packages, setup

DISTNAME = "xskillscore"
LICENSE = "Apache"
AUTHOR = "Ray Bell"
AUTHOR_EMAIL = "rayjohnbell0@gmail.com"
DESCRIPTION = "xskillscore"
Expand All @@ -10,42 +9,54 @@
with open("requirements.txt") as f:
INSTALL_REQUIRES = f.read().strip().split("\n")
PYTHON_REQUIRE = ">=3.9"
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: Mathematics",
]

EXTRAS_REQUIRE = {
"accel": ["numba>=0.52", "bottleneck"],
}

EXTRAS_REQUIRE["complete"] = sorted({v for req in EXTRAS_REQUIRE.values() for v in req})
# after complete is set, add in test
EXTRAS_REQUIRE["test"] = [
"pytest",
"scikit-learn",
"cftime",
"matplotlib",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-lazy-fixtures",
"pytest-xdist",
"pytest-lazy-fixures",
"pre-commit",
"scikit-learn",
]
EXTRAS_REQUIRE["docs"] = EXTRAS_REQUIRE["complete"] + [
"doc8",
"nbsphinx",
"nbstripout",
"doc8",
"sphinx",
"sphinx-autosummary-accessors",
"sphinxcontrib-napoleon",
"sphinx_rtd_theme",
"sphinx-copybutton",
"sphinx-rtd-theme>=1.0",
"sphinxcontrib-napoleon",
]


setup(
name=DISTNAME,
license=LICENSE,
license_files = ('LICENSE.txt',),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
url=URL,
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
Expand Down

0 comments on commit 2ed5fcf

Please sign in to comment.