Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.
This repository was archived by the owner on May 22, 2026. It is now read-only.

Have a packaging template library in autorest #1053

Description

@lmazuel

Today, we have --basic-setup-py, and we want to be able to do more than that, with Jinja templating support. For instance, I want to integrate this in autorest:

https://github.com/Azure/azure-sdk-for-python/tree/main/tools/azure-sdk-tools/packaging_tools/templates

Autorest should include those basic templates:

  • basic-setup-py
  • azure-sdk-mgmt
  • azure-sdk-dataplane

We could pass too a folder that contains a tempalte, following the basic structure and defining the keyword you are allowed to use.

Example of calls:
autorest --packaging-template=basic-setup-py
autorest --packaging-template=azure-sdk-mgmt
autorest --packaging-template=c:\git\azure-sdk-for-python\tools/azure-sdk-tools/packaging_tools/templates

For the later, we need to support some predefined variable like "package_pprint_name" where you can write in the Readme:

packaging-configuration:
    package_pprint_name: Azure Mgmt Compute
    package_name: azure-mgmt-compute

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions