From 4a20efa82734c714f672370add7fa3788cc21fec Mon Sep 17 00:00:00 2001 From: konstin Date: Mon, 14 Oct 2024 11:08:24 +0200 Subject: [PATCH] Add bad backtracking test cases for A runnable test suite for https://github.com/astral-sh/uv/issues/8157 Tested on Ubuntu 22.04 with uv 0.4.20 with the annotated Python version. --- .../requirements/backtracking/apache-beam-dill.in | 5 +++++ scripts/requirements/backtracking/numpy-numba.in | 9 +++++++++ scripts/requirements/backtracking/numpy-sparse.in | 9 +++++++++ scripts/requirements/backtracking/sentry.in | 11 +++++++++++ .../requirements/backtracking/starlette-fastapi.in | 14 ++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 scripts/requirements/backtracking/apache-beam-dill.in create mode 100644 scripts/requirements/backtracking/numpy-numba.in create mode 100644 scripts/requirements/backtracking/numpy-sparse.in create mode 100644 scripts/requirements/backtracking/sentry.in create mode 100644 scripts/requirements/backtracking/starlette-fastapi.in diff --git a/scripts/requirements/backtracking/apache-beam-dill.in b/scripts/requirements/backtracking/apache-beam-dill.in new file mode 100644 index 000000000000..fdbff013e1e2 --- /dev/null +++ b/scripts/requirements/backtracking/apache-beam-dill.in @@ -0,0 +1,5 @@ +# Run with Python 3.10. +# Passes with pip-tools, fails with uv + +dill<0.3.9,>=0.2.2 +apache-beam<=2.49.0 diff --git a/scripts/requirements/backtracking/numpy-numba.in b/scripts/requirements/backtracking/numpy-numba.in new file mode 100644 index 000000000000..df5e3255b38b --- /dev/null +++ b/scripts/requirements/backtracking/numpy-numba.in @@ -0,0 +1,9 @@ +# Run with Python 3.12. +# As of 2024-10-14: +# llvmlite==0.36.0 +# numba==0.53.1 +# numpy==2.1.2 +# setuptools==75.1.0 + +numpy>=2.1,<2.2 +numba<=0.60,>0.1 diff --git a/scripts/requirements/backtracking/numpy-sparse.in b/scripts/requirements/backtracking/numpy-sparse.in new file mode 100644 index 000000000000..781969b1f2be --- /dev/null +++ b/scripts/requirements/backtracking/numpy-sparse.in @@ -0,0 +1,9 @@ +# Fails with: uv pip install -p 3.12 -r numpy-numba.in +# As of 2024-10-14: +# llvmlite==0.36.0 +# numba==0.53.1 +# numpy==2.1.2 +# setuptools==75.1.0 + +numpy>=1.24,<2.1.2 +sparse<0.15.4 diff --git a/scripts/requirements/backtracking/sentry.in b/scripts/requirements/backtracking/sentry.in new file mode 100644 index 000000000000..b51b28c98ad3 --- /dev/null +++ b/scripts/requirements/backtracking/sentry.in @@ -0,0 +1,11 @@ +# Run with Python 3.12. +# As of 2024-10-14: +# fastjsonschema==2.20.0 +# msgpack==1.1.0 +# python-rapidjson==1.8 +# pyyaml==6.0.2 +# sentry-kafka-schemas==0.1.113 +# typing-extensions==4.12.2 + +python-rapidjson<=1.20,>=1.4 +sentry-kafka-schemas<=0.1.113,>=0.1.50 diff --git a/scripts/requirements/backtracking/starlette-fastapi.in b/scripts/requirements/backtracking/starlette-fastapi.in new file mode 100644 index 000000000000..34ac4feba727 --- /dev/null +++ b/scripts/requirements/backtracking/starlette-fastapi.in @@ -0,0 +1,14 @@ +# Run with Python 3.12. +# As of 2024-10-14: +# annotated-types==0.7.0 +# anyio==4.6.2 +# fastapi==0.1.17 +# idna==3.10 +# pydantic==2.9.2 +# pydantic-core==2.23.4 +# sniffio==1.3.1 +# starlette==0.36.0 +# typing-extensions==4.12.2 + +starlette<=0.36.0 +fastapi<=0.115.2