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

"prequ edit" command #16

Open
suutari-ai opened this issue Oct 9, 2017 · 0 comments
Open

"prequ edit" command #16

suutari-ai opened this issue Oct 9, 2017 · 0 comments
Projects

Comments

@suutari-ai
Copy link
Collaborator

Implement prequ edit PACKAGE command which can be used to turn a requirement to editable.

The command should:

  1. Fetch the sources of the package to a directory like deps/PACKAGE or to a user specified directory (with --dir DIRECTORY or via deps_dir configuration variable). If there already is sources in the directory, don't override them.
    • Note: This tries to create a VCS checkout when possible, e.g. if there is a Git repository found via package info, it should be cloned and checked out to the currently pinned version.
  2. Make the package temporarily editable in the current virtualenv
    • If the package is currently installed in the current virtualenv (which should be active), reinstall it as editable from the directory specified in 1.
    • Store the info that the package is editable into a .prequ.state file so that prequ sync knows to leave it so.

The editable status can be reverted back with prequ unedit PACKAGE. This won't remove the source directory, but it reinstalls the package to make it non-editable in the virtualenv again. It also updates .prequ.state.

@suutari-ai suutari-ai changed the title Edit feature "prequ edit" command Oct 12, 2017
@suutari-ai suutari-ai added this to To Do in Prequ Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Prequ
  
To Do
Development

No branches or pull requests

1 participant