Skip to content

Fix compatibility with Python 3.11 by updating the vendored version of attrs #5449

@torsava

Description

@torsava

Issue description

When running latest version of pipenv (2022.10.25) on Python 3.11 it shows a runtime warning:

$ pipenv --version
/__venv__/lib64/python3.11/site-packages/pipenv/vendor/attr/_make.py:876: RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  set_closure_cell(cell, cls)
pipenv, version 2022.10.25

This has been fixed in attrs version 22.1.0 (see python-attrs/attrs#969). However, pipenv currently vendors version 21.2.0 (see https://github.com/pypa/pipenv/blob/main/pipenv/vendor/vendor.txt#L1).

Please update the vendored version of attrs to 22.1.0 or later to fix compatibility with Python 3.11

Expected result

$ pipenv --version
pipenv, version 2022.10.25

Actual result

See issue description.

Steps to replicate

Launch any pipenv command on Python 3.11.

$ pipenv --version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions