-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: moved 2024 paper to folder * chore: move build to pyproject * doc: fixed README * doc: fixed LICENSE * chore: fixed pyproject * chore: move build to pyproject * doc: fixed README * chore: fixed pyproject * chore: fixed version * chore: fixed pyproject
- Loading branch information
Showing
11 changed files
with
116 additions
and
3,054 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
show_missing = True | ||
omit = | ||
src/pyquasoare/__init__.py | ||
src/pyquasoare/__version__.py | ||
|
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,44 @@ | ||
# This CITATION.cff file was generated with cffinit. | ||
# Visit https://bit.ly/cffinit to generate yours today! | ||
|
||
cff-version: 1.2.0 | ||
title: pyquasoare | ||
message: >- | ||
If you use this software, please cite it using the | ||
metadata from this file. | ||
type: software | ||
authors: | ||
- given-names: Julien | ||
family-names: Lerat | ||
email: [email protected] | ||
affiliation: CSIRO | ||
orcid: '0000-0003-4521-8874' | ||
identifiers: | ||
- type: doi | ||
value: 10.5281/zenodo.13928254 | ||
repository-code: 'https://github.com/csiro-hydroinformatics/pyquasoare' | ||
url: 'https://github.com/csiro-hydroinformatics/pyquasoare' | ||
abstract: >- | ||
This package implements the Quadratic Solution of the | ||
Approximate Reservoir Equation (QuaSoARe) method. | ||
"Quadratic solution of the approximate reservoir equation | ||
(QUASOARE)", HESS, Submitted. | ||
keywords: | ||
- Differential equation | ||
- Reservoir | ||
- Hydrology | ||
- Rainfall-runoff | ||
license: MIT | ||
|
||
references: | ||
- type: article | ||
title: Technical note: Quadratic solution of the approximate reservoir equation (QuaSoARe) | ||
authors: | ||
- family-names: "Lerat" | ||
given-names: "Julien" | ||
orcid: "0000-0003-4521-8874" | ||
year: 2024 | ||
journal: "Hydrology and Earth System Sciences" | ||
volume: "in review" | ||
url: "https://egusphere.copernicus.org/preprints/2024/egusphere-2024-3184" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: env_mini_v2 | ||
name: env_pyquasoare | ||
channels: | ||
- conda-forge | ||
- defaults | ||
|
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,46 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 64", | ||
"cython >= 3.0.10", | ||
"numpy >= 1.20.0" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyquasoare" | ||
authors = [{name = "Julien Lerat, CSIRO Environment", email="[email protected]"}] | ||
description = "Solve the approximate reservoir equation using the QuaSoARe method" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
keywords = ["differential equation", "reservoir", "dynamic system", "store", "routing", "rainfall-runoff", "hydrology"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python 3", | ||
"Programming Language :: C", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Scientific/Engineering :: Hydrology" | ||
] | ||
requires-python = ">= 3.8" | ||
dependencies = [ | ||
"hydrodiy", | ||
"numpy >= 1.20.0", | ||
"scipy >= 1.0.0", | ||
"pandas >= 2.0.0" | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/csiro-hydroinformatics/pyquasoare" | ||
Repository = "https://github.com/csiro-hydroinformatics/pyquasoare" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"tests" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pyquasoare.__version__"} |
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,71 +1,26 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import numpy | ||
from pathlib import Path | ||
|
||
from setuptools import setup, Extension, find_packages | ||
from setuptools import setup, Extension | ||
from Cython.Build import cythonize | ||
|
||
from Cython.Distutils import build_ext | ||
|
||
import versioneer | ||
|
||
def read(fname): | ||
thisfolder = Path(__file__).resolve().parent | ||
with (thisfolder / fname).open() as fo: | ||
return fo.read() | ||
|
||
# C extensions | ||
ext_quasoare=Extension(name="c_pyquasoare", | ||
sources=[ | ||
extensions = [ | ||
Extension(name="c_pyquasoare", | ||
sources=[ | ||
"src/pyquasoare/c_pyquasoare.pyx", | ||
"src/pyquasoare/c_quasoare_utils.c", | ||
"src/pyquasoare/c_quasoare_core.c", | ||
"src/pyquasoare/c_nonlinrouting.c", | ||
"src/pyquasoare/c_gr4jprod.c" | ||
], | ||
extra_cflags=["-O3"], | ||
include_dirs=[numpy.get_include()]) | ||
|
||
cmdclass = versioneer.get_cmdclass() | ||
cmdclass["build_ext"] = build_ext | ||
], | ||
include_dirs=[numpy.get_include()]) | ||
] | ||
|
||
# Package config | ||
setup( | ||
name="pyquasoare", | ||
author= "Julien Lerat", | ||
author_email= "[email protected]", | ||
url= "https://github.com/csiro-hydroinformatics/pyquasoare", | ||
download_url= "hhttps://github.com/csiro-hydroinformatics/pyquasoare/tags", | ||
version=versioneer.get_version(), | ||
description= "Solve the approximate reservoir equation using the QuaSoARe method", | ||
long_description= read("README.md"), | ||
packages=find_packages(), | ||
package_dir={"": "src"}, | ||
package_data={ | ||
"pyquasoare": [ | ||
"data/*.csv", | ||
"data/daily/*.zip", | ||
"data/hourly/*.zip" | ||
], | ||
}, | ||
install_requires= [ | ||
"cython", | ||
"hydrodiy", | ||
"numpy >= 1.8.0", | ||
"scipy (>=0.14.0)", | ||
"pandas >= 0.16" | ||
], | ||
cmdclass=cmdclass, | ||
ext_modules=[ext_quasoare], | ||
classifiers=[ | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License" | ||
] | ||
ext_modules=cythonize(extensions, \ | ||
compiler_directives={"language_level": 3, "profile": False}) | ||
) | ||
|
||
|
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
Oops, something went wrong.