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] Grayskull allows recipes with _ when name should have -

See original GitHub issue

Describe the bug

Underscores vs. dashes:

Running

grayskull pypi slack_sdk

generates a recipe named slack_sdk, even though the PyPi package name is slack-sdk.

Expected behavior

An error message that the name slack_sdk doesn’t correspond to a PyPi package.

Outputs

{% set name = "slack_sdk" %}
{% set version = "3.6.0" %}
...

Environment:

  • grayskull --version 0.8.5

Additional context

I suspect that grayskull is following the PyPi redirect to remove underscores.

This issue led to unintentionally create a duplicate feedstock:

https://github.com/conda-forge/slack-sdk-feedstock/issues/10#issuecomment-860884130

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
marcelotrevisanicommented, Jun 18, 2021
2reactions
ForgottenProgrammecommented, Jun 18, 2021

Yes, please! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · conda-incubator/grayskull - GitHub
Contribute to conda-incubator/grayskull development by creating an account on GitHub. ... [BUG] Grayskull allows recipes with _ when name should have - bug...
Read more >
Conda and Grayskull, the Masters of Software Packaging
Grayskull is an automatic conda recipe generator, with a focus on conda-forge. It generates concise and accurate recipes very quickly, provided ...
Read more >
Grayskull - The Community-Developed conda Recipe Generator
Grayskull is an automatic conda recipe generator that generates concise conda recipes for Python packages available on PyPI and GitHub. It ...
Read more >
By the power of Grayskull… I have the Conda recipe!
Currently, Grayskull (version 0.2.1 ) is able to generate recipes just looking for packages on PyPI, and it is available on PyPI and...
Read more >
"[lib] requires [dep], which is not installed" when running PR ...
So, in the Conda recipe one indicates the Conda package name ( pytables ), but pip check will verify that this actually makes...
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