Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project idea: dependencies information getter #7

Closed
pawamoy opened this issue Aug 3, 2021 · 2 comments
Closed

Project idea: dependencies information getter #7

pawamoy opened this issue Aug 3, 2021 · 2 comments

Comments

@pawamoy
Copy link
Owner

pawamoy commented Aug 3, 2021

To help implementing #4, #5 and pawamoy/copier-uv#37 without spaghetti code, maybe I should create a new project that reads PDM dependencies from both pyproject.toml and pdm.lock and queries various information from PyPI indexes or other online databases to extract as much information as possible about Python packages, and cache it locally (a given package's metadata never changes, supposedly).

Useful information:

  • name
  • summary
  • version
  • URLs
  • license (SPDX identifier?)
  • direct/indirect production dependency?
  • direct/indirect development dependency? (not mutually exclusive with production deps)
  • dependencies
  • parent dependencies if any (maybe hard to keep a clean cache)

A config file should also allow to add items manually, such as Python, PDM, safety and copier-pdm itself.

All these metadata could then be used to generate the credits file, check for dependency confusion, license compatibility issues, and even CVEs using safety/skjold.

@pawamoy
Copy link
Owner Author

pawamoy commented Aug 3, 2021

Ah, this could be implemented as a PDM plugin by the way. Example here: https://github.com/branchvincent/pdm-publish. Discussion here: pdm-project/pdm#578

@pawamoy
Copy link
Owner Author

pawamoy commented Oct 25, 2024

I don't think I need this anymore.

@pawamoy pawamoy closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant