8000 Add developer tools to conda environment by tobiasdiez · Pull Request #39141 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add developer tools to conda environment #39141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
261 changes: 158 additions & 103 deletions environment-3.11-linux-aarch64.yml

Large diffs are not rendered by default.

265 changes: 162 additions & 103 deletions environment-3.11-linux.yml

Large diffs are not rendered by default.

284 changes: 168 additions & 116 deletions environment-3.11-macos-x86_64.yml

Large diffs are not rendered by default.

288 changes: 170 additions & 118 deletions environment-3.11-macos.yml

Large diffs are not rendered by default.

267 changes: 161 additions & 106 deletions environment-3.12-linux-aarch64.yml

Large diffs are not rendered by default.

271 changes: 165 additions & 106 deletions environment-3.12-linux.yml

Large diffs are not rendered by default.

290 changes: 171 additions & 119 deletions environment-3.12-macos-x86_64.yml

Large diffs are not rendered by default.

294 changes: 173 additions & 121 deletions environment-3.12-macos.yml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,8 @@ lint = [
"pycodestyle",
"flake8-rst-docstrings",
]
dev = [
"conda-lock",
"grayskull",
"toml",
]
11 changes: 8 additions & 3 deletions tools/update-conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_dependencies(pyproject_toml: Path, python: str) -> list[str]:
all_requirements.append("c-compiler")
all_requirements.remove("{{ compiler('cxx') }}")
all_requirements.append("cxx-compiler")
# all_requirements.remove("{{ compiler('fortran') }}")
all_requirements.remove("{{ compiler'fortran' }}")
all_requirements.append("fortran-compiler")

# Correct pypi name for some packages
Expand Down Expand Up @@ -172,9 +172,14 @@ def get_dependencies(pyproject_toml: Path, python: str) -> list[str]:
def get_dev_dependencies(pyproject_toml: Path) -> list[str]:
pyproject = tomllib.load(pyproject_toml)
dependency_groups = pyproject.get("dependency-groups", {})
dev_dependencies = dependency_groups.get("test", []) + dependency_groups.get(
"docs", []
dev_dependencies = (
dependency_groups.get("test", [])
+ dependency_groups.get("docs", [])
+ dependency_groups.get("lint", [])
+ dependency_groups.get("dev", [])
)
# Remove dependencies that are not available on conda
dev_dependencies.remove("relint")
return dev_dependencies


Expand Down
Loading
0