thoth.adviser.sieves package

Submodules

thoth.adviser.sieves.index_enabled module

A step for filtering out disabled Python package indexes.

class thoth.adviser.sieves.index_enabled.PackageIndexSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None, cached_records: Dict[str, Optional[bool]] = NOTHING)[source]

Bases: thoth.adviser.sieve.Sieve

Filter out disabled Python package indexes.

run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Filter out package versions based on disabled Python package index.

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Remove indexes which are not enabled in pipeline configuration.

thoth.adviser.sieves.prereleases module

A step to filter out pre-releases in direct dependencies.

class thoth.adviser.sieves.prereleases.CutPreReleasesSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None)[source]

Bases: thoth.adviser.sieve.Sieve

Cut-off pre-releases if project does not explicitly allows them.

run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Cut-off pre-releases if project does not explicitly allows them.

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include cut-prereleases pipeline sieve for adviser or Dependency Monkey if pre-releases are not allowed.

thoth.adviser.sieves.solved module

A sieve for filtering out build time/installation errors of Python packages.

class thoth.adviser.sieves.solved.SolvedSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None)[source]

Bases: thoth.adviser.sieve.Sieve

Filter out build time/installation errors of Python packages.

PARAMETERS_DEFAULT = {'without_error': True}
run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Filter out packages based on build time/installation issues..

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include solved pipeline sieve for adviser or Dependency Monkey on pipeline creation.

Module contents

Implementation of sieves used in adviser pipeline.

class thoth.adviser.sieves.CutPreReleasesSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None)[source]

Bases: thoth.adviser.sieve.Sieve

Cut-off pre-releases if project does not explicitly allows them.

run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Cut-off pre-releases if project does not explicitly allows them.

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include cut-prereleases pipeline sieve for adviser or Dependency Monkey if pre-releases are not allowed.

class thoth.adviser.sieves.PackageIndexSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None, cached_records: Dict[str, Optional[bool]] = NOTHING)[source]

Bases: thoth.adviser.sieve.Sieve

Filter out disabled Python package indexes.

run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Filter out package versions based on disabled Python package index.

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Remove indexes which are not enabled in pipeline configuration.

class thoth.adviser.sieves.SolvedSieve(*, graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: Optional[Dict[str, Any]] = NOTHING, parameters: Dict[str, Any] = NOTHING, name: str = None, context: Optional[thoth.adviser.context.Context] = None)[source]

Bases: thoth.adviser.sieve.Sieve

Filter out build time/installation errors of Python packages.

PARAMETERS_DEFAULT = {'without_error': True}
run(package_version: thoth.python.package_version.PackageVersion) → None[source]

Filter out packages based on build time/installation issues..

classmethod should_include(context: PipelineBuilderContext) → Optional[Dict[str, Any]][source]

Include solved pipeline sieve for adviser or Dependency Monkey on pipeline creation.