-
Notifications
You must be signed in to change notification settings - Fork 16
Packaging: Use of pyproject.toml and move to minimal setup.py for modernization #159
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8dd3ec5
Moving to pyproject.toml and minimal setup.py
fmalatino 8d90eda
Linting
fmalatino 6723e61
Merged in develop branch
fmalatino fd50a49
Fixing setup.py syntax
fmalatino 1451347
Moving setup.cfg contents to pyproject.toml
fmalatino 43b89fa
Merge branch 'develop' into packaging
fmalatino 8682df3
Adding license information for ndsl/viz/fv3/README.md
fmalatino 42f0f94
Adding private classifier to pyproject.toml
fmalatino 2dba80b
Removing setup.cfg
fmalatino facfb12
Fixing unit test workflow
fmalatino ee755b2
Changing install option from 'develop' to 'dev'
fmalatino 0a74c08
Adding linting for yamls
fmalatino b20dfbf
Adding Flake8-pyproject as additional dependency in pre-commit-config…
fmalatino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| [build-system] | ||
| requires = ["setuptools >= 77.0.3"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "ndsl" | ||
| version = "2025.05.00" | ||
| dynamic = ["dependencies"] | ||
| requires-python = ">=3.11" | ||
| authors = [{name = "NOAA/NASA"}] | ||
| readme = "README.md" | ||
| license = "Apache-2.0" | ||
| license-files = ["LICENSE.txt", "ndsl/viz/fv3/README.md"] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
|
romanc marked this conversation as resolved.
Outdated
|
||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.11", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| docs = ["mkdocs-material"] | ||
| demos = ["ipython", "ipykernel"] | ||
| test = ["pytest", "pytest-subtests", "coverage"] | ||
| develop = [ | ||
| "ndsl[docs]", | ||
| "ndsl[demos]", | ||
| "ndsl[test]", | ||
| "pre-commit", | ||
| "pyproject-flake8" | ||
| ] | ||
| extras = [ | ||
| "ndsl[docs]", | ||
| "ndsl[demos]", | ||
| "ndsl[test]", | ||
| "ndsl[develop]", | ||
| ] | ||
|
|
||
| [project.scripts] | ||
| ndsl-serialbox_to_netcdf = "ndsl.stencils.testing.serialbox_to_netcdf:entry_point" | ||
|
|
||
| [project.urls] | ||
| Repository = "https://github.com/NOAA-GFDL/NDSL" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["ndsl", "ndsl.*"] | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
|
|
||
| [tool.flake8] | ||
| exclude = ["docs"] | ||
| extend-ignore = ["E203","E302","E704","F841","W293","E501","W503"] | ||
| max-line-length = 88 | ||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
| lines_after_imports = 2 | ||
| default_section = "THIRDPARTY" | ||
| sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" | ||
| known_third_party = "f90nml,pytest,xarray,numpy,mpi4py,gt4py,dace" | ||
|
|
||
| [tool.mypy] | ||
| ignore_missing_imports = "true" | ||
| follow_imports = "normal" | ||
| namespace_packages = "true" | ||
| strict_optional = "false" | ||
| warn_unreachable = "true" | ||
| explicit_package_bases = "true" | ||
|
|
||
| [tool.coverage.run] | ||
| parallel = true | ||
| branch = true | ||
| omit = ["tests/*", "*gt_cache*", ".dacecache*", "external/*", "__init__.py"] | ||
| source_pkgs = "ndsl" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.