-
Notifications
You must be signed in to change notification settings - Fork 10
fortran bindings: split py2fgen and bindings #1185
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2c107ae
fortran bindings: split py2fgen and bindings
havogt 201812f
Merge remote-tracking branch 'upstream/main' into split_py2fgen_from_…
havogt 905c236
address review comments
havogt 2bf46c8
why does my local mypy complain?
havogt b3a4e7e
fix ci
havogt 8b2e6c4
fix empty test set
havogt 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
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,93 @@ | ||
| # -- Build system requirements (PEP 518) -- | ||
|
|
||
| [build-system] | ||
| build-backend = 'setuptools.build_meta' | ||
| requires = ['setuptools>=61.0', 'wheel>=0.40.0'] | ||
|
|
||
| # -- Standard project description options (PEP 621) -- | ||
| [project] | ||
| authors = [{email = 'gridtools@cscs.ch', name = 'ETH Zurich'}] | ||
| classifiers = [ | ||
| 'Development Status :: 3 - Alpha', | ||
| 'Intended Audience :: Science/Research', | ||
| 'License :: OSI Approved :: BSD License', | ||
| 'Operating System :: POSIX', | ||
| 'Programming Language :: Python', | ||
| 'Programming Language :: Python :: 3', | ||
| 'Programming Language :: Python :: 3 :: Only', | ||
| 'Programming Language :: Python :: 3.10', | ||
| 'Programming Language :: Python :: 3.11', | ||
| 'Programming Language :: Python :: Implementation :: CPython', | ||
| 'Topic :: Scientific/Engineering :: Atmospheric Science', | ||
| 'Topic :: Scientific/Engineering :: Mathematics', | ||
| 'Topic :: Scientific/Engineering :: Physics' | ||
| ] | ||
| dependencies = [ | ||
| # workspace members | ||
| 'icon4py-atmosphere-diffusion~=0.1.0', | ||
| 'icon4py-atmosphere-dycore~=0.1.0', | ||
| 'icon4py-atmosphere-muphys~=0.1.0', | ||
| 'icon4py-common~=0.1.0', | ||
| 'icon4py-tools~=0.1.0', | ||
| # external dependencies | ||
| 'cffi>=1.5', | ||
| 'gt4py==1.1.9', | ||
| "numpy>=1.23.3", | ||
| 'packaging>=20.0' | ||
| ] | ||
| description = 'Fortran bindings for icon4py model components.' | ||
| license = {text = "BSD-3 License"} | ||
| name = 'icon4py-bindings' | ||
|
havogt marked this conversation as resolved.
|
||
| readme = 'README.md' | ||
| requires-python = '>=3.10' | ||
| # managed by bump-my-version: | ||
| version = "0.1.0" | ||
|
|
||
| [project.optional-dependencies] | ||
| cuda11 = ['cupy-cuda11x>=13.0', 'gt4py[cuda11]'] | ||
| cuda12 = ['cupy-cuda12x>=13.0', 'gt4py[cuda12]'] | ||
| profiling = ['viztracer>=1.1.0'] | ||
|
|
||
| [project.urls] | ||
| Homepage = 'https://github.com/C2SM/icon4py' | ||
|
|
||
| # -- bumpversion -- | ||
| [tool.bumpversion] | ||
| allow_dirty = false | ||
| commit = false | ||
| current_version = "0.1.0" | ||
| ignore_missing_version = false | ||
| message = 'Bump icon4py-bindings version: {current_version} → {new_version}' | ||
| parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)?" | ||
| serialize = ["{major}.{minor}.{patch}"] | ||
| tag = false | ||
|
|
||
| [[tool.bumpversion.files]] | ||
| filename = "pyproject.toml" | ||
| replace = ''' | ||
| # managed by bump-my-version: | ||
| version = "{new_version}" | ||
| ''' | ||
| search = ''' | ||
| # managed by bump-my-version: | ||
| version = "{current_version}" | ||
| ''' | ||
|
|
||
| [[tool.bumpversion.files]] | ||
| filename = "src/icon4py/bindings/__init__.py" | ||
|
|
||
| # -- ruff -- | ||
| [tool.ruff] | ||
| extend = "../pyproject.toml" | ||
| extend-exclude = ["tests/bindings/references/*"] | ||
|
|
||
| [tool.ruff.lint.isort] | ||
| known-first-party = ['icon4py'] | ||
| known-third-party = ['gt4py'] | ||
|
|
||
| # -- setuptools -- | ||
| [tool.setuptools.package-data] | ||
| '*' = ['*.in', '*.md', '*.rst', '*.txt', 'LICENSE', 'py.typed'] | ||
|
|
||
| [tool.setuptools.packages] | ||
| find = {namespaces = true, where = ['src']} | ||
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,29 @@ | ||
| # ICON4Py - ICON inspired code in Python and GT4Py | ||
| # | ||
| # Copyright (c) 2022-2024, ETH Zurich and MeteoSwiss | ||
| # All rights reserved. | ||
| # | ||
| # Please, refer to the LICENSE file in the root directory. | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| """Package metadata: version, authors, license and copyright.""" | ||
|
|
||
| from typing import Final | ||
|
|
||
| from packaging import version as pkg_version | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "__author__", | ||
| "__copyright__", | ||
| "__license__", | ||
| "__version__", | ||
| "__version_info__", | ||
| ] | ||
|
|
||
| __author__: Final = "ETH Zurich, MeteoSwiss and individual contributors" | ||
| __copyright__: Final = "Copyright (c) 2022-2024 ETH Zurich and MeteoSwiss" | ||
| __license__: Final = "BSD-3-Clause" | ||
|
|
||
| __version__: Final = "0.1.0" | ||
| __version_info__: Final = pkg_version.parse(__version__) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
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.