Skip to content

Commit

Permalink
chore(build): pip>23.1 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney authored and hellkite500 committed Jun 11, 2024
1 parent 1ef6bff commit 51ef18b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
8 changes: 4 additions & 4 deletions compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ if [[ "$build_framework" == true ]]; then
rm -rf build
##python setup.py --use-cython install
##python setup.py --use-cython develop
CC=${CC} python setup.py build_ext --inplace --use-cython || exit
pip install $E . || exit
python setup.py build_ext --inplace --use-cython || exit
pip install --no-build-isolation $E . || exit
fi

if [[ "$build_routing" == true ]]; then
Expand All @@ -97,8 +97,8 @@ if [[ "$build_routing" == true ]]; then
rm -rf build
#python setup.py --use-cython install
#python setup.py --use-cython develop
CC=${CC} python setup.py build_ext --inplace --use-cython || exit
pip install $E . || exit
python setup.py build_ext --inplace --use-cython || exit
pip install --no-build-isolation $E . || exit
fi

if [[ "$build_config" == true ]]; then
Expand Down
20 changes: 20 additions & 0 deletions src/troute-network/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[build-system]
requires = ["setuptools", "numpy", "Cython<3.0.4", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "troute.network"
version = "0.0.0"
dependencies = [
"deprecated",
"geopandas",
"joblib",
"netcdf4",
"numpy",
"pandas",
"pyarrow",
"pyyaml",
"toolz",
"typing_extensions",
"xarray",
]
2 changes: 1 addition & 1 deletion src/troute-nwm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ requires = [
"setuptools>=42",
"wheel",
"pip",
"Cython"
"Cython<3.0.4"
]
build-backend = "setuptools.build_meta"
8 changes: 8 additions & 0 deletions src/troute-routing/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = ["setuptools", "numpy", "Cython<3.0.4", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "troute.routing"
version = "0.0.0"
dependencies = ["hydrotools.nwis_client", "joblib", "numpy", "pandas", "xarray"]

0 comments on commit 51ef18b

Please sign in to comment.