Skip to content
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

Add optional, constrained dependencies #171

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jakirkham
Copy link
Member

If users want to install dask-core with numpy (or similar), make sure that the numpy version they install matches the version constraints Dask would add to these constraints.

xref: https://github.com/dask/dask/blob/499f4055da707fa76d06a2b79f408f124eee4723/pyproject.toml#L48-L77


Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

If users want to install `dask-core` with `numpy` (or similar), make
sure that the `numpy` version they install matches the version
constraints Dask would add to these constraints.

xref: https://github.com/dask/dask/blob/499f4055da707fa76d06a2b79f408f124eee4723/pyproject.toml#L48-L77
Rebuild now that option, constrained dependencies are included.
@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

run_constrained:
- numpy >=1.21
- pandas >=1.3
- bokeh >=2.4.2
Copy link
Member Author

@jakirkham jakirkham Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this constraint be aligned with the dask package? If so, should this also be updated upstream?

Suggested change
- bokeh >=2.4.2
- bokeh >=2.4.2,!=3.0.*

@@ -33,6 +32,13 @@ requirements:
- pyyaml >=5.3.1
- toolz >=0.10.0
- importlib_metadata >=4.13.0
run_constrained:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this constraint be added (like in the dask package)? If so, should this also be updated upstream?

Suggested change
run_constrained:
run_constrained:
- cytoolz >=0.11.0

@jakirkham
Copy link
Member Author

Even though upstream has distributed in optional constraints, skipped it for 2 reasons:

  1. The distributed package pins dask-core already
  2. Adding a cycle between dask-core & distributed could cause build problems

@jakirkham
Copy link
Member Author

Side note: As part of this work, noticed a simplification that could be made upstream ( dask/dask#10357 )

@jakirkham
Copy link
Member Author

@jrbourbeau what don't you think of this proposal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant