Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] Add deprecation warnings and release notes about setup.py #65525

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions doc/topics/releases/templates/3007.0.md.template
Expand Up @@ -6,8 +6,11 @@
Add release specific details below
-->

## Python 3.11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably should be given that Salt is two major releases behind. 3.11 brings some huge performance improvements

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.11 brings some huge performance improvements

Sadly, with regards to Salt, we saw exactly the opposite.

Salt's onedir packages now use Python 3.11
## 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.7 Support Dropped
Support for python 3.7 has been dropped since it reached end-of-line in 27 Jun 2023.
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Expand Up @@ -1225,4 +1225,9 @@ def parse_command_line(self):
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)