Skip to content

build: refactor to achieve proper automatic package discovery#735

Closed
danielelotito wants to merge 2 commits intomainfrom
dl_build_trim_nopriors
Closed

build: refactor to achieve proper automatic package discovery#735
danielelotito wants to merge 2 commits intomainfrom
dl_build_trim_nopriors

Conversation

@danielelotito
Copy link
Collaborator

Fixes the CI problem below

/root/.cache/uv/builds-v0/.tmpc8qm1z/lib/python3.10/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'no_priors_characterization.utils' is absent from the `packages` configuration.
!!
        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'no_priors_characterization.utils' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.
        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'no_priors_characterization.utils' is explicitly added
        to the `packages` configuration field.
        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).
        You can read more about "package discovery" on setuptools documentation page:
        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
        If you don't want 'no_priors_characterization.utils' to be distributed and are
        already explicitly excluding 'no_priors_characterization.utils' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.
        You can read more about "package data files" on setuptools documentation page:
        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************
!!

@AlessandroPomponio AlessandroPomponio added the ci Enables CI integration label Mar 24, 2026
@DRL-NextGen
Copy link
Member

DRL-NextGen commented Mar 24, 2026

Checks Summary

Last run: 2026-03-24T17:05:02.654Z

Mend Unified Agent vulnerability scan found 1 vulnerabilities:

Severity Identifier Package Details Fix
🔸 Low CVE-2026-4539 pygments-2.19.2-py3-none-any.whl
A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function A...A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Not Available

@AlessandroPomponio
Copy link
Member

Superseded by #740

@AlessandroPomponio AlessandroPomponio deleted the dl_build_trim_nopriors branch March 25, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Enables CI integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants