Coder Social home page Coder Social logo

[BUG] Using PyPI with GitHub repository Poetry pyproject.toml results in `'NoneType' object` error for `format_dependencies` about grayskull HOT 8 CLOSED

d33bs avatar d33bs commented on July 19, 2024
[BUG] Using PyPI with GitHub repository Poetry pyproject.toml results in `'NoneType' object` error for `format_dependencies`

from grayskull.

Comments (8)

marcelotrevisani avatar marcelotrevisani commented on July 19, 2024 1

oh ok, that seems to be a bug indeed. Gonna take a further look and add it to my backlog
Thanks for reporting it! :)

from grayskull.

marcelotrevisani avatar marcelotrevisani commented on July 19, 2024 1

I am generating version 2.5.1 that should have this fix

from grayskull.

d33bs avatar d33bs commented on July 19, 2024

Thank you @marcelotrevisani !

from grayskull.

wxicu avatar wxicu commented on July 19, 2024

Hi all,
I am having the same error now. Is there any update so far? Thank you!

from grayskull.

marcelotrevisani avatar marcelotrevisani commented on July 19, 2024

Hey, I am in the process of fixing this and all of your suggested solutions are great!
I just don't have much time to do it all, but indeed it would be great.

Can I break down your issue into others please?
For instance, I would like to create two more issues for:

  • A more descriptive error (mentioning what is required from the project metadata).
  • Documentation covering the expected fields within pyproject.toml files (if this is where the error stems from).

So, at least, I can keep track of this. The last bit is related to the fix I am doing.

from grayskull.

marcelotrevisani avatar marcelotrevisani commented on July 19, 2024

This issue was fixed with #503 as well
I was able to generate

grayskull pypi https://github.com/d33bs/test-grayskull
{% set name = "test-grayskull" %}
{% set version = "0.0.1" %}

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

source:
  url: https://github.com/d33bs/test-grayskull/archive/v{{ version }}.tar.gz
  sha256: 98d81a0d5d0e2f5c47b113a4083fc5bdab358f0440568d3bd5dd3d6bd4bb2d9f

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

requirements:
  host:
    - python
    - poetry-core
    - pip
  run:
    - python >=3.9,<3.13
    - pandas >=2.1.1,<3.0.0
    - numpy >=1.26.0,<2.0.0

test:
  commands:
    - pip check
  requires:
    - pip

about:
  license: Apache-2.0
  license_file: LICENSE

extra:
  recipe-maintainers:
    - marcelotrevisani

from grayskull.

d33bs avatar d33bs commented on July 19, 2024

Thanks @marcelotrevisani ! Does the fix relate to a specific PR?

from grayskull.

marcelotrevisani avatar marcelotrevisani commented on July 19, 2024

yup, this one
#503
I fixed another bug and this one as they were simple

from grayskull.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.