• 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/makeself/target_types.py
1
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from pants.core.goals.package import OutputPathField
×
UNCOV
4
from pants.engine.target import (
×
5
    COMMON_TARGET_FIELDS,
6
    SpecialCasedDependencies,
7
    StringField,
8
    StringSequenceField,
9
    Target,
10
)
UNCOV
11
from pants.util.docutil import bin_name
×
UNCOV
12
from pants.util.strutil import help_text
×
13

14

UNCOV
15
class MakeselfArthiveLabelField(StringField):
×
UNCOV
16
    alias = "label"
×
UNCOV
17
    help = help_text(
×
18
        """
19
        An arbitrary text string describing the package. It will be displayed while extracting
20
        the files.
21
        """
22
    )
23

24

UNCOV
25
class MakeselfArchiveStartupScriptField(StringSequenceField):
×
UNCOV
26
    alias = "startup_script"
×
UNCOV
27
    required = False
×
UNCOV
28
    help = help_text(
×
29
        """
30
        The startup script, i.e. what gets run when executing `./my_archive.run`.
31

32
        Examples:
33
        - `["startup.sh"]`
34
        - `["echo", "Running makeself archieve"]`
35
        """
36
    )
37

38

UNCOV
39
class MakeselfArchiveFilesField(SpecialCasedDependencies):
×
UNCOV
40
    alias = "files"
×
UNCOV
41
    help = help_text(
×
42
        """
43
        Addresses to any `file`, `files`, or `relocated_files` targets to include in the
44
        archive, e.g. `["resources:logo"]`.
45

46
        This is useful to include any loose files, like data files,
47
        image assets, or config files.
48

49
        This will ignore any targets that are not `file`, `files`, or
50
        `relocated_files` targets.
51

52
        If you instead want those files included in any packages specified in the `packages`
53
        field for this target, then use a `resource` or `resources` target and have the original
54
        package depend on the resources.
55
        """
56
    )
57

58

UNCOV
59
class MakeselfArchivePackagesField(SpecialCasedDependencies):
×
UNCOV
60
    alias = "packages"
×
UNCOV
61
    help = help_text(
×
62
        f"""
63
        Addresses to any targets that can be built with `{bin_name()} package`,
64
        e.g. `["project:app"]`.
65

66
        Pants will build the assets as if you had run `{bin_name()} package`.
67
        It will include the results in your archive using the same name they
68
        would normally have, but without the `--distdir` prefix (e.g. `dist/`).
69

70
        You can include anything that can be built by `{bin_name()} package`,
71
        e.g. a `pex_binary`, `python_awslambda`, or even another `makeself_archive`.
72
        """
73
    )
74

75

UNCOV
76
class MakeselfArchiveOutputPathField(OutputPathField):
×
UNCOV
77
    pass
×
78

79

UNCOV
80
class MakeselfArchiveArgsField(StringSequenceField):
×
UNCOV
81
    alias = "args"
×
UNCOV
82
    required = False
×
UNCOV
83
    help = help_text(
×
84
        """
85
        [Arguments](https://github.com/megastep/makeself#usage) to pass
86
        to the `makeself` script when building this archive. These are passed
87
        before any file paths.
88
        """
89
    )
90

91

UNCOV
92
class MakeselfArchiveToolsField(StringSequenceField):
×
UNCOV
93
    alias = "tools"
×
UNCOV
94
    default = ()
×
UNCOV
95
    help = help_text(
×
96
        """
97
        Specify required executable tools that might be used.
98

99
        Only the tools explicitly provided will be available on the search PATH,
100
        and these tools must be found on the paths provided by
101
        `[shell-setup].executable_search_paths` (which defaults to the system PATH).
102
        """
103
    )
104

105

UNCOV
106
class MakeselfArchiveTarget(Target):
×
UNCOV
107
    alias = "makeself_archive"
×
UNCOV
108
    core_fields = (
×
109
        MakeselfArthiveLabelField,
110
        MakeselfArchiveStartupScriptField,
111
        MakeselfArchiveFilesField,
112
        MakeselfArchivePackagesField,
113
        MakeselfArchiveOutputPathField,
114
        MakeselfArchiveArgsField,
115
        MakeselfArchiveToolsField,
116
        *COMMON_TARGET_FIELDS,
117
    )
UNCOV
118
    help = help_text(
×
119
        """
120
        Self-extractable archive on Unix using [makeself](https://github.com/megastep/makeself)
121
        tool.
122
        """
123
    )
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