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

Export fails if package depends on poetry and tox #168

Closed
bmw opened this issue Dec 12, 2022 · 3 comments
Closed

Export fails if package depends on poetry and tox #168

bmw opened this issue Dec 12, 2022 · 3 comments

Comments

@bmw
Copy link
Contributor

bmw commented Dec 12, 2022

I'm not certain the cause of the problem here, but this plugin fails if poetry 1.3.1 and tox 3.27.1 are selected in poetry.lock. This currently happens right now even if you let Poetry pick the poetry and tox versions. For instance, with this simple pyproject.toml file, right now I see the following:

$ poetry lock
Updating dependencies
Resolving dependencies... (1.2s)
$ poetry export

Dependency walk failed at virtualenv (>=16.0.0,!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7)

Here's the created poetry.lock file.

This may be related to #118.

@bmw
Copy link
Contributor Author

bmw commented Mar 7, 2023

I think the problem here is poetry.lock has two versions of virtualenv specified.

@bmw
Copy link
Contributor Author

bmw commented Mar 13, 2023

This is still reproducible leaving the poetry and tox versions unrestrained with the current packages on PyPI. I think what's going on is two versions of virtualenv are being selected to satisfy poetry, but the exporter fails because it doesn't know which one to export. I think fixing this may require trying to parse the packages that depend on the virtualenv so that two versions can be included in the exported requirements files with different environment markers which sounds tricky to me.

@bmw
Copy link
Contributor Author

bmw commented Dec 14, 2023

I believe this is the same issue as #183 which has received much more attention. Closing this in favor of that.

@bmw bmw closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant