Skip to content

Package activity status should come from pyproject.toml not setup classifiers #29703

Closed as not planned
@scbedd

Description

@scbedd

Within CI, we do not build packages or test packages that have been marked as inactive in their classifiers.

This is handled by a single location in code.

We need to update this to instead honor a new variable in the pyproject toml section (this example is from azure-core):

[tool.azure-sdk-build]
mypy = true
type_check_samples = false
verifytypes = true
pyright = false
build = false # <-- the new variable, indicating that this package should not be built or tested

Then, within is_package_inactive(), we want examine the value of this new variable by utilizing the function is_check_enabled(package_path, 'build', False).

Note that the 3rd argument to is_check_enabled is the default bool that will be returned. Ensure that we only skip build/test of a package if build = false. All other options (including build=true) should be treated as

this package is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.EngSysThis issue is impacting the engineering system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions