You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
smart_install_lib is currently used to tag Git versions. As distutils' install_lib has no replacement in setuptools, smart_install_lib has to be replaced with something else. Possible options:
Make use of dynamic metadata which is capable of deriving the current project version directly from git, using setuptools-scm build backend plugin. It would look like the following in pyproject.toml:
Out of the box, default versioning scheme is the following vs current versioning scheme is the following if I'm not mistaken:
1.2.3 when we have a Git tag
1.2.3.devN when we have N revisions on top of 1.2.3 tag
We might be able to get the same versioning by settingsetuptools_scm.local_scheme to no-local-version.
Worst case scenario, we could use vendored copy and import install_data from setuptools._distutils.command.install_lib to buy time, however it will be an issue when we'll want to completely migrate from setup.py to pyproject.toml.
The text was updated successfully, but these errors were encountered:
@stegayet we're not stuck to the current versioning scheme so I'd be OK to use default versioning. I just need this to be OK with package management tools (e.g., for AUR, Debian, etc.) but those tools could very well strip the version details if they have to. WDYT?
Can be an option, I'll try to get the same versioning scheme for now to not break any existing package management integrations, and fallback to default versioning scheme if I can't.
Uh oh!
There was an error while loading. Please reload this page.
This issue is part of #1650.
smart_install_lib
is currently used to tag Git versions. Asdistutils
'install_lib
has no replacement insetuptools
,smart_install_lib
has to be replaced with something else. Possible options:setuptools-scm
build backend plugin. It would look like the following inpyproject.toml
:Out of the box, default versioning scheme is the following vs current versioning scheme is the following if I'm not mistaken:
1.2.3
when we have a Git tag1.2.3.devN
when we have N revisions on top of1.2.3
tagWe might be able to get the same versioning by setting
setuptools_scm.local_scheme
tono-local-version
.Worst case scenario, we could use vendored copy and import
install_data
fromsetuptools._distutils.command.install_lib
to buy time, however it will be an issue when we'll want to completely migrate fromsetup.py
topyproject.toml
.The text was updated successfully, but these errors were encountered: