Skip to content

Commit

Permalink
dev(hansbug): remove py3.7 support, add py3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBug committed Oct 16, 2024
1 parent a23c6c3 commit 1793a48
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
os:
- 'ubuntu-20.04'
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'

steps:
- name: Get system version for Linux
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
- 'windows-2019'
- 'macos-12'
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand Down Expand Up @@ -86,8 +85,6 @@ jobs:
architecture: x86
- os: macos-12
architecture: AMD64
- python: '3.7'
architecture: arm64

steps:
- name: Checkout code
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
- 'windows-2019'
- 'macos-12'
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand Down Expand Up @@ -88,8 +87,6 @@ jobs:
architecture: x86
- os: macos-12
architecture: AMD64
- python: '3.7'
architecture: arm64

steps:
- name: Checkout code
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
os:
- 'ubuntu-20.04'
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- 'windows-2019' # need to be fixed, see: https://github.com/opendilab/treevalue/issues/41
- 'macos-12'
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand All @@ -32,10 +31,9 @@ jobs:
- '1.7.1'
- '1.13.1'
- '2.0.1'
- '2.4.0'
- 'latest'
exclude:
- python-version: '3.7'
torch-version: '2.0.1'
- python-version: '3.10'
torch-version: '1.7.1'
- python-version: '3.11'
Expand All @@ -46,6 +44,8 @@ jobs:
torch-version: '1.7.1'
- python-version: '3.12'
torch-version: '1.13.1'
- python-version: '3.12'
torch-version: '2.0.1'

steps:
- name: Get system version for Linux
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import re
from codecs import open
from distutils.core import setup

from setuptools import find_packages
from setuptools import find_packages, setup
from Cython.Build import cythonize # this line should be after 'from setuptools import find_packages'

_package_name = "treevalue"
Expand Down Expand Up @@ -60,7 +59,7 @@ def find_pyx(path=None):
url='https://github.com/HansBug/treevalue',

# environment
python_requires=">=3.7",
python_requires=">=3.8",
ext_modules=cythonize(
find_pyx(),
language_level=3,
Expand All @@ -77,11 +76,11 @@ def find_pyx(path=None):
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.12',
],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 1793a48

Please sign in to comment.