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

Cleanup pass in setup.py #28

Merged
merged 3 commits into from
Nov 15, 2024
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
34 changes: 21 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""The setup script."""

from setuptools import find_namespace_packages, setup


Expand All @@ -15,34 +13,44 @@
"xarray",
]

test_requirements = ["pytest", "pytest-subtests", "serialbox", "coverage"]
ndsl_requirements = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@develop"]
develop_requirements = test_requirements + ndsl_requirements + ["pre-commit"]
test_requirements = [
"coverage",
"pytest",
"pytest-subtests",
"serialbox",
]

ndsl_requirements = ["ndsl @ git+https://github.com/NOAA-GFDL/[email protected]"]

develop_requirements = [
*ndsl_requirements,
*test_requirements,
"pre-commit",
]

extras_requires = {
"test": test_requirements,
"ndsl": ndsl_requirements,
"develop": develop_requirements,
"ndsl": ndsl_requirements,
"test": test_requirements,
}

setup(
author="The Allen Institute for Artificial Intelligence",
author="NOAA - Geophysical Fluid Dynamics Laboratory",
author_email="[email protected]",
python_requires=">=3.11",
python_requires=">=3.11,<3.12",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"License :: OSI Approved :: GPLv3 License",
romanc marked this conversation as resolved.
Show resolved Hide resolved
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
],
description="pyFV3 is a NDSL-based FV3 dynamical core for atmospheric models",
description="PyFV3 is a NDSL-based FV3 dynamical core for atmospheric models.",
install_requires=requirements,
extras_require=extras_requires,
license="BSD license",
license="GPLv3 license",
long_description=readme,
include_package_data=True,
name="pyFV3",
packages=find_namespace_packages(include=["pyFV3", "pyFV3.*"]),
setup_requires=[],
Expand Down
Loading