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] meta.yaml order is not in correct order sometimes

See original GitHub issue

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

Ran grayskull on awswrangler and the order is not correct.

To Reproduce Steps to reproduce the behavior:

  1. Run grayksull on awswrangler

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

Source should be after package and before build.

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

Example output:

{% set name = "requests" %}
{% set version = "2.27.1" %}

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

build:
  skip: true  # [py==30 or py==31 or py==32 or py==33 or py==34 or py==35]
  script: {{ PYTHON }} -m pip install . -vv
  number: 0

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/requests-{{ version }}.tar.gz
  sha256: 68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61

requirements:
  host:
    - pip
    - pytest
    - python
  run:
    - certifi >=2017.4.17
    - chardet >=3.0.2,<5  # [py<3]
    - charset-normalizer >=2.0.0  # [py>=3],==2.0.*
    - idna >=2.5,<3  # [py<3]
    - python
    - urllib3 >=1.21.1,<1.27

test:
  imports:
    - requests
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://requests.readthedocs.io
  summary: Python HTTP for Humans.
  dev_url: https://github.com/psf/requests
  license: Apache-2.0
  license_file: LICENSE

extra:
  recipe-maintainers:
    - ADD_YOUR_GITHUB_ID_HERE

Environment:

https://www.marcelotrevisani.com/grayskull

Additional context Add any other context about the problem here.

  • This only started happening recently.
  • I’m not sure if this is really an urgent issue but to maintain readability it might be nice to use the original sorting.
  • This doesn’t always happen.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
marcelotrevisanicommented, Jun 20, 2022

Yeah, that needs to be addressed at conda-souschef, indeed

Sorry for my delay, I was off for the past 2 weeks because of some personal matters. But I am back now 😃

2reactions
ForgottenProgrammecommented, May 23, 2022

I tried the packages @BastianZim mentioned. This was the result; awswrangler : correct order galeodes : correct order drm4g : wrong order deepface: wrong order requests: wrong order

I notice the order of source and build is wrong in recipes where the build section has a skip: true line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Order of deployers doesn't match order listed in `skaffold.yaml`
Expected Behavior I have a skaffold.yaml file that contains the lines: apiVersion: skaffold/v2alpha3 kind: Config metadata: name: discover ...
Read more >
r - Why does the order of outputs change in YAML when the ...
I mostly use the nb.html, but sometimes I want to knit a PDF. As soon as I knit a PDF: I have to...
Read more >
Defining metadata (meta.yaml) - Conda
It represents packages that need to be specific to the target platform when the target platform is not necessarily the same as the...
Read more >
"Unable to parse YAML file" error - Unity Forum
I sometimes get the error "Unable to parse YAML file: [could not find expected ':'] at line 2". Is there a way I...
Read more >
10 YAML tips for people who hate YAML | Enable Sysadmin
Of these, YAML sometimes gets cited as a particularly difficult one to ... You may or may not understand what error it's talking...
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