Skip to content

Commit

Permalink
Drop 3.7 and 3.8.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 544080629
  • Loading branch information
hbq1 authored and RLaxDev committed Jun 28, 2023
1 parent b53c651 commit 7d1fc9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _parse_requirements(path):
tests_require=_parse_requirements(
os.path.join(_CURRENT_DIR, 'requirements', 'requirements-test.txt')),
zip_safe=False, # Required for full installation.
python_requires='>=3.7',
python_requires='>=3.9',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand Down
10 changes: 8 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ python --version

# Install dependencies.
pip install --upgrade pip setuptools wheel
pip install flake8 pytest-xdist pytype pylint pylint-exit
pip install flake8 pytest-xdist pylint pylint-exit
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-test.txt

Expand All @@ -52,7 +52,13 @@ pip wheel --verbose --no-deps --no-clean dist/rlax*.tar.gz
pip install rlax*.whl

# Check types with pytype.
pytype `find rlax/_src/ -name "*py" | xargs` -k
# Note: pytype does not support 3.11 as of 25.06.23
# See https://github.com/google/pytype/issues/1308
if [ `python -c 'import sys; print(sys.version_info.minor)'` -lt 11 ];
then
pip install pytype
pytype `find rlax/_src/ -name "*py" | xargs` -k
fi;

# Run tests using pytest.
# Change directory to avoid importing the package from repo root.
Expand Down

0 comments on commit 7d1fc9d

Please sign in to comment.