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
PDM export to poetry format bug #2877
Comments
Haha, not a bug. No export now. Or are you interested in contributing this? |
This is a bit confusing.. If there is no export supported, so why is this command available and pdm export --help make it looks like it's supported. pdm export --help Export the locked packages set to other formats Options: Dependencies Selection: |
Fixes #2877 Signed-off-by: Frost Ming <me@frostming.com>
When running the command pdm export --format poetry -v
It throws an NotImplementedError error.
STATUS: Resolving packages from lockfile...
STATUS: Fetching hashes for resolved packages...
Traceback (most recent call last):
File "/opt/homebrew/bin/pdm", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pdm/core.py", line 358, in main
return core.main(args or sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pdm/core.py", line 276, in main
raise cast(Exception, err).with_traceback(traceback) from None
File "/opt/homebrew/lib/python3.11/site-packages/pdm/core.py", line 271, in main
self.handle(project, options)
File "/opt/homebrew/lib/python3.11/site-packages/pdm/core.py", line 207, in handle
command.handle(project, options)
File "/opt/homebrew/lib/python3.11/site-packages/pdm/cli/commands/export.py", line 80, in handle
content = FORMATS[options.format].export(project, packages, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pdm/formats/poetry.py", line 238, in export
raise NotImplementedError()
NotImplementedError
PDM version installed:
PDM, version 2.15.2
The text was updated successfully, but these errors were encountered: