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

Support for bundling and installing to a target directory #799

Closed

Conversation

rajeev
Copy link

@rajeev rajeev commented Jan 15, 2019

The purpose of this PR is to add a new cli option to the install command (--target). It bundles all the dependencies and installs them into a given target directory. This would make it simpler to setup deployment packages for AWS Lambda as well as other similar use cases.

Notes:

  • Target Directory is wiped prior to installation.
  • Need to add tests. Need some help to understand the test framework so that I can do that.

Pull Request Check List

This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!

  • Added tests for changed code.
  • Updated documentation for changed code.

Note: If your Pull Request introduces a new feature or changes the current behavior, it should be based
on the develop branch. If it's a bug fix or only a documentation update, it should be based on the master branch.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

@rajeev rajeev changed the base branch from master to develop January 15, 2019 11:08
@rajeev
Copy link
Author

rajeev commented Jan 16, 2019

@sdispater Could you help me with the appveyor build error, and also point me in the right direction re the test cases?

@rajeev rajeev mentioned this pull request Feb 5, 2019
1 task
@bachirelkhoury
Copy link

Will this be resolved soon? looking for the --target option and the only conflict here is the docs.

@dsully
Copy link

dsully commented Aug 2, 2019

+1 to this change.

@brycedrennan
Copy link
Contributor

@rajeev Thanks for contributing! I'll leave @sdispater to decide on whether this gets merged. Would you be able to rebase off of latest develop?

@dsully use the thumbs up on the issue if you want to vote for something. We can then sort by that. We can't sort by comments with thumbs up.

@brycedrennan brycedrennan added the kind/feature Feature requests/implementations label Aug 17, 2019
@stale
Copy link

stale bot commented Nov 13, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 13, 2019
@sdispater sdispater added stale and removed wontfix labels Nov 14, 2019
@stale stale bot removed the stale label Nov 14, 2019
@AdrieanKhisbe
Copy link

Was a decision made about supporting --target? (cc @sdispater @brycedrennan)

If there is no opposition to add the feature to poetry,
I volonteer to handle the rebase of @rajeev work on top of current develop to solve conflict and have it lan

(I propose this as I'm really interested by the feature, and there was no news from @rajeev)

@mludvig
Copy link

mludvig commented Jul 14, 2020

I hope to see this merged soon. We need it for bundling Dependencies for AWS Lambda deploys.

@@ -13,6 +13,7 @@ class InstallCommand(EnvCommand):
(implicitly enables --verbose). }
{ --E|extras=* : Extra sets of dependencies to install. }
{ --develop=* : Install given packages in development mode. }
{ --target= : Install all dependencies into target directory. }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we add a shortcut for this option -t

if self.target:
cmd.extend(["--target", self.target])
else:
cmd.extend(["-e"])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to use a full option in the code for the sake of readability

@ethanzh
Copy link

ethanzh commented Sep 24, 2020

+1 to wanting to see this merged

@finswimmer
Copy link
Member

Hello,

I guess this one is superseded by #2682.

If you disagree feel free to leave a comment.

Thanks a lot for your contribution @rajeev 👍

@finswimmer finswimmer closed this Sep 27, 2020
@ehiggs
Copy link

ehiggs commented May 4, 2021

@finswimmer I disagree. The pr you linked to is to make a venv. This is to set the target install directory. They have different use cases.

@finswimmer
Copy link
Member

Hello @ehiggs,

I agree with your disagreement :)

@rajeev Are you willing to rework this PR as the code base has changed a lot since you've open this PR? If yes, I can reopen this PR.

fin swimmer

@bryantbiggs
Copy link

could we re-visit this change please?

@monim67
Copy link

monim67 commented Apr 17, 2022

Any update on this?

Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.