From a59e5d73adfeb1a5a68e64ff115180379777ccae Mon Sep 17 00:00:00 2001 From: Jongwook Choi Date: Sun, 5 Nov 2023 22:17:50 -0500 Subject: [PATCH] Drop python3.7 support, require python 3.8+ setuptools_scm 7.x has a bug in determining versions correctly, so we want to use v8.0+, which does not support python3.7. Since python3.7 has hit EOL, we require python3.8 as the minimum supported version. --- LICENSE | 2 +- README.md | 2 +- expt/__init__.py | 4 ++-- pyproject.toml | 4 ++-- setup.py | 3 +-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/LICENSE b/LICENSE index 051b127..86a2f0d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2019-2020 Jongwook Choi +Copyright (c) 2019-2023 Jongwook Choi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/README.md b/README.md index 11a96a1..1e69f80 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,4 @@ pip install git+https://github.com/wookayin/expt@master # Latest developm License ------- -MIT License (c) 2019-2022 Jongwook Choi +MIT License (c) 2019-2023 Jongwook Choi diff --git a/expt/__init__.py b/expt/__init__.py index dac65a0..50a83ba 100644 --- a/expt/__init__.py +++ b/expt/__init__.py @@ -5,8 +5,8 @@ import sys -if sys.version_info < (3, 7): - raise RuntimeError("This library requires python 3.7+.") +if sys.version_info < (3, 8): + raise RuntimeError("This library requires python 3.8+.") try: from ._version import version as __version__ diff --git a/pyproject.toml b/pyproject.toml index e270043..c5e8134 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [build-system] requires = [ "setuptools >= 64.0", - "setuptools_scm[toml]==7.1.0", # Python 3.7 support + "setuptools_scm[toml]>=8.0", "wheel", - "setuptools-rust==1.7.0", # Python 3.7 support + "setuptools-rust", ] [tool.setuptools_scm] diff --git a/setup.py b/setup.py index f382748..5c05f74 100644 --- a/setup.py +++ b/setup.py @@ -169,7 +169,6 @@ def next_semver(version: setuptools_scm.version.ScmVersion): 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', @@ -177,6 +176,7 @@ def next_semver(version: setuptools_scm.version.ScmVersion): 'Topic :: Utilities', 'Topic :: Scientific/Engineering', ], + python_requires='>=3.8', packages=['expt'], rust_extensions=[ RustExtension("expt._internal", binding=Binding.PyO3, \ @@ -196,5 +196,4 @@ def next_semver(version: setuptools_scm.version.ScmVersion): }, # type: ignore include_package_data=True, zip_safe=False, - python_requires='>=3.7', )