Skip to content
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

Reduce minimum required python version to 3.5.2 #869

Merged
merged 1 commit into from
Aug 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ matrix:
include:
- os: linux
env: NAME=mypy
python: "3.5"
python: "3.5.2"
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep mypy | xargs pip install
script: check/mypy

- os: linux
env: NAME=pylint
python: "3.5"
python: "3.5.2"
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep pylint | xargs pip install
script: check/pylint

- os: linux
env: NAME=pytest-and-incremental-coverage
python: "3.5"
python: "3.5.2"
install:
- pip install -r requirements.txt
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
Expand Down
4 changes: 2 additions & 2 deletions python2.7-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ cp "${in_dir}/LICENSE" "${out_dir}/LICENSE"
cp "${in_dir}/setup.py" "${out_dir}/setup.py"

# Substitute versions (failing via grep triggering -e if not present.)
grep "python_requires='>=3.5.3'" "${out_dir}/setup.py" > /dev/null
sed -i "s/python_requires='>=3.5.3'/python_requires='==2.7.*'/" "${out_dir}/setup.py"
grep "python_requires='>=3.5.2'" "${out_dir}/setup.py" > /dev/null
sed -i "s/python_requires='>=3.5.2'/python_requires='==2.7.*'/" "${out_dir}/setup.py"

# Mark every file as using utf8 encoding.
files_to_update=$(find ${out_dir} | grep "\.py$" | grep -v "_pb2\.py$")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
url='http://github.com/quantumlib/cirq',
author='The Cirq Developers',
author_email='cirq@googlegroups.com',
python_requires='>=3.5.3',
python_requires='>=3.5.2',
install_requires=requirements,
license='Apache 2',
description=description,
Expand Down