-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Intersection requirement in pyproject.toml
rendered incorrectly in setup.py
#1522
Comments
I'm encountering the same issue. It seems that the Temporary fix is to replace the |
@tomzx What version of Poetry are you using? I haven't looked at this issue in a while, but I think it may have been fixed in Poetry [tool.poetry]
name = "test78"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.7"
torch = "^1.3, !=1.3.0.post2"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api" And got the following install_requires = \
['torch^1.3, !=1.3.0.post2'] |
@connorbrinton I am using poetry 1.0.0. The example of the generated If you use
in your
which is valid per PEP508. |
Good point, I always have trouble remembering what's allowed under PEP 508 😅 My bad for not reading your comment more thoroughly! Your PR looks great! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
When running
poetry install
, Poetry translates thepyproject.toml
requirement:To the following
setup.py
requirement:Which is rejected by
pip
, since it's not a valid PEP 508 version specifier.Instructions to reproduce:
pyproject.toml
and place in a directorysrc/test78/__init__.py
with the commands:poetry install
Expected result: Success
Actual result:
I used
entr
to also grab the contents of the temporarysetup.py
file generated by Poetry, available in this gist.The text was updated successfully, but these errors were encountered: