-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
generated _version.py breaks on python <3.8 #905
Comments
this is a unfortunate oversight, with the drop of python3.7 in the support matrix as your build env uses a higher python version that new setuptools_scm version is pulled in |
Thanks! I’m not sure I understand. I get the SyntaxError even on Python 3.10:
(Thanks BTW, due to your comment, I noticed that apparently my build matrix is configured incorrectly and uses Python 3.10 for all builds, independent of the specified version number.) |
i have a local bugfix + a regression test that switches to type comments, release incoming in a few |
Thanks for this quick fix! With that, I can drop my I wanted to clarify my comment from above. The Python version is not the problem as Python 3.7 understands this style of annotation:
The problem is attempting to use two annotations in a row like this:
That is a SyntaxError up until at least Python 3.11. |
This affects lots of project and breaks also with newer versions of python, I would recommend yanking 8.0 release until we have a fix to limit the ecosystem impact. |
Just wanted to say a big thank you for finding and fixing this so quickly! I love this package and use in every single project I develop. Much love from the community ❤️ |
…yntax-compat fix #905 - correct version file template for older python versions
Totally, v8 must be yanked imho, so that we can remove the pin. |
@abhinavsingh just yanked it |
bug-fix release triggered |
due to the bug described at pypa/setuptools-scm#905
due to the bug described at pypa/setuptools-scm#905
I have this in my
pyproject.toml
:setuptools_scm 8.0.0 seems to incorrectly generate the
_version.py
file (it contains syntax errors):Logs for a failed GitHub Actions run.
The text was updated successfully, but these errors were encountered: