Skip to content

Commit

Permalink
fix incorrect version selector constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
abn authored and radoering committed Apr 26, 2022
1 parent ccfb87a commit 85ff887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/poetry/version/version_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def find_best_candidate(
package_name,
{
"version": target_package_version or "*",
"allow_prereleases": allow_prereleases,
"allow-prereleases": allow_prereleases,
"source": source,
},
)
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_dependency(
constraint = {"version": constraint}

constraint["optional"] = optional
constraint["allow_prereleases"] = allows_prereleases
constraint["allow-prereleases"] = allows_prereleases

return Factory.create_dependency(name, constraint or "*", groups=groups)

Expand Down

0 comments on commit 85ff887

Please sign in to comment.