New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload of 'google-cloud-bigquery' wheel fails with 400 #8451
Comments
Diff of previous release: googleapis/python-bigquery@v1.27.0...v1.27.1 |
The last release to upload successfully was 1.26.1, so this diff may be more germane |
I think the issue is this change: - 'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
- # Bad Linux release for 0.14.0.
- # https://issues.apache.org/jira/browse/ARROW-5868
- "pyarrow>=0.4.1, != 0.14.0"
+ 'pyarrow: platform_system != "Windows" or python_version >= "3.5"': [
+ "pyarrow>=1.0.0, <2.0dev; python_version>='3.4'",
+ # Pyarrow >= 0.17.0 is not compatible with Python 2 anymore.
+ "pyarrow < 0.17.0; python_version < '3.0'",
+ ], This is definitely not a valid PEP 508 dependency string:
Whereas this would be:
It seems like maybe this is a bug with how setuptools handles a |
Here's the metadata that gets written to the wheel with this extra:
What is the actual intended behavior? It seems like this could be simplified, but as I'm trying to unpack what this would do if it's working, it doesn't totally make sense to me. Furthermore, it looks like https://pypi.org/project/pyarrow/0.17.0/ correctly specifies |
I have pushed a change to BigQuery which moves all platform constraints for extras into the "key", rather than mixing them, which I believe is the issue. From the 1.27.0 release:extras = {
...
# Exclude PyArrow dependency from Windows Python 2.7.
'pyarrow: platform_system != "Windows" or python_version >= "3.5"': [
"pyarrow>=1.0.0, <2.0dev; python_version>='3.4'",
# Pyarrow >= 0.17.0 is not compatible with Python 2 anymore.
"pyarrow < 0.17.0; python_version < '3.0'",
],
...
} which yielded these broken
From the 1.27.1 version:extras = {
...
# Exclude PyArrow dependency from Windows Python 2.7.
'pyarrow: platform_system == "Windows"': [
"pyarrow>=1.0.0, <2.0dev; python_version>='3.5'",
],
'pyarrow: platform_system != "Windows"': [
"pyarrow>=1.0.0, <2.0dev; python_version>='3.5'",
# Pyarrow >= 0.17.0 is not compatible with Python 2 anymore.
"pyarrow < 0.17.0; python_version < '3.0'",
],
...
} which yielded these broken
From the PR:extras = {
...
"pyarrow: python_version >= '3.5'": ["pyarrow >= 1.0.0, < 2.0dev"],
# Exclude PyArrow dependency from Windows Python 2.7.
"pyarrow: platform_system != 'Windows' and python_version < '3.0'": [
"pyarrow < 0.17.0",
],
...
} which yielded these working
|
I'm presuming that the next upload will work. Since this isn't actually a Warehouse bug, I'm closing it. |
Describe the bug
Automated upload of 1.27.1 release fails with:
1.27.0 release also failed, using a variant on the
pyarrow
dependency in use for a long while:python setup.py check --restructuredtext --strict
returns no errors for either one with latest setuptools / pip installed.Expected behavior
Upload should succeed.
To Reproduce
The text was updated successfully, but these errors were encountered: