question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As suggested in https://github.com/python-poetry/poetry/issues/537, the addition of a bundle command could prove useful.

There are two cases that we’ve seen pop up here: the ability to bundle the project and its dependencies in an arbitrary virtual environment and the ability to download the distributions to a specific directory. The former should be implemented directly into Poetry since generating a complete virtual environment makes sense to deploy a Poetry-managed project and the latter could be implemented in a plugin since it’s a less common case.

Implementation

Basically the bundle command will be a top-level command (similar to env) which will expose various sub commands.

Initially, only the venv sub command will be available:

poetry bundle venv my-venv/

If the virtual environment directory already exists it will be removed and regenerated.

Specifying a Python version to use to generate the virtual environment will also be possible:

poetry bundle venv my-venv/ --python 3.8
poetry bundle venv my-venv/ --python python3.8
poetry bundle venv my-venv/ --python /usr/local/bin/python3

Extensibility

The bundle command should be extensible so that new sub commands can be added with the use of plugins. This means that this feature depends on the implementation of the plugin system (which is in progress, see #1237)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
jwillikerscommented, Nov 4, 2021

It would be nice if the plugin worked… Any way someone can merge python-poetry/poetry-bundle-plugin#1?

5reactions
jtc42commented, May 17, 2020

Any updates on this? The WIP branch seems to have gone a bit quiet. This would be super useful for a bunch of projects I’m involved in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bundle Commands - Bundler
Primary Commands ; bundle install(1). Install the gems specified by the Gemfile or Gemfile.lock ; bundle update(1). Update dependencies to their latest versions....
Read more >
Installing Bundler - Launch School - Core Ruby Tools
After you create Gemfile , the bundle install command scans it, downloads and installs all the dependencies listed, and produces a Gemfile.lock file....
Read more >
What does the bundle command do in Linux? - Quora
bundle is a dependency management tool for the Ruby programming language. When run in a project folder, it ensures the correct ruby modules...
Read more >
Ubuntu Manpage: bundle - Ruby Dependency Management
BUNDLE COMMANDS. We divide bundle subcommands into primary commands and utilities. PRIMARY COMMANDS. bundle install(1) bundle-install.1.html ...
Read more >
git-bundle Documentation - Git
options contains the options specific to the git bundle create subcommand. verify <file>. Used to check that a bundle file is valid and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found