python-poetry / python-poetry/poetry-plugin-export

Need option to skip index flag generation

Open
#229 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
335
Forks
57
Avg merge
1h 23m
Merged PRs (30d)
3

Description

When generating requirements.txt, I need the ability to skip the generation of index flags.

I need to commit the generated requirements.txt to version control, which means I

  1. cannot generate the indexies with credentials
  2. need to provide the credentials externally to pip

To this end, I have pip configured on target systems with necessary credentials via the ~/.config/pip/pip.conf file.

Unfortunately, this package's generation of --index-url and --extra-index-url override this global config file, causing installation to fail.

Please Add a CLI flag to skip emitting these flags to generated requirements.txt files

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start at the export CLI entry point that generates requirements.txt and trace where --index-url and --extra-index-url are emitted. Add an option that suppresses both flags while preserving normal export behavior, then verify that generated requirements.txt files omit them and rely on the target system's pip.conf settings.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.