-
Notifications
You must be signed in to change notification settings - Fork 48
Modernize Package Configuration #400
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
34 commits
Select commit
Hold shift + click to select a range
fd20d1d
use pyproject.toml
ssolson 6e22f4c
black
ssolson 6db1515
dynamic version
ssolson e086196
dynamic = ["version"]
ssolson 09a78ac
install module specific dependencies
ssolson cff7366
pip install with all
ssolson f62ee78
example dependencies setup
ssolson 8e794be
coverage, coveralls
ssolson 82232d6
pylint to dev env
ssolson aabffba
".[all+dev]"
ssolson 207c1d4
".[all+dev]"
ssolson 946e527
[all,dev]
ssolson 19745ab
try except request with retry
ssolson 8827327
simplify optional dependencies
ssolson 592d650
add a pip opt deps test for each module
ssolson 28e0d51
fix pip deps needs field
ssolson 68b95fd
adjust pip needs field
ssolson 8c7423a
remove hindcast artifact downloads
ssolson 63f69d9
add bottleneck and lxml
ssolson b8d05fd
add cartopy to river
ssolson 2cad0aa
cartopy => loads, mooring
ssolson 3814020
lazy import modules for optional pip dependecies
ssolson 865d58f
remove cartopy from river, loads, mooring
ssolson 02171f1
lazy load cartopy in dolfyn discharge
ssolson 7b44d89
try increasing usgs time
ssolson 70609a2
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson bbb789c
remove qc module from test bc no specific mhkit tests
ssolson eabed6f
improve the lazy load error message
ssolson 0e03da5
clean up error message more
ssolson 34030a6
remove fstring on non variable strings
ssolson 509b403
delete the deps test script
ssolson 6125357
minor change to logic in mhkit/__init__.py
akeeste 614bc60
rework mhkit init error messages
akeeste 11ac941
make pecos a core dependency
akeeste 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=61.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "mhkit" | ||
| # `version` is read from `[tools.setuptools.dynamic] version` during build: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata | ||
| dynamic = ["version"] | ||
| description = "Marine and Hydrokinetic Toolkit" | ||
| readme = "README.md" | ||
| authors = [ | ||
| {name = "MHKiT developers"} | ||
| ] | ||
| license = {text = "Revised BSD"} | ||
| classifiers = [ | ||
| "Development Status :: 3 - Alpha", | ||
| "Programming Language :: Python :: 3", | ||
| "Topic :: Scientific/Engineering", | ||
| "Intended Audience :: Science/Research", | ||
| "Operating System :: OS Independent", | ||
| ] | ||
| requires-python = ">=3.10" | ||
| dependencies = [ | ||
| "numpy>=2.0.0", | ||
| "pandas>=2.2.2", | ||
| "scipy>=1.14.0", | ||
| "xarray>=2024.6.0", | ||
| "matplotlib>=3.9.1", | ||
| "pecos>=0.3.0", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| # Core dependencies for each module | ||
| wave = [ | ||
| "scikit-learn>=1.5.1", | ||
| "statsmodels>=0.14.2", | ||
| "netCDF4>=1.7.1.post1", | ||
| "pytz", | ||
| "NREL-rex>=0.2.63", | ||
| "beautifulsoup4", | ||
| "requests", | ||
| "bottleneck", | ||
| "lxml" | ||
| ] | ||
|
|
||
| tidal = [ | ||
| "netCDF4>=1.7.1.post1", | ||
| "requests", | ||
| "bottleneck" | ||
| ] | ||
|
|
||
| river = [ | ||
| "netCDF4>=1.7.1.post1", | ||
| "requests", | ||
| "bottleneck", | ||
| ] | ||
|
|
||
| dolfyn = [ | ||
| "h5py>=3.11.0", | ||
| "h5pyd>=0.18.0", | ||
| "netCDF4>=1.7.1.post1", | ||
| "cartopy", | ||
| ] | ||
|
|
||
| power = [ | ||
| ] | ||
|
|
||
| loads = [ | ||
| "fatpack" | ||
| ] | ||
|
|
||
| mooring = [ | ||
| ] | ||
|
|
||
| acoustics = [ | ||
|
|
||
| ] | ||
|
|
||
| qc = [ | ||
|
|
||
| ] | ||
|
|
||
| utils = [ | ||
|
|
||
| ] | ||
|
|
||
| # Development dependencies | ||
| dev = [ | ||
| "pytest", | ||
| "pylint", | ||
| "pytest-cov", | ||
| "pre-commit", | ||
| "coverage", | ||
| "coveralls" | ||
| ] | ||
|
|
||
|
|
||
|
|
||
| # Install all optional dependencies | ||
| all = [ | ||
| "mhkit[wave]", | ||
| "mhkit[tidal]", | ||
| "mhkit[river]", | ||
| "mhkit[dolfyn]", | ||
| "mhkit[power]", | ||
| "mhkit[loads]", | ||
| "mhkit[mooring]", | ||
| "mhkit[acoustics]", | ||
| "mhkit[qc]", | ||
| "mhkit[utils]", | ||
| ] | ||
|
|
||
| # Examples dependencies | ||
| examples = [ | ||
| "jupyter", | ||
| "notebook", | ||
| "ipykernel", | ||
| "nbval", | ||
| "utm", | ||
| "folium", | ||
| "mhkit[all]", | ||
|
|
||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/MHKiT-Software/mhkit-python" | ||
| Documentation = "https://mhkit-software.github.io/MHKiT" | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["mhkit"] | ||
| zip-safe = false | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "mhkit.__version__"} | ||
This file was deleted.
Oops, something went wrong.
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.