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.

How can I sync the packages on pyproject.toml(or poetry.lock) and on virtualenv?

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.
  • Poetry version: 0.12.10
  • OS version and name: macOS 10.14.2 Mojave

Question

For example, I remove a package(e.g Arrow) from pyproject.toml by poetry remove arrow and I see the package is removed from pyproject.toml, poetry.lock and my virtualenv. And then I deploy pyproject.toml and poetry.lock. My teammate download these files and try to install by poetry install. However arrow package is NOT removed from teammate’s virtualenv. I want to sync them (pyproject.toml and virtualenv) like pipenv sync. How can I solve this problem?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mjlbachcommented, May 10, 2020

I’ve run into situations in which this would be useful, such as switching between the tensorflow and tensorflow nightly builds which share the same namespace. pip-tools has pip-sync which implements this functionality.

1reaction
finswimmercommented, Sep 1, 2020

Yep, this is addressed by #2172

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I sync the packages on pyproject.toml(or poetry.lock ...
My teammate download these files and try to install by poetry install . However arrow package is NOT removed from teammate's virtualenv. I...
Read more >
Basic usage | Documentation | Poetry - Python dependency ...
To update to the latest versions, use the update command. This will fetch the latest matching versions (according to your pyproject.toml file) and...
Read more >
Dependency Management With Python Poetry
With the install command, Poetry checks your pyproject.toml file for dependencies then resolves and installs them. The resolving part is ...
Read more >
Poetry pyproject.toml not updating after running 'poetry add ...
I have a django project, with a single virtual env by poetry. At the root of the project is a pyproject.toml and poetry.lock...
Read more >
Implementing dependency management with Python Poetry
Poetry creates two files for the project: pyproject.toml and poetry.lock. PEP 518 specified the pyproject.toml file, which is intended to be ...
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