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

run_constrained: chardet #54

Merged
merged 3 commits into from Jun 26, 2022
Merged

run_constrained: chardet #54

merged 3 commits into from Jun 26, 2022

Conversation

ngam
Copy link
Contributor

@ngam ngam commented Jun 25, 2022

fixes #53

(I am not sure this is the best solution or the desirable solution here, so reviewers should carefully assess)

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.

@conda-forge-linter
Copy link

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.

@ngam
Copy link
Contributor Author

ngam commented Jun 25, 2022

@conda-forge-admin, please rerender

@ngam ngam changed the title run_constraints: chardet run_constrained: chardet Jun 25, 2022
@ocefpaf ocefpaf merged commit 5e146c2 into conda-forge:main Jun 26, 2022
@teake
Copy link

teake commented Jun 27, 2022

@ocefpaf I think noarch/requests-2.28.0-pyhd8ed1ab_0.tar.bz2 needs to be marked as broken. If I do

$ conda create -n testenv requests chardet

I get

[...]
  chardet            conda-forge/osx-64::chardet-5.0.0-py310h2ec42d9_0
[...]
  requests           conda-forge/noarch::requests-2.28.0-pyhd8ed1ab_0
[...]

which are incompatible with each other. I'll submit a PR to https://github.com/conda-forge/admin-requests.

@ocefpaf
Copy link
Member

ocefpaf commented Jun 27, 2022

Thanks @teake. We can also try a repo data patch but b/c we have this build number 1 here it is probably not worth it. Marking as broken is fine.

@corneliusroemer
Copy link
Member

Upgrading to the new build is a bit tricky, one needs to explicitly provide the build number, otherwise chardet won't be downgraded (downgrading is penalized more than increasing build number).

This should work (if anyone else has this issue), see #55

mamba install -c conda-forge requests=2.28.0=pyhd8ed1ab_1

@ngam
Copy link
Contributor Author

ngam commented Jun 27, 2022

Thanks everyone, but is this severe enough? I only submitted this fix as an abundance of caution going forward and I was not too worried about past builds. Upstream only emits a warning about the inconsistent deps, but not a full-blown error. Also note, chardet is completely optional so we still get the correct charset_normalizer in all cases. We could have done a repodata patch too as ocefpaf mentioned...

@ocefpaf
Copy link
Member

ocefpaf commented Jun 27, 2022

@ngam a repodata patch would have avoided this but, in a way, this is a "bug" in conda. Existing envs don't know if a package was pulled and they won't update to a higher build number.

@ngam
Copy link
Contributor Author

ngam commented Jun 27, 2022

Ah. I now see how things got confused... Oh well...

@teake
Copy link

teake commented Jun 28, 2022

With 2.28.0-0 marked as broken, I now get:

$ conda create -n testenv requests chardet
[...]
  chardet            conda-forge/osx-64::chardet-5.0.0-py310h2ec42d9_0
[...]
  requests           conda-forge/noarch::requests-2.27.1-pyhd8ed1ab_0
[...]

This combination also emits the incompatibility warning. Sigh. If we want to avoid combinations that emit this warning, I guess all previous requests builds of 2.26 and 2.27 should be patched (the upstream commit was first included in 2.26.0).

If somebody wants to pick this up, that'd be great -- the instructions in https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/tree/main/recipe are not at all clear to me.

Btw, upstream has just upped the optional dependency to chardet<6: psf/requests#6179.

@ngam ngam mentioned this pull request Jun 28, 2022
1 task
@ngam
Copy link
Contributor Author

ngam commented Jun 28, 2022

If somebody wants to pick this up, that'd be great -- the instructions in https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/tree/main/recipe are not at all clear to me.

@ocefpaf or I can do this soon. Also, opening #56 as this also appears in CI now. Let's continue the discussion there

@ngam
Copy link
Contributor Author

ngam commented Jun 28, 2022

See for a thorough update: conda-forge/conda-forge-repodata-patches-feedstock#287

including reverting marking the previous build as broken

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.

warning because of deps
5 participants