Add deprecation warnings and release notes about `setup.py`

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-11-09 06:46:32 +00:00 committed by Pedro Algarvio
parent 63ade50e2b
commit 92cae105fd
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,12 @@
Add release specific details below
-->
## Salt's ``setup.py`` customizations
> :warning: **Deprecation Notice**: <br>
In Salt 3009, the ``setup.py`` file will be stripped of it's custom additions and migrated to a plain ``pyproject.toml`` python package
or whatever is found best during the process of removing the customizations. <br>
**If you're relying on these customizations please stop as your workflow will break in the future**.
## Python 3.11
Salt's onedir packages now use Python 3.11

View file

@ -1225,4 +1225,9 @@ if __name__ == "__main__":
warnings.warn(
"Warning: distutils is deprecated and shall be removed in Python 3.12, advise migrate to using setuptools"
)
warnings.warn(
"In Salt 3009, the `setup.py` file will be stripped of it's custom additions and migrated to a plain "
"`pyproject.toml` python package or whatever is found best during the process of removing the customizations. "
"If you're relying on these customizations please stop as your workflow will break in the future."
)
setup(distclass=SaltDistribution)