Reference documentation and code samples for the Cloud Build v1 API class Artifacts.Types.PythonPackage.
Python package to upload to Artifact Registry upon successful completion
of all build steps. A package can encapsulate multiple objects to be
uploaded to a single repository.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eArtifacts.Types.PythonPackage\u003c/code\u003e class in the Cloud Build v1 API is 2.15.0, and there are several previous versions, ranging from 1.0.0 to 2.14.0, available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eArtifacts.Types.PythonPackage\u003c/code\u003e class is designed for defining Python packages to be uploaded to Artifact Registry after a successful build, allowing multiple objects to be encapsulated and uploaded to a single repository.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring compatibility and functionality within the Google Cloud Protobuf ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePythonPackage\u003c/code\u003e class has two constructors, a default constructor and another that accepts an \u003ccode\u003eArtifacts.Types.PythonPackage\u003c/code\u003e object as an argument, with properties like \u003ccode\u003ePaths\u003c/code\u003e and \u003ccode\u003eRepository\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePaths\u003c/code\u003e is a property that contains path globs used to match files in the build's workspace, and \u003ccode\u003eRepository\u003c/code\u003e is a property that contains the Artifact Registry repository location.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class Artifacts.Types.PythonPackage (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage) \n\n public sealed class Artifacts.Types.PythonPackage : IMessage\u003cArtifacts.Types.PythonPackage\u003e, IEquatable\u003cArtifacts.Types.PythonPackage\u003e, IDeepCloneable\u003cArtifacts.Types.PythonPackage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class Artifacts.Types.PythonPackage.\n\nPython package to upload to Artifact Registry upon successful completion\nof all build steps. A package can encapsulate multiple objects to be\nuploaded to a single repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Artifacts.Types.PythonPackage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Artifacts](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types)[PythonPackage](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Artifacts](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types)[PythonPackage](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Artifacts](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types)[PythonPackage](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.PythonPackage), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### PythonPackage()\n\n public PythonPackage()\n\n### PythonPackage(PythonPackage)\n\n public PythonPackage(Artifacts.Types.PythonPackage other)\n\nProperties\n----------\n\n### Paths\n\n public RepeatedField\u003cstring\u003e Paths { get; }\n\nPath globs used to match files in the build's workspace. For Python/\nTwine, this is usually `dist/*`, and sometimes additionally an `.asc`\nfile.\n\n### Repository\n\n public string Repository { get; set; }\n\nArtifact Registry repository, in the form\n\"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\"\n\nFiles in the workspace matching any path pattern will be uploaded to\nArtifact Registry with this location as a prefix."]]