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

Add ruff, test latest OS and bump setuptools #2588

Merged
merged 3 commits into from
Jun 16, 2023
Merged

Conversation

gaborbernat
Copy link
Contributor

Signed-off-by: Bernát Gábor [email protected]

@gaborbernat gaborbernat force-pushed the ruff branch 2 times, most recently from 0e72539 to 78c5fc3 Compare June 13, 2023 18:41
Signed-off-by: Bernát Gábor <[email protected]>
@gaborbernat gaborbernat force-pushed the ruff branch 13 times, most recently from a65dca3 to 01ba626 Compare June 16, 2023 17:17
Signed-off-by: Bernát Gábor <[email protected]>
@gaborbernat gaborbernat changed the title Add ruff Add ruff and bump setuptools Jun 16, 2023
@gaborbernat gaborbernat changed the title Add ruff and bump setuptools Add ruff, test latest OS and bump setuptools Jun 16, 2023
@gaborbernat gaborbernat merged commit 025e96f into pypa:main Jun 16, 2023
@gaborbernat gaborbernat deleted the ruff branch June 16, 2023 18:37
@@ -21,17 +21,17 @@


def _get_path_extensions():
return list(OrderedDict.fromkeys([""] + os.environ.get("PATHEXT", "").lower().split(os.pathsep)))
return list(OrderedDict.fromkeys(["", *os.environ.get("PATHEXT", "").lower().split(os.pathsep)]))
Copy link

@ylecuyer ylecuyer Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this syntax isn't compatible with all python version:

root@4ac062d1f6e7:~# python3 --version
Python 3.9.2
root@4ac062d1f6e7:~# virtualenv --version
virtualenv 20.23.1 from /usr/local/lib/python3.9/dist-packages/virtualenv/__init__.py
root@4ac062d1f6e7:~# virtualenv -p $(which python2) venv
RuntimeError: failed to query /usr/bin/python2 with code 1 err: '  File "/usr/local/lib/python3.9/dist-packages/virtualenv/discovery/py_info.py", line 24\n    return list(OrderedDict.fromkeys(["", *os.environ.get("PATHEXT", "").lower().split(os.pathsep)]))\n                                          ^\nSyntaxError: invalid syntax\n'

and the project is supposed to be compatible with

requires-python = ">=3.7"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're trying to create a Python 2 environment there, see https://virtualenv.pypa.io/en/latest/changelog.html#features-20-22-0 that's no longert supported. Use older version of the project, but really Python 2 is way past its EOL now.

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

Successfully merging this pull request may close these issues.

2 participants