Skip to content

Commit

Permalink
Drop python3.7 support, require python 3.8+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wookayin committed Nov 6, 2023
1 parent c3c2b01 commit a59e5d7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions expt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ 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',
'Programming Language :: Python :: 3.11',
'Topic :: Utilities',
'Topic :: Scientific/Engineering',
],
python_requires='>=3.8',
packages=['expt'],
rust_extensions=[
RustExtension("expt._internal", binding=Binding.PyO3, \
Expand All @@ -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',
)

0 comments on commit a59e5d7

Please sign in to comment.