SNOW-500750: pyarrow 6.0 results in version conflict
envgap__snowflakedb__snowflake-connector-python-958
01 / FAILURE SIGNATURE
Captured in a clean container
error: subprocess-exited-with-error
02 / ENVIRONMENT RECIPE
- Base commit
e261d04a228e51ec5a7384d8ac9a25493c2db78b- Manifest
pyproject.toml- Reproduce
python3 -m pip install .- Run under trace
python3 -c " import importlib, importlib.metadata as md mods = set() for dist in md.distributions(): if 'file:///work' not in (dist.read_text('direct_url.json') or ''): continue top = (dist.read_text('top_level.txt') or '').split() if not top: top = [str(f).split('/')[0].removesuffix('.py') for f in (dist.files or []) if str(f).endswith('.py') and not str(f).startswith(('..', '_'))] mods.update(t for t in top if t.isidentifier() and not t.startswith('_')) assert mods, 'the project itself is not installed' for name in sorted(mods): importlib.import_module(name) print('imported', sorted(mods)) "
Reference environment fix used for admission
diff --git a/pyproject.toml b/pyproject.toml
index 5573d8ac..edf8aace 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,5 +6,5 @@ requires = [
"wheel",
"cython",
# Must be kept in sync with the `setup_requirements` in `setup.py`
- "pyarrow>=5.0.0,<5.1.0",
+ "pyarrow>=6.0.0,<6.1.0",
]
diff --git a/setup.py b/setup.py
index 7810b8b9..16bea385 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ cmd_class = {}
pandas_requirements = [
# Must be kept in sync with pyproject.toml
- "pyarrow>=5.0.0,<5.1.0",
+ "pyarrow>=6.0.0,<6.1.0",
"pandas>=1.0.0,<1.4.0",
]
@@ -83,14 +83,14 @@ if _ABLE_TO_COMPILE_EXTENSIONS:
# this list should be carefully examined when pyarrow lib is
# upgraded
arrow_libs_to_copy = {
- "linux": ["libarrow.so.500", "libarrow_python.so.500"],
- "darwin": ["libarrow.500.dylib", "libarrow_python.500.dylib"],
+ "linux": ["libarrow.so.600", "libarrow_python.so.600"],
+ "darwin": ["libarrow.600.dylib", "libarrow_python.600.dylib"],
"win32": ["arrow.dll", "arrow_python.dll"],
}
arrow_libs_to_link = {
- "linux": ["libarrow.so.500", "libarrow_python.so.500"],
- "darwin": ["libarrow.500.dylib", "libarrow_python.500.dylib"],
+ "linux": ["libarrow.so.600", "libarrow_python.so.600"],
+ "darwin": ["libarrow.600.dylib", "libarrow_python.600.dylib"],
"win32": ["arrow.lib", "arrow_python.lib"],
}03 / ORIGINAL ISSUE TEXT
snowflakedb/snowflake-connector-python #958 · read the original issue
`snowflake.connector` forces the following constraint: `pyarrow<5.1.0,>=5.0.0`... this is a major version behind in a key library -- would it be possible to support `pyarrow==6.*`? thank you!
04 / LABELS
Labels checked by running the task · needs human review
misspecificationLabel rules and the text that matched
[
{
"category": "misspecification",
"rule": "diff.changes_existing_manifest_line",
"source": "manifest_diff:pyproject.toml",
"excerpt": "- \"pyarrow>=5.0.0,<5.1.0\",\n+ \"pyarrow>=6.0.0,<6.1.0\","
}
]Mined from a merged pull request linked to the issue whose changed files are all environment files.
The base commit is the pull request's base, not the dated default-branch commit; the registry is pinned to the merge date so the pull request's own pins resolve.
Default commands from envgap default-recipe synthesizer v1; gold_files are the pull request's environment diff.
Preparation uses current registries. Historical package availability is not enforced here; execution metadata records this limitation separately from the oracle's date-bounding policy.