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

Use find_namespace_packages #2357

Merged
merged 1 commit into from
May 16, 2024

Conversation

matrss
Copy link
Collaborator

@matrss matrss commented May 16, 2024

This fixes warnings about sub-directories of mslib/ that were previously not part of the packages because they don't contain __init__.py, but that were still recognized and added as packages due to a deprecated behavior of setuptools.

The change from exclude to include is due to the excludes not being exhaustive. Multiple consecutive builds would add the entirety of build/ into the package with the excludes. Since we know that mslib and its sub-packages are the only ones that should be distributed we can just be explicit about that.

Purpose of PR?:

Fixes #1643.

Does this PR introduce a breaking change?

If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Does this PR results in some Documentation changes?
If yes, include the list of Documentation changes

Checklist:

  • Bug fix. Fixes #
  • New feature (Non-API breaking changes that adds functionality)
  • PR Title follows the convention of <type>: <subject>
  • Commit has unit tests

This fixes warnings about sub-directories of mslib/ that were previously
not part of the packages because they don't contain __init__.py, but
that were still recognized and added as packages due to a deprecated
behavior of setuptools.

The change from exclude to include is due to the excludes not being
exhaustive. Multiple consecutive builds would add the entirety of build/
into the package with the excludes. Since we know that mslib and its
sub-packages are the only ones that should be distributed we can just be
explicit about that.
@matrss matrss requested review from ReimarBauer and joernu76 May 16, 2024 09:12
@matrss matrss merged commit 523c40d into Open-MSS:develop May 16, 2024
9 of 10 checks passed
@matrss matrss deleted the fix-package-ignored-warnings branch May 16, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup tools warnings
2 participants