Code Monkey home page Code Monkey logo

Comments (4)

jaimergp avatar jaimergp commented on June 3, 2024

As a workaround, can you use grayskull instead of conda skeleton?

from conda-build.

Mathias-Boulanger avatar Mathias-Boulanger commented on June 3, 2024

Yes, I tried grayskull and I succeeded to create the recipe (and went through local test) for one of the dependency
of the pod5 package called: vbz-h5py-plugin.
But the recipe for the pod5 package failed upon testing mainly due to a dependency called lib-pod5 that is not available on conda-forge.

When I try to use grayskull to create lib-pod5 that is available on PyPi I got this error:

(condaforge) [boulange@seneca recipes]$ grayskull pypi lib-pod5



#### Initializing recipe for lib-pod5 (pypi) ####

Recovering metadata from pypi...
Traceback (most recent call last):
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/bin/grayskull", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/main.py", line 277, in main
    generate_recipes_from_list(args.pypi_packages, args)
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/main.py", line 300, in generate_recipes_from_list
    recipe, config = create_python_recipe(
                     ^^^^^^^^^^^^^^^^^^^^^
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/main.py", line 335, in create_python_recipe
    GrayskullFactory.create_recipe(
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/base/factory.py", line 46, in create_recipe
    GrayskullFactory.REGISTERED_STRATEGY[repo_type.lower()].fetch_data(
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/strategy/pypi.py", line 62, in fetch_data
    update_recipe(recipe, config, sections or ALL_SECTIONS)
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/strategy/pypi.py", line 499, in update_recipe
    metadata = get_metadata(recipe, config)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/strategy/pypi.py", line 350, in get_metadata
    sdist_metadata, pypi_metadata = get_origin_wise_metadata(config)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/strategy/pypi.py", line 234, in get_origin_wise_metadata
    pypi_metadata = get_pypi_metadata(config)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/g/krebs/boulanger/miniconda3/envs/condaforge/lib/python3.12/site-packages/grayskull/strategy/pypi.py", line 277, in get_pypi_metadata
    raise AttributeError(f"There is no sdist package on pypi for {config.name}.")
AttributeError: There is no sdist package on pypi for lib-pod5.

Thank you for your idea!

from conda-build.

jaimergp avatar jaimergp commented on June 3, 2024

You can try to use the GH repo for lib-pod5 as a the source. That said, it looks like a C++ heavy package so it won't be one of those trivial packaging tasks :P

from conda-build.

Mathias-Boulanger avatar Mathias-Boulanger commented on June 3, 2024

Indeed, my first experience trying make conda package is not smooth as I though it would be...

The pod5 project is also located on GH here
Do you think I will have more chance to create recipe from this URL?

Thank you the suggestion.

from conda-build.

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.