Skip to content

Commit

Permalink
Remove Support of Py3.7 and Support Py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-Cheng Chang committed Aug 12, 2024
1 parent f222c94 commit 4413ac6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
build_platform: ["manylinux2014_x86_64", "manylinux2014_aarch64"]

runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
platform: [ubuntu-20.04, ubuntu-22.04]

runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

runs-on: ubuntu-latest
container: amazonlinux:2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style_type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: "3.7"
python-version: "3.8"
- name: Install dependencies
id: install-dep
run: |
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,19 @@ def get_blas_lib_dir(cls):

# Requirements
numpy_requires = [
'numpy<1.20.0; python_version<"3.7"', # setup_requires needs correct version for <3.7
'numpy>=1.19.5,<2.0.0; python_version>="3.7"'
'numpy>=1.19.5,<2.0.0; python_version>="3.8"'
]
setup_requires = numpy_requires + [
'pytest-runner'
]
install_requires = numpy_requires + [
'scipy>=1.4.1,<1.14.0',
'scikit-learn>=0.24.1',
'torch==1.13; python_version<"3.8"',
'torch>=2.0; python_version>="3.8"',
'sentencepiece>=0.1.86,!=0.1.92', # 0.1.92 results in error for transformers
'transformers>=4.1.1; python_version<"3.9"',
'transformers>=4.4.2; python_version>="3.9"'
'transformers>=4.31.0; python_version>="3.8"', # the minimal version supporting py3.8
'peft>=0.11.0; python_version>="3.8"',
'datasets>=2.19.1; python_version>="3.8"',
]

# Fetch Numpy before building Numpy-dependent extension, if Numpy required version was not installed
Expand Down

0 comments on commit 4413ac6

Please sign in to comment.