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

setup tools warnings #1643

Closed
ReimarBauer opened this issue Jan 4, 2023 · 2 comments · Fixed by #2357
Closed

setup tools warnings #1643

ReimarBauer opened this issue Jan 4, 2023 · 2 comments · Fixed by #2357
Assignees
Labels
enhancement New feature or request packaging
Milestone

Comments

@ReimarBauer
Copy link
Member

 ############################
      # Package would be ignored #
      ############################
      Python recognizes 'mslib.mswms.xml_templates' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'mslib.mswms.xml_templates' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'mslib.mswms.xml_templates' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.

similiar for

  • mslib.mscolab.migrations
  • mslib.mscolab.migrations.versions
  • mslib.static.docs
  • mslib.static.img
  • mslib.static.templates
  • mslib.static.templates.user
  • mslib.msui.resources
  • mslib.msui.icons.config_editor

and various _tests dir which we moved already in develop

@ReimarBauer ReimarBauer added the enhancement New feature or request label Jan 4, 2023
@ReimarBauer ReimarBauer added this to the 8.0.0 milestone Jan 4, 2023
@ReimarBauer
Copy link
Member Author

@ReimarBauer ReimarBauer modified the milestones: 8.0.0, 9.0.0 Apr 22, 2023
@matrss matrss self-assigned this May 16, 2024
@matrss
Copy link
Collaborator

matrss commented May 16, 2024

The issue is a combination of not having __init__.py in each directory and using find_packages instead of find_namespace_packages. Switching to find_namespace_packages should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants