Skip to content

Tests fail under python2.7 #429

@tseaver

Description

@tseaver

Even with a fix in place for #427:

$ git stat
On branch 427-fix-test_client_wo_project
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   tests/unit/test_client.py

$ nox -e unit-2.7
nox > Running session unit-2.7
nox > Creating virtual environment (virtualenv) using python2.7 in .nox/unit-2-7
nox > python -m pip install mock pytest pytest-cov
nox > python -m pip install -e .
nox > Command python -m pip install -e . failed with exit code 1:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in links: file:///home/tseaver/.pip/wheels
Obtaining file:///home/tseaver/projects/agendaless/Google/src/python-storage
Collecting google-auth<2.0dev,>=1.11.0
  Using cached google_auth-1.30.0-py2.py3-none-any.whl (146 kB)
Collecting google-cloud-core<2.0dev,>=1.4.1
  Using cached google_cloud_core-1.6.0-py2.py3-none-any.whl (28 kB)
Collecting google-resumable-media<2.0dev,>=1.2.0
  Using cached google_resumable_media-1.2.0-py2.py3-none-any.whl (75 kB)
Processing /home/tseaver/.pip/wheels/requests-2.25.1-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/pyasn1_modules-0.2.8-py2.py3-none-any.whl
Collecting rsa<4.6; python_version < "3.6"
  Using cached rsa-4.5-py2.py3-none-any.whl (36 kB)
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-3.1.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: setuptools>=40.3.0 in ./.nox/unit-2-7/lib/python2.7/site-packages (from google-auth<2.0dev,>=1.11.0->google-cloud-storage==1.38.0) (44.1.1)
Requirement already satisfied: six>=1.9.0 in ./.nox/unit-2-7/lib/python2.7/site-packages (from google-auth<2.0dev,>=1.11.0->google-cloud-storage==1.38.0) (1.16.0)
Processing /home/tseaver/.pip/wheels/google_api_core-1.26.3-py2.py3-none-any.whl
Processing /home/tseaver/.cache/pip/wheels/06/c2/19/2d00b8cea7d9ac6e19d286b0c41cf7a9eb39f64bd21ed43194/crcmod-1.7-cp27-cp27mu-linux_x86_64.whl
Processing /home/tseaver/.pip/wheels/chardet-4.0.0-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/urllib3-1.26.4-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/idna-2.10-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/certifi-2020.12.5-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/pyasn1-0.4.8-py2.py3-none-any.whl
Processing /home/tseaver/.pip/wheels/pytz-2021.1-py2.py3-none-any.whl
Collecting futures>=3.2.0; python_version < "3.2"
  Using cached futures-3.3.0-py2-none-any.whl (16 kB)
Collecting protobuf>=3.12.0
  Using cached protobuf-3.15.8-cp27-cp27mu-manylinux1_x86_64.whl (1.0 MB)
Processing /home/tseaver/.pip/wheels/googleapis_common_protos-1.53.0-py2.py3-none-any.whl
ERROR: Package 'googleapis-common-protos' requires a different Python: 2.7.17 not in '>=3.6'
nox > Session unit-2.7 failed.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/python-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions