thoth.adviser.python.pipeline.sieves package

Submodules

thoth.adviser.python.pipeline.sieves.index_enabled module

A sieve for filtering out disabled Python package indexes.

class thoth.adviser.python.pipeline.sieves.index_enabled.PackageIndexSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

Filter out disabled Python package indexes.

run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

Filter out package versions based on disabled Python package index.

thoth.adviser.python.pipeline.sieves.limit_latest_versions module

Limit latest versions occurring in the software stack.

class thoth.adviser.python.pipeline.sieves.limit_latest_versions.LimitLatestVersionsSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

Limit latest versions occurring in the software stack.

PARAMETERS_DEFAULT = {'limit_latest_versions': 5}
run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

Limit latest versions occurring in the software stack.

thoth.adviser.python.pipeline.sieves.os_sieve module

A sieve for filtering out operating systems.

class thoth.adviser.python.pipeline.sieves.os_sieve.OperatingSystemSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

Filter out package versions based on operating system in which the given stack runs in.

run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

Filter out package versions based on operating system in which the given stack runs in.

thoth.adviser.python.pipeline.sieves.prereleases module

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

class thoth.adviser.python.pipeline.sieves.prereleases.CutPreReleasesSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

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

run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

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

thoth.adviser.python.pipeline.sieves.semver_sort module

Sort direct dependencies based on semver.

class thoth.adviser.python.pipeline.sieves.semver_sort.SemverSortSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

Sort direct dependencies based on semver.

run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

Sort direct dependencies based on semantic version.

thoth.adviser.python.pipeline.sieves.solved module

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

class thoth.adviser.python.pipeline.sieves.solved.SolvedSieve(graph: thoth.storages.graph.postgres.GraphDatabase, project: thoth.python.project.Project, library_usage: dict = NOTHING, parameters: dict = NOTHING, name: str = None)[source]

Bases: thoth.adviser.python.pipeline.sieve.Sieve

Filter out build time/installation errors of Python packages.

PARAMETERS_DEFAULT = {'without_error': True}
run(sieve_context: thoth.adviser.python.pipeline.sieve_context.SieveContext) → None[source]

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

Module contents

Implementation of sieves used to filter out direct dependencies.