question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] "Using .* with relational operator is superfluous and deprecated"

See original GitHub issue

Consider the package dbt-core. The install_requires contains

        "dbt-extractor~=0.4.1",

Running Grayskull this gets translated into

    - dbt-extractor >=0.4.1,==0.4.*

Then running boa with conda mambabuild -c conda-forge . or conda build -c conda-forge . produces the warning

WARNING:conda.models.version:Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 0.4.*, but conda is ignoring the .* and treating it as 0.4

This results in the unsatisfiable dependency >=0.4.1,==0.4 since ==0.4 seems to imply 0.4.0 and excludes 0.4.1.

Interestingly, if I change it to a single equals (>=0.4.1,=0.4.*) then it doesn’t complain and seems to work as intended.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:27 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
BastianZimcommented, Aug 10, 2022

I think, I just bumped into this (or at least it’s related).

One of my feedstocks has the requirements ~=0.9.0 which gets translated to >=0.9.0,==0.9.*. This makes the solves throw an error despite v0.9.6 being available.

PR: https://github.com/conda-forge/aiofile-feedstock/pull/3 Logs: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=548936&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d

1reaction
BastianZimcommented, Aug 6, 2022

Oh yeah that’s maybe not a bad idea at all! @marcelotrevisani What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

wildcard with relational operator deprecation message #9140
Current Behavior. Lots of "Using .* with relational operator is superfluous" messages, especially (exclusively?) during conda build .
Read more >
Using .* with relational operator is superfluous and ... - GitLab
Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. We're getting warnings like:....
Read more >
how conda-build avoids checking incompatibility
I am building a conda package and use the command conda-build xxx ... with relational operator is superfluous and deprecated and will be ......
Read more >
Change log - 1.80.0 - Boost C++ Libraries
Boost.Test minimal.hpp is now showing a deprecation warning. minimal.hpp has been deprecated for a long time already, and will be removed in the...
Read more >
[ANN] Spyder 5.1.5 is released!
USER community, and supported by its users through OpenCollective and ... with relational operator is superfluous and deprecated and will be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found