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

`poetry export -o requirements.txt --without-hashes --with-credentials --all-extras` doesn't export all dependencies

Open
#288 3 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

Description

poetry export -o requirements.txt --without-hashes --with-credentials --all-extras doesn't export all dependencies.

Workarounds

I have to include all extra dependency groups with --with or use no groups at all.
Unfeasible in CI pipelines for example.

Poetry Installation Method

install.python-poetry.org

Operating System

macOS Sonoma

Poetry Version

1.8.2

Poetry Configuration
cache-dir = "/Users/francisco/Library/Caches/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
repositories.custom.url = "{{URL}}"
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /Users/francisco/Library/Caches/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = false
Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs
the command isn't failing, it's just not behaving as expected

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 by reproducing the documented poetry export -o requirements.txt --without-hashes --with-credentials --all-extras command in a project with dependency groups and extras. Compare its output with exports using --with or no group options; done means the --all-extras invocation includes all expected dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.