Skip to content

Commit

Permalink
fix(python): update template for Taskgraph 7+
Browse files Browse the repository at this point in the history
The template was still setting things up with the old file structure.
  • Loading branch information
ahal committed Sep 3, 2024
1 parent 032c45b commit afefc07
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 15 deletions.
6 changes: 0 additions & 6 deletions reps/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ def pre_commit_autoupdate(items: CookiecutterContext):
run(["pre-commit", "autoupdate"])


@hook("post-gen-py")
@hook("post-gen-base")
def lock_taskgraph_requirements(items: CookiecutterContext):
run(["pip-compile", "requirements.in", "--generate-hashes"], cwd="taskcluster")


@hook("post-gen-base")
def taskgraph_init(items: CookiecutterContext):
run(["taskgraph", "init"])
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ tasks:
features:
taskclusterProxy: true

image: mozillareleases/taskgraph:decision-f19bfa3ae9dbc19190149445bfc38ad966b713336e44342c7643b3f7f1e0b023@sha256:ddcc7348db272885e8ea32825f698bfafa4727401099531cd8239d3d458b39aa
image: mozillareleases/taskgraph:decision-latest
maxRunTime: 1800

command:
Expand Down

This file was deleted.

12 changes: 5 additions & 7 deletions test/test_template_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ def test_generated_files(reps_new):
"pyproject.toml",
"poetry.lock",
f"src/{name}/__init__.py",
"taskcluster/ci/codecov/kind.yml",
"taskcluster/ci/config.yml",
"taskcluster/ci/docker-image/kind.yml",
"taskcluster/ci/fetch/kind.yml",
"taskcluster/ci/test/kind.yml",
"taskcluster/config.yml",
"taskcluster/docker/fetch/Dockerfile",
"taskcluster/docker/python/Dockerfile",
"taskcluster/requirements.in",
"taskcluster/requirements.txt",
"taskcluster/kinds/codecov/kind.yml",
"taskcluster/kinds/docker-image/kind.yml",
"taskcluster/kinds/fetch/kind.yml",
"taskcluster/kinds/test/kind.yml",
"taskcluster/scripts/codecov-upload.py",
"taskcluster/scripts/pyenv-setup",
"taskcluster/scripts/poetry-setup",
Expand Down

0 comments on commit afefc07

Please sign in to comment.