setup(python_requires=">=3.9") seems not supported
dmitry-midokura opened this issue · comments
I get this error when have this argument in my setup.py:
pip install .
_set_config(dist, "python_requires", SpecifierSet(val))
File "/tmp/pip-build-env-koy0fqs3/overlay/lib/python3.10/site-packages/setuptools/_vendor/packaging/specifiers.py", line 708, in __init__
split_specifiers = [s.strip() for s in specifiers.split(",") if s.strip()]
AttributeError: 'NoneType' object has no attribute 'split'
[end of output]
pyproject.toml:
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "packaging"]
build-backend = "setuptools.build_meta"
[project]
name = "evp"
dynamic = ["version", "entry-points", "dependencies", "authors", "classifiers", "scripts"]
description = "command line tool"
[tool.setuptools_scm]
version_file = "evp-cli/evp/__version__.py"
What is wrong?
The error is from setuptools
As far as I can tell setuptools-scm is unrelated
Id recommend using project.toml
Ah, makes sense! I forgot that I updated the setuptools to the latest version. Sorry for the noise!
The python-version worked in the pyproject.toml
Thank you!