From d9523b9083c778c04d2259eebeb0e29cfa53872d Mon Sep 17 00:00:00 2001 From: Lucain Pouget Date: Tue, 15 Nov 2022 12:14:08 +0100 Subject: [PATCH 1/3] test runnin CI on Python3.11 --- .github/workflows/python-tests.yml | 4 ++-- README.md | 1 + setup.py | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 6f16faef6f..49d48e512e 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11"] test_name: [ "Repository only", @@ -28,7 +28,7 @@ jobs: "tensorflow", ] include: - - python-version: "3.10" # LFS not ran on 3.7 + - python-version: "3.11" # LFS not ran on 3.7 test_name: "lfs" steps: diff --git a/README.md b/README.md index 5fd62b9cd3..b311ce8dca 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Code style: black Code coverage GitHub release +Documentation Documentation ## Welcome to the huggingface_hub library diff --git a/setup.py b/setup.py index 4ccd9281e4..53d11ae409 100644 --- a/setup.py +++ b/setup.py @@ -108,6 +108,12 @@ def get_version() -> str: "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], include_package_data=True, From 0b6d3c69be686506172a0bff9fb656e3a170a750 Mon Sep 17 00:00:00 2001 From: Lucain Pouget Date: Tue, 15 Nov 2022 12:29:25 +0100 Subject: [PATCH 2/3] tensorflow and fastai not supported on 3.11 --- .github/workflows/python-tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 49d48e512e..8c21a882d3 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -18,18 +18,24 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.11"] + python-version: ["3.7", "3.10"] test_name: [ "Repository only", "Everything else", "fastai", - "torch", - "tensorflow", ] include: - python-version: "3.11" # LFS not ran on 3.7 test_name: "lfs" + - python-version: "3.7" + test_name: "fastai" # fastai not supported on 3.11 -> test it on 3.10 + - python-version: "3.10" + test_name: "fastai" + - python-version: "3.7" + test_name: "tensorflow" # Tensorflow not supported on 3.11 -> test it on 3.10 + - python-version: "3.10" + test_name: "tensorflow" steps: - uses: actions/checkout@v2 From 45cf1964e2fe141f600030fa194412cb48ea246c Mon Sep 17 00:00:00 2001 From: Lucain Pouget Date: Tue, 15 Nov 2022 12:29:59 +0100 Subject: [PATCH 3/3] fix mistake --- .github/workflows/python-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 8c21a882d3..ef0b95a3fb 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -18,12 +18,12 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11"] test_name: [ "Repository only", "Everything else", - "fastai", + "torch", ] include: - python-version: "3.11" # LFS not ran on 3.7