-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update requirements.txt * update requirements.txt * pyproject.toml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add pyprpoject.toml * update pyproject.toml * revert changes in test dir * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * revert changes in benchmarks * update conf.py * update pyproject.toml * update install docs * update install docs * update instal guide * update instal guide * update instal guide * update instalation.rst * add back setup.py for compatibility * update optional dependencies * Create MANIFEST.in * add ruff to dev dependencies * use matplotlib instead of matplotlib-base * Remove .txt from LICENSE * Update MANIFEST.in Co-authored-by: Anissa Zacharias <anissaz@ucar.edu> * update pyproject.toml * remove references to meta.yaml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anissa Zacharias <anissaz@ucar.edu>
- Loading branch information
1 parent
dff3971
commit 1cb2374
Showing
11 changed files
with
121 additions
and
130 deletions.
There are no files selected for viewing
This file contains 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 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 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,18 @@ | ||
include LICENSE | ||
include README.md | ||
|
||
recursive-include uxarray *.py | ||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] | ||
exclude .gitignore | ||
exclude .pre-commit-config.yaml | ||
exclude .readthedocs.yml | ||
|
||
include *.md | ||
include *.toml | ||
include *.txt | ||
prune test* | ||
prune ci* | ||
prune .github* | ||
prune docs* | ||
prune benchmarks* |
This file contains 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 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 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,74 @@ | ||
[project] | ||
classifiers=[ | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS', | ||
"Topic :: Scientific/Engineering", | ||
] | ||
|
||
dynamic = ["version"] | ||
keywords = ["unstructured grids"] | ||
description = "Xarray-styled package for reading and directly operating on unstructured grid datasets following UGRID conventions" | ||
license = {file = "LICENSE"} | ||
name = "uxarray" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
|
||
# minimal dependencies start | ||
dependencies = [ | ||
"antimeridian", | ||
"cartopy", | ||
"cartopy", | ||
"dask[dataframe]", | ||
"datashader", | ||
"geoviews", | ||
"holoviews", | ||
"matplotlib", | ||
"matplotlib-inline", | ||
"netcdf4", | ||
"numba", | ||
"numpy", | ||
"pandas<2.1.0", | ||
"pyarrow", | ||
"requests", | ||
"scikit-learn", | ||
"scipy", | ||
"shapely", | ||
"spatialpandas", | ||
"xarray", | ||
] | ||
# minimal dependencies end | ||
|
||
[project.optional-dependencies] | ||
complete = ["uxarray[math, dev]"] | ||
math = ['gmpy2', 'pyfma'] | ||
dev = ['pathlib', 'pre_commit', 'pytest', 'pytest-cov', 'ruff'] | ||
|
||
[project.urls] | ||
Documentation = "uxarray.readthedocs.io/" | ||
Source = "https://github.com/UXARRAY/uxarray" | ||
Tracker = "https://github.com/UXARRAY/uxarray/issues" | ||
|
||
|
||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=60", | ||
"setuptools-scm>=8", | ||
] | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.setuptools_scm] | ||
fallback_version = "9999" | ||
|
||
[tool.ruff] | ||
extend-exclude = ["test","benchmarks"] |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,50 +1,3 @@ | ||
#''' setup.py is needed, but only to make namespaces happen | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
with open("README.md") as f: | ||
long_description = f.read() | ||
|
||
with open("requirements.txt") as f: | ||
requirements = f.read().strip().split("\n") | ||
|
||
|
||
#''' moved into function, can now be used other places | ||
def version(): | ||
for line in open("meta.yaml").readlines(): | ||
index = line.find("set version") | ||
if index > -1: | ||
return line[index + 15 :].replace('" %}', "").strip() | ||
|
||
|
||
setup( | ||
name="uxarray", | ||
version=version(), | ||
maintainer="UXARRAY", | ||
maintainer_email="", | ||
python_requires=">=3.9", | ||
install_requires=requirements, | ||
description="""Unstructured grid model reading and recognizing with xarray.""", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
classifiers=[ | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
], | ||
include_package_data=True, | ||
packages=find_packages(exclude=["docs", "test", "docs.*", "test.*"]), | ||
# namespace_packages=['UXARRAY'], | ||
url="https://github.com/UXARRAY/uxarray", | ||
project_urls={ | ||
# 'Documentation': 'https://uxarray.readthedocs.io', | ||
"Source": "https://github.com/UXARRAY/uxarray", | ||
"Tracker": "https://github.com/UXARRAY/uxarray/issues", | ||
}, | ||
zip_safe=False, | ||
) | ||
setup(use_scm_version={"fallback_version": "9999"}) |
This file contains 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""uxarray.core.grid module.""" | ||
|
||
import xarray as xr | ||
import numpy as np | ||
|
||
|