Skip to content

Commit

Permalink
Drop support for python<3.9.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 584861096
  • Loading branch information
hbq1 authored and MctxDev committed Nov 23, 2023
1 parent 663455f commit adf12a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

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

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: Run CI tests
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 :: 4 - Beta',
'Intended Audience :: Science/Research',
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 @@ -46,7 +46,13 @@ pip wheel --verbose --no-deps --no-clean dist/mctx*.tar.gz
pip install mctx*.whl

# Check types with pytype.
pytype `find mctx/_src/ -name "*py" | xargs` -k
# Note: pytype does not support 3.12 as of 23.11.23
# See https://github.com/google/pytype/issues/1308
if [ `python -c 'import sys; print(sys.version_info.minor)'` -lt 12 ];
then
pip install pytype
pytype `find mctx/_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 adf12a3

Please sign in to comment.