Support http/https nested requirements

Open
#18 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

No files, tests, or entry points are named. Start by tracing the existing handling of nested local requirements and identify where http and https sources are rejected or treated differently. Done means an optional user-provided fetch function can supply nested HTTP(S) requirement content without adding an HTTP client dependency.

Written by the indexing model from the issue text.

Description

Hi,

Thanks for this lib, it is very useful !

I was trying to use it in pip-deepfreeze as a replacement of my own copy of the pip parser (https://github.com/sbidoul/pip-deepfreeze/pull/107), when I realized it only supports nested requirements that are local files. pip does support http and https URLs as nested requirements files.

Would you consider this in scope?

It could be implemented with an optional fetch function to be provided by the user and called when nested requirements are http or https. This way, this project would not need to depend on an http client library nor worry about all the subtleties involved with URL fetching such as authentication, etc.

Dominant language
Python
Stars
20
Forks
17
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/pip-requirements-parser

All issues in aboutcode-org/pip-requirements-parser

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.