• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 19015773527

02 Nov 2025 05:33PM UTC coverage: 17.872% (-62.4%) from 80.3%
19015773527

Pull #22816

github

web-flow
Merge a12d75757 into 6c024e162
Pull Request #22816: Update Pants internal Python to 3.14

4 of 5 new or added lines in 3 files covered. (80.0%)

28452 existing lines in 683 files now uncovered.

9831 of 55007 relevant lines covered (17.87%)

0.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/python/goals/package_dists.py
1
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

UNCOV
4
from __future__ import annotations
×
5

UNCOV
6
from pants.backend.python.subsystems.setup import PythonSetup
×
UNCOV
7
from pants.backend.python.subsystems.setuptools import PythonDistributionFieldSet
×
UNCOV
8
from pants.backend.python.util_rules.dists import run_pep517_build
×
UNCOV
9
from pants.backend.python.util_rules.package_dists import create_dist_build_request
×
UNCOV
10
from pants.backend.python.util_rules.package_dists import rules as package_dists_rules
×
UNCOV
11
from pants.core.goals.package import BuiltPackage, BuiltPackageArtifact, PackageFieldSet
×
UNCOV
12
from pants.engine.intrinsics import digest_to_snapshot
×
UNCOV
13
from pants.engine.rules import collect_rules, implicitly, rule
×
UNCOV
14
from pants.engine.unions import UnionMembership, UnionRule
×
15

16

UNCOV
17
@rule
×
UNCOV
18
async def package_python_dist(
×
19
    field_set: PythonDistributionFieldSet,
20
    python_setup: PythonSetup,
21
    union_membership: UnionMembership,
22
) -> BuiltPackage:
23
    dist_build_request = await create_dist_build_request(
×
24
        dist_target_address=field_set.address,
25
        python_setup=python_setup,
26
        union_membership=union_membership,
27
        # raises an error if both dist_tgt.wheel and dist_tgt.sdist are False
28
        validate_wheel_sdist=True,
29
    )
30
    setup_py_result = await run_pep517_build(dist_build_request, **implicitly())
×
31
    dist_snapshot = await digest_to_snapshot(setup_py_result.output)
×
32
    return BuiltPackage(
×
33
        setup_py_result.output,
34
        tuple(BuiltPackageArtifact(path) for path in dist_snapshot.files),
35
    )
36

37

UNCOV
38
def rules():
×
UNCOV
39
    return [
×
40
        *package_dists_rules(),
41
        *collect_rules(),
42
        UnionRule(PackageFieldSet, PythonDistributionFieldSet),
43
    ]
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc