Skip to content

Commit

Permalink
Fix lrcalc handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Feb 24, 2024
1 parent da7846f commit af9b0e5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tools/update-conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,11 @@ def get_dependencies(pyproject_toml: Path) -> list[str]:
all_requirements.append("cxx-compiler")

# Correct pypi name for some packages
all_requirements += normalize_requirements_list(pyproject_metadata.get("install_requires", []), graystull_config)
all_requirements.remove("<{ pin_compatible('numpy') }}")
python_requirements = pyproject_metadata.get("install_requires", [])
# Following can be removed once https://github.com/regro/cf-scripts/pull/2176 is used in grayskull
if "lrcalc" in all_requirements:
all_requirements.remove("lrcalc")
all_requirements.append("lrcalc-python")
python_requirements = [req.replace("lrcalc", "python-lrcalc") for req in python_requirements]
all_requirements += normalize_requirements_list(python_requirements, graystull_config)
all_requirements.remove("<{ pin_compatible('numpy') }}")

# Add version constraints for some packages (not yet supported by grayskull/PEP 725)
all_requirements.remove("c-compiler")
Expand Down

0 comments on commit af9b0e5

Please sign in to comment.