diff --git a/pyproject.toml b/pyproject.toml index 5dbc99796..42364101e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,8 @@ classifiers = [ ] dependencies = [ "build>=1.3.0", - "setuptools >=69.2; python_version >= \"3.12\"", + # setuptools upper bound fixes building of gobject-introspection: https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/575 + "setuptools >=69.2, <81; python_version >= \"3.12\"", "cyclopts>=4.0.0b2", "pip", ] diff --git a/uv.lock b/uv.lock index 7a12748a8..288060999 100644 --- a/uv.lock +++ b/uv.lock @@ -279,7 +279,7 @@ requires-dist = [ { name = "lastversion", marker = "extra == 'outdated'", specifier = ">=2.4.2,<4.0.0" }, { name = "packaging", marker = "extra == 'outdated'", specifier = ">=25.0" }, { name = "pip" }, - { name = "setuptools", marker = "python_full_version >= '3.12'", specifier = ">=69.2" }, + { name = "setuptools", marker = "python_full_version >= '3.12'", specifier = ">=69.2,<81" }, ] provides-extras = ["outdated"]