I am trying to include the minor python version in the name of a wheel built with pip wheel
. My project is based on a pyproject.toml
that specifies version number etc. and also requires a concrete minor version of python via requires-python
.
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
[project]
version = '1.0.0'
name = 'my-package'
requires-python = '==3.10.*'
dependencies = [
...
]
However, when building the wheel
pip wheel --no-deps .
the resulting file's name is my_package-1.0.0-py3-none-any.whl
.
What I would like however is my_package-1.0.0-py310-none-any.whl
. How can I get pip to include the minor version? Is there some setting in pyproject.toml
?