Upgrade scripts to run package functions too #5294
Labels
Contributor Candidate
The issue has been identified/triaged and contributions are welcomed/encouraged.
hacktoberfest
Type: Enhancement 💡
This is a feature or enhancement request.
Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.
Check the diagnose documentation for common issues and the PEEP list before posting! We may close your issue if it is very similar to one of them. Please be considerate and follow the PEEP process, or be on your way.
Make sure to mention your debugging experience if the documented solution failed.
Is your feature request related to a problem? Please describe.
No
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
It would be very useful to be able to call package function as script (very similar as PDM does that https://pdm.fming.dev/latest/usage/scripts/). That would be the only way to have 100% testable code.
Describe alternatives you've considered
PDM
Additional context
$ pipenv --support
Pipenv version:
'2022.8.24'
Pipenv location:
'/home/mariusg/.local/pipx/venvs/pipenv/lib/python3.9/site-packages/pipenv'
Python location:
'/home/mariusg/.local/pipx/venvs/pipenv/bin/python'
OS Name:
'posix'
User pip version:
'22.2.2'
user Python installations found:
3.10.5
:/usr/bin/python
3.10.5
:/usr/bin/python3
3.9.9
:/home/mariusg/.pyenv/versions/3.9.9/bin/python
3.9.8
:/home/mariusg/.pyenv/versions/3.9.8/bin/python
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
PYENV_SHELL
XDG_MENU_PREFIX
LC_ADDRESS
DOTNET_ROOT
LC_NAME
SSH_AUTH_SOCK
DESKTOP_SESSION
LC_MONETARY
CLOUDSDK_PYTHON_ARGS
EDITOR
PWD
XDG_SESSION_DESKTOP
LOGNAME
QT_QPA_PLATFORMTHEME
XDG_SESSION_TYPE
SYSTEMD_EXEC_PID
XAUTHORITY
GJS_DEBUG_TOPICS
MOTD_SHOWN
GDM_LANG
HOME
USERNAME
LC_PAPER
LANG
XDG_CURRENT_DESKTOP
CLOUDSDK_ROOT_DIR
WAYLAND_DISPLAY
INVOCATION_ID
MANAGERPID
DOTNET_BUNDLE_EXTRACT_BASE_DIR
CLOUDSDK_PYTHON
GJS_DEBUG_OUTPUT
GNOME_SETUP_DISPLAY
XDG_SESSION_CLASS
LC_IDENTIFICATION
GOOGLE_CLOUD_SDK_HOME
USER
DISPLAY
SHLVL
LC_TELEPHONE
LC_MEASUREMENT
XDG_RUNTIME_DIR
PYENV_ROOT
LC_TIME
JOURNAL_STREAM
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
MAIL
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
LC_NUMERIC
OLDPWD
_
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL
CHROME_DESKTOP
ORIGINAL_XDG_CURRENT_DESKTOP
GDK_BACKEND
NO_AT_BRIDGE
TERM_PROGRAM
TERM_PROGRAM_VERSION
COLORTERM
GIT_ASKPASS
VSCODE_GIT_ASKPASS_NODE
VSCODE_GIT_ASKPASS_EXTRA_ARGS
VSCODE_GIT_ASKPASS_MAIN
VSCODE_GIT_IPC_HANDLE
VSCODE_INJECTION
ZDOTDIR
TERM
ZSH
PAGER
LESS
LSCOLORS
LS_COLORS
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/mariusg/go/bin:/home/mariusg/.pyenv/shims:/home/mariusg/go/bin:/home/mariusg/.local/bin:/opt/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/home/mariusg/.dotnet/tools:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/mariusg/.pulumi/bin:/home/mariusg/.local/share/gem/ruby/3.0.0/bin
SHELL
:/usr/bin/zsh
EDITOR
:/usr/bin/nano
LANG
:en_US.UTF-8
PWD
:/home/mariusg/Documents/Projects/infra-terraform
Contents of
Pipfile
('/home/mariusg/Documents/Projects/infra-terraform/Pipfile'):Contents of
Pipfile.lock
('/home/mariusg/Documents/Projects/infra-terraform/Pipfile.lock'):The text was updated successfully, but these errors were encountered: