Skip to content
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

PEP 582 CLI erroring with "No command given" #1823

Closed
1 task done
jarrodli opened this issue Apr 9, 2023 · 0 comments · Fixed by j178/pdm#1
Closed
1 task done

PEP 582 CLI erroring with "No command given" #1823

jarrodli opened this issue Apr 9, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@jarrodli
Copy link

jarrodli commented Apr 9, 2023

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

Run pdm --pep582.

Actual behavior

Errors out with:

$ pdm --pep582 -v
Usage: pdm [-h] [-V] [-c CONFIG] [-v] [-I] [--pep582 [SHELL]]
           {add,build,cache,completion,config,export,fix,import,info,init,install,list,lock,publish,remove,run,search,self,plugin,show,sync,update,use,venv}
           ...
pdm: error: No command given

Expected behavior

This was working in PDM, version 2.4.8. Expected an env setting script. i.e.,

if test -n "$PYTHONPATH"
    set -x PYTHONPATH '/opt/homebrew/lib/python3.11/site-packages/pdm/pep582' $PYTHONPATH
else
    set -x PYTHONPATH '/opt/homebrew/lib/python3.11/site-packages/pdm/pep582'
end

Environment Information

PDM version:
  2.5.0
Python Interpreter:
  /opt/homebrew/opt/[email protected]/bin/python3.11 (3.11)
Project Root:
*redacted*
Local Packages:
*redacted*
{
  "implementation_name": "cpython",
  "implementation_version": "3.11.2",
  "os_name": "posix",
  "platform_machine": "arm64",
  "platform_release": "22.1.0",
  "platform_system": "Darwin",
  "platform_version": "Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022;
root:xnu-8792.41.9~2/RELEASE_ARM64_T6000",
  "python_full_version": "3.11.2",
  "platform_python_implementation": "CPython",
  "python_version": "3.11",
  "sys_platform": "darwin"
}
@jarrodli jarrodli added the 🐛 bug Something isn't working label Apr 9, 2023
frostming added a commit that referenced this issue Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant