Skip to content

Commit

Permalink
Update requirements with dask
Browse files Browse the repository at this point in the history
  • Loading branch information
amarcozzi committed Jan 23, 2024
1 parent 81b0e86 commit 46c6523
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dask
numpy<2
pandera
pydantic>=2
zarr>=2
7 changes: 4 additions & 3 deletions requirements/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
pytest
requests
numpy<2
dask
numpy<2
pandera
pydantic>=2
pytest
requests
scipy
xarray
zarr>=2
19 changes: 13 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,25 @@ def get_version():
return version[1:] # Remove the leading "v" from the version number


def get_requirements():
"""Get the requirements from the requirements.txt file."""
requirements = []
with open("requirements/requirements.txt", encoding="utf-8") as fd:
for line in fd:
line = line.strip()
if line and not line.startswith("#"):
requirements.append(line)
return requirements


NAME = "quicfire-tools"
DESCRIPTION = "Input and output management tools for the QUIC-Fire fire model"
LONG_DESCRIPTION = read_file("README.md")
VERSION = get_version()
LICENSE = "MIT"
URL = "https://github.com/silvxlabs/quicfire-tools"
PROJECT_URLS = {"Bug Tracker": f"{URL}/issues"}
REQUIREMENTS = get_requirements()

setup(
name=NAME,
Expand All @@ -49,11 +61,6 @@ def get_version():
packages=find_packages(exclude=["docs", "tests"]),
package_data={"quicfire_tools": ["data/templates/*/*", "data/documentation/*"]},
include_package_data=True,
install_requires=[
"numpy<2",
"dask",
"pydantic>=2",
"zarr>=2",
],
install_requires=REQUIREMENTS,
python_requires=">=3.8",
)

0 comments on commit 46c6523

Please sign in to comment.