You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* conglomerated improvements to support building and testing pure pyproject.toml packages
---------
Co-authored-by: Laurent Mazuel <[email protected]>
Co-authored-by: Copilot <[email protected]>
description="""This is a secondary entrypoint for the "build" action. This command is used to install dependencies and build a specific package within the azure-sdk-for-python repository.""",
16
+
)
17
+
18
+
parser.add_argument(
19
+
"-d",
20
+
"--distribution-directory",
21
+
dest="distribution_directory",
22
+
help="The path to the distribution directory. Should be passed $(Build.ArtifactStagingDirectory) from the devops yaml definition."
23
+
+"If that is not provided, will default to env variable SDK_ARTIFACT_DIRECTORY -> <calculated_repo_root>/.artifacts.",
24
+
)
25
+
26
+
parser.add_argument(
27
+
"--package_folder",
28
+
dest="package_folder",
29
+
required=True,
30
+
help="The target that should be assembled",
31
+
)
32
+
33
+
parser.add_argument(
34
+
"--package_type",
35
+
dest="package_type",
36
+
choices=["sdist", "whl", "all"],
37
+
default="all",
38
+
help="The type of package to build: sdist (source distribution only), whl (wheel only), or all (both)",
description="""This is the primary entrypoint for the "build" action. This command is used to build any package within the azure-sdk-for-python repository.""",
@@ -125,6 +176,8 @@ def build() -> None:
125
176
artifact_directory,
126
177
str_to_bool(args.is_dev_build),
127
178
build_id,
179
+
True,
180
+
True
128
181
)
129
182
130
183
@@ -146,6 +199,8 @@ def build_packages(
146
199
distribution_directory: Optional[str] =None,
147
200
is_dev_build: bool=False,
148
201
build_id: str="",
202
+
enable_wheel: bool=True,
203
+
enable_sdist: bool=True
149
204
):
150
205
logging.log(level=logging.INFO, msg=f"Generating {targeted_packages} using python{sys.version}")
0 commit comments