mirror of
https://github.com/huggingface/peft.git
synced 2025-10-20 15:33:48 +08:00
CHORE Drop Python 3.9, add 3.13 (#2790)
This commit is contained in:
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@ -40,8 +40,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||||
os: ["ubuntu-latest", "macos-13", "windows-latest"]
|
os: ["ubuntu-latest", "macos-13", "windows-latest"]
|
||||||
|
exclude:
|
||||||
|
- os: macos-13
|
||||||
|
python-version: "3.13"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@ -78,12 +81,6 @@ jobs:
|
|||||||
pip install setuptools
|
pip install setuptools
|
||||||
# cpu version of pytorch
|
# cpu version of pytorch
|
||||||
pip install -e .[test]
|
pip install -e .[test]
|
||||||
- name: Downgrade numpy on MacOS and Windows
|
|
||||||
# TODO: remove numpy downgrade on MacOS & Windows once torch fixes numpy 2.0 issue
|
|
||||||
shell: bash
|
|
||||||
if: matrix.os == 'windows-latest' || matrix.os == 'macos-13'
|
|
||||||
run: |
|
|
||||||
pip install --force-reinstall -U "numpy<2.0.0"
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
# MacOS tests are currently too flaky and will fail almost each time. Thus, continue (green checkmark) even if
|
# MacOS tests are currently too flaky and will fail almost each time. Thus, continue (green checkmark) even if
|
||||||
# they fail, but add a notice so that the failure is not completely silent
|
# they fail, but add a notice so that the failure is not completely silent
|
||||||
|
4
setup.py
4
setup.py
@ -56,7 +56,7 @@ setup(
|
|||||||
packages=find_packages("src"),
|
packages=find_packages("src"),
|
||||||
package_data={"peft": ["py.typed", "tuners/boft/fbd/fbd_cuda.cpp", "tuners/boft/fbd/fbd_cuda_kernel.cu"]},
|
package_data={"peft": ["py.typed", "tuners/boft/fbd/fbd_cuda.cpp", "tuners/boft/fbd/fbd_cuda_kernel.cu"]},
|
||||||
entry_points={},
|
entry_points={},
|
||||||
python_requires=">=3.9.0",
|
python_requires=">=3.10.0",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"numpy>=1.17",
|
"numpy>=1.17",
|
||||||
"packaging>=20.0",
|
"packaging>=20.0",
|
||||||
@ -78,10 +78,10 @@ setup(
|
|||||||
"License :: OSI Approved :: Apache Software License",
|
"License :: OSI Approved :: Apache Software License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user