mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 12:43:39 +08:00

* Generate workflow files with a Jinja template Fixes #2686 * Remove sudo from allowlist_externals * Update workflows * Add condition to skip generate-workflows * Update workflows * Update .github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2 Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> * Update .github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> * Update .github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2 Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> * Update .github/workflows/generate_workflows_lib/src/generate_workflows_lib/contrib.yml.j2 Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> * Update workflows * Update workflows --------- Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
16 lines
521 B
Python
16 lines
521 B
Python
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|
from pathlib import Path
|
|
|
|
|
|
class CustomBuildHook(BuildHookInterface):
|
|
|
|
def initialize(self, version, build_data):
|
|
|
|
with open(
|
|
Path(__file__).parent.parent.parent.parent.joinpath("tox.ini")
|
|
) as tox_ini_file_0:
|
|
with open(
|
|
Path(__file__).parent.joinpath("src/generate_workflows_lib/tox.ini"), "w"
|
|
) as tox_ini_file_1:
|
|
tox_ini_file_1.write(tox_ini_file_0.read())
|