espressif / idf-component-manager

Tool for installing ESP-IDF components
https://components.espressif.com/
Apache License 2.0
44 stars 16 forks source link

lack of documentation for library developers (PACMAN-296) #4

Open trombik opened 2 years ago

trombik commented 2 years ago

The Component Manager version

N/A

ESP-IDF Version

N/A

python Version

N/A

Operating System

N/A

Browser (for https://components.espressif.com Issues)

N/A

Description

I could not find documentation for library developers.

contexts

I am a maintainer of esp-idf components at https://github.com/UncleRus/esp-idf-lib.

once @pedrominatel said espressif would help us but i've gotten none so far.

https://github.com/UncleRus/esp-idf-lib/issues/260#issuecomment-977882894

I am trying to understand how the component registry works, and evaluate how it is useful for us.

what I need to know

To Reproduce

N/A

Expected behaviour

espressif provides documentation for library developers.

Additional info

No response

I have checked existing issues and online Documentation

VojtechBartoska commented 2 years ago

Hello @trombik,

first of all thank you for raising an issue and your interest in using Component Manager.

To clarify current situation, Component Manager was released recently and at this stage, it's only available for uploading internal (Espressif) components.

Due to this fact there is no option to upload 3rd party components, there is no documentation and so on.

To give you an update, we are now working on making upload available for everyone, when it's ready and released. It will contain all necessary information mentioned above.

We are looking forward for having esp-idf-lib in Component Manager service as @pedrominatel mentioned. :) I will keep this issue open so it will be reminder for us to track upload of esp-idf-lib library if you will be interested.

I hope it's clear now. If you have more questions, don't hesitate to ask.

trombik commented 2 years ago

@VojtechBartoska sounds great. thank you.

kumekay commented 1 year ago

@trombik We are in preview for 3rd party contributors, if you are interested, please fill the form https://components.espressif.com/preview/

trombik commented 1 year ago

@kumekay thanks. just signed up. i'll ask questions later.

gojimmypi commented 1 year ago

Hi @kumekay the 3rd party preview signup link is currently 404.

I'd like to add the wolfSSL component to the Espressif component registry. Per a discussion with @igrr and noted in https://github.com/espressif/esp-wolfssl/issues/16#issuecomment-1506605363 we'd like to move the esp-wolfssl repo and have a fresh, regularly maintained wolfSSL library.

Please let me know how best to proceed.

Thank you.

kumekay commented 1 year ago

Hello @gojimmypi

We have already removed the preview signup form and planning to release signup through Github in just a few days (I'm pretty sure it's going to happen this week)

To solve it even sooner, please get in touch with me at sergei.silnov@espressif.com

gojimmypi commented 1 year ago

Hi @kumekay that's awesome, thank you! email sent.

gojimmypi commented 1 year ago

Following up on this issue: the ESP Registry is really quite nice, the latest docs are very clear.

I have wolfSSL published at https://components.espressif.com/components/wolfssl/wolfssl

Thank you @kumekay for your help.

Heads up to others to beware of unicode or other non-UTF8 chars in README.md files.

This iconv command may be helpful to clean files:

    cat ./README_REGISTRY_PREPEND.md  ./README.md > ./NEW_README.md
    THIS_ENCODING=$(file -b --mime-encoding ./NEW_README.md)
    echo "Found encoding: $THIS_ENCODING"

    iconv  --to-code=UTF-8//ignore  --output=./README.md  "./NEW_README.md"
trombik commented 1 year ago

Hi,

When sign-in by GitHub OAuth, I've got:

User with name "trombik" already exists, probably it was created by another method. Please contact support.

Would you have a look?

kumekay commented 1 year ago

@trombik A few manually created preview users may see this. Could you please log in once again and ping me afterwards, so I'll check your permissions?

trombik commented 1 year ago

@kumekay thanks, successfully logged in. does the registry support organizations? like GitHub organization. Have a look at our use case at: https://github.com/UncleRus/esp-idf-lib/discussions/543

trombik commented 1 year ago

it's not clear to me but i guess i need my namespace?

Selected profile "default" from the idf_component_manager.yml config file
Saving archive to "/usr/home/trombik/github/trombik/esp-adf-component-ai-thinker-esp32-a1s/dist/adf-ai-thinker-esp32-a1s_0.0.1.tgz"
Uploading archive /usr/home/trombik/github/trombik/esp-adf-component-ai-thinker-esp32-a1s/dist/adf-ai-thinker-esp32-a1s_0.0.1.tgz
100%|██████████| 7.29k/7.29k [00:00<00:00, 33.7kB/s]
ERROR: You are not allowed to perform this action.
trombik commented 1 year ago

I need trombik namespace just like GitHub. Also, as a maintainer of esp-idf-lib, we will need another for our libraries. It would be nice to have a doc explaining how one can obtain and manage namespaces. In addition, how toke ACL works.

kumekay commented 1 year ago

Hi @trombik I apologize for the confusion with your login through GitHub because we only had a few users before we introduced login through GitHub, we didn't invest enough efforts to the process of migration existing accounts.

Now you should see both trombik and esp-idf-lib namespaces in your profile.

Documentation about namespace management as well as namespace management itself is coming a bit later this August.

Note: the old token, you used before, continues to work until you revoke it, but it won't be visible in the panel.

trombik commented 1 year ago

@kumekay thanks a lot. I'll give it a try.

kumekay commented 7 months ago

Just a small update regarding this issue. You can manage permissions for components and namespaces on the profile page of the registry: https://components.espressif.com/users/me

As for now, namespaces not matching GitHub username are created on request via components@espressif.com