Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytest-lazy-fixtures, add classifiers and include LICENSE #410

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading