Skip to content

Commit

Permalink
fix: Export from pyproject.toml doesn't include "extras"
Browse files Browse the repository at this point in the history
Close #1767

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Mar 14, 2023
1 parent 7c6c142 commit 2b4151d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/1767.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that `pdm export` output doesn't include the extras of the dependencies.
4 changes: 2 additions & 2 deletions src/pdm/cli/commands/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def handle(self, project: Project, options: argparse.Namespace) -> None:

content = FORMATS[options.format].export(project, packages, options)
if options.output:
Path(options.output).write_text(content)
Path(options.output).write_text(content, encoding="utf-8")
else:
project.core.ui.echo(content)
project.core.ui.echo(content, markup=False)

0 comments on commit 2b4151d

Please sign in to comment.