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] Console scripts missed

See original GitHub issue

Describe the bug

When adding https://github.com/conda-forge/staged-recipes/pull/12680 an entry point was missed due it being defined in a unusual way: https://github.com/kneufeld/consolemd/blob/3535f556f6f23f875ba8ddfdcf39f4915ce26889/setup.py#L56-L59

To Reproduce

$ grayskull pypi consolemd
#### Initializing recipe for consolemd (pypi) ####

Recovering metadata from pypi...
Starting the download of the sdist package consolemd-0.5.1.tar.gz

Expected behavior The following YAML is generated:

  entry_points:
    - consolemd = consolemd.cli:cli

Outputs

$ rg -C 5 'build:' consolemd/meta.yaml
8-
9-source:
10-  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/consolemd-{{ version }}.tar.gz
11-  sha256: 9bededcc256155ad52194c78a4fb9d9d8e93adc728e7bbdea0ab1eae7f590ebd
12-
13:build:
14-  number: 0
15-  noarch: python
16-  script: {{ PYTHON }} -m pip install . -vv
17-
18-requirements:

Environment:

$ grayskull --version
0.8.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BastianZimcommented, Feb 22, 2021

Note: This was originally reported in #212 which is now closed due to being a duplicate.


Describe the bug A clear and concise description of what the bug is.

console_scripts entry_points cannot be extracted when not formatted as a dictionary.

The format which fails:

entry_points="""
    [console_scripts]
    awslimitchecker = awslimitchecker.runner:console_entry_point
    """

To Reproduce Steps to reproduce the behavior:

  1. Create a recipe for a formula that has entry_points formatted as above.
  2. entry_points is not extracted

Expected behavior A clear and concise description of what you expected to happen.

The build section should have an entry_points section:

build:
  entry_points:
  - awslimitchecker = awslimitchecker.runner:console_entry_point

Outputs If applicable, add the output to help explain your problem.

Current output:

{% set name = "awslimitchecker" %}
{% set version = "10.0.0" %}


package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/awslimitchecker-{{ version }}.tar.gz
  sha256: 7610ac0fbe0817754e238099053a4ff4d3ea5260676094af86331891d6934a09

build:
  number: 0
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv

requirements:
  host:
    - pip
    - python
  run:
    - boto3 >=1.9.175
    - botocore
    - python
    - python-dateutil
    - pytz
    - termcolor >=1.1.0
    - urllib3
    - versionfinder >=0.1.1

test:
  imports:
    - awslimitchecker
    - awslimitchecker.alerts
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://github.com/jantman/awslimitchecker
  summary: A script and python module to check your AWS service limits and usage, and warn when usage approaches limits.
  license: AGPL-3.0
  license_file: LICENSE

extra:
  recipe-maintainers:
    - ADD_YOUR_GITHUB_ID_HERE

Environment: Not dependent on environment

Additional context Add any other context about the problem here.

This has been verified with two packages: https://github.com/conda-forge/staged-recipes/pull/13849 (Original entry_points) and https://github.com/conda-forge/staged-recipes/pull/13848 (Original entry_points)

Can also be reproduced by entering awslimitchecker into https://www.marcelotrevisani.com/grayskull

0reactions
jakirkhamcommented, Jul 21, 2022

Same issue with distributed.

Just tested the Grayskull 1.4.1 release including PR ( https://github.com/conda-incubator/grayskull/pull/354 ) with Distributed and it worked great! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebug cannot find _firebugConsole element, missing scripts list ...
Firebug cannot find _firebugConsole element, missing scripts list, missed console.log calls · 1) Navigate to a webpage which has Firebug enabled by default....
Read more >
Bug: Error: "syntax error at "script" missing" - Glyphs Forum
The console file is telling me the following: syntax error at "script" missing { useExtension "{" } [features.fea 71] makeotfGlyphs [FATAL] < ...
Read more >
Console doesn't display content script errors - Mozilla Discourse
During an extension development, I noticed that the Firefox debugger console doesn't display any errors while injecting content scripts, for ...
Read more >
Bug - Empty error in console - Unity Forum
Hi guys, I recently installed Unity Linux 2017.3.0f1 and when I added a new C# script I get an empty error in the...
Read more >
Reproduce Bugs Faster with Console Logs Recording
The missing piece in bug reports ... You can always see these errors when you open the script of that website, but it...
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