-
Notifications
You must be signed in to change notification settings - Fork 5
pypidb #26
Comments
Hi @jayvdb! thanks for reaching out! The project seems to be very interesting. However, it's not clear to me from the README file how the detection is performed. Does it follow PyPI's Homepage or other links present on PyPI? |
Yes, it uses the URLs in the PyPI metadata, from the url fields in the JSON and also the text/markup fields in the JSON. It finds the best one, and validates it. The selection process is augmented with a bunch of rules in https://github.com/jayvdb/pypidb/blob/master/pypidb/_rules.py which guide the engine through the available URLs, and also maps PyPI email addresses and package namespaces (e.g. The objective is always to use good URLs provided in the metadata, and validate them, and the email/namespace mappings are only a backup if the metadata doesnt provide good URLs. |
One black box way to get a feel for it is to see one test dataset which is a sample of explicit mappings in https://github.com/jayvdb/pypidb/blob/master/tests/data.py , where
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. /close |
@sesheta: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
If I understand correctly, this project would be where it would be useful to add https://github.com/jayvdb/pypidb , which can resolve the PyPI->SCM link very reliably.
I have planned to identify the SCM type (jayvdb/pypidb#29) which might be helpful here, but wouldnt be a blocker, I guess as filtering using URL prefixes is the existing strategy here and works well if only a few SCM are supported.
The text was updated successfully, but these errors were encountered: