Skip to content

Add ruff, test latest OS and bump setuptools#2588

Merged
gaborbernat merged 3 commits intopypa:mainfrom
gaborbernat:ruff
Jun 16, 2023
Merged

Add ruff, test latest OS and bump setuptools#2588
gaborbernat merged 3 commits intopypa:mainfrom
gaborbernat:ruff

Conversation

@gaborbernat
Copy link
Copy Markdown
Contributor

Signed-off-by: Bernát Gábor bgabor8@bloomberg.net

gaborbernat and others added 3 commits June 13, 2023 11:47
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
@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

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
Copy Markdown

@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
Copy Markdown
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