Transition to Tox (#1617)

diff --git a/Earthfile b/Earthfile
index 3d9deb0..df820ed 100644
--- a/Earthfile
+++ b/Earthfile
@@ -1,28 +1,5 @@
 VERSION --use-copy-link --try 0.8
 
-lint:
-  BUILD +lint.ansible-lint
-  BUILD +lint.markdownlint
-
-lint.markdownlint:
-  FROM davidanson/markdownlint-cli2
-  COPY --dir docs/ .markdownlint.yaml .markdownlint-cli2.jsonc /src
-  WORKDIR /src
-  TRY
-    RUN markdownlint-cli2 **
-  FINALLY
-    SAVE ARTIFACT /src/junit.xml AS LOCAL junit.xml
-  END
-
-lint.ansible-lint:
-  FROM registry.gitlab.com/pipeline-components/ansible-lint:latest
-  COPY --dir meta/ molecule/ playbooks/ plugins/ roles/ tests/ .ansible-lint CHANGELOG.md galaxy.yml /code
-  TRY
-    RUN ansible-lint -v --show-relpath -f pep8 --nocolor | ansible-lint-junit -o ansible-lint.xml
-  FINALLY
-    SAVE ARTIFACT ansible-lint.xml AS LOCAL ansible-lint.xml
-  END
-
 unit.go:
   FROM golang:1.21
   RUN go install github.com/jstemmer/go-junit-report/v2@latest
@@ -36,41 +13,17 @@
     SAVE ARTIFACT /src/junit-go.xml AS LOCAL junit-go.xml
   END
 
-builder:
+build.venv.runtime:
   FROM ubuntu:jammy
-  RUN apt-get update -qq
+  RUN \
+    apt-get update -qq
   RUN \
     apt-get install -qq -y --no-install-recommends \
       build-essential git python3-dev python3-pip python3-venv
-  ARG POETRY_VERSION=1.4.2
-  RUN pip3 install --no-cache-dir poetry==${POETRY_VERSION}
-
-build.collection:
-  FROM registry.gitlab.com/pipeline-components/ansible-lint:latest
-  COPY . /src
-  RUN ansible-galaxy collection build /src
-  SAVE ARTIFACT /code/*.tar.gz AS LOCAL dist/
-
-build.wheels:
-  FROM +builder
-  COPY pyproject.toml poetry.lock ./
-  ARG --required only
-  RUN poetry export --only=${only} -f requirements.txt --without-hashes > requirements.txt
-  RUN pip wheel -r requirements.txt --wheel-dir=/wheels
-  SAVE ARTIFACT requirements.txt
-  SAVE ARTIFACT /wheels
-  SAVE IMAGE --cache-hint
-
-build.venv:
-  ARG --required only
-  FROM +build.wheels --only ${only}
+  COPY requirements.txt ./
   RUN python3 -m venv /venv
   ENV PATH=/venv/bin:$PATH
   RUN pip install -r requirements.txt
-  SAVE IMAGE --cache-hint
-
-build.venv.runtime:
-  FROM +build.venv --only main
   SAVE ARTIFACT /venv
 
 build.collections:
@@ -100,19 +53,3 @@
   ARG tag=latest
   ARG REGISTRY=ghcr.io/vexxhost/atmosphere
   SAVE IMAGE --push ${REGISTRY}:${tag}
-
-gh:
-  FROM alpine:3
-  RUN apk add --no-cache github-cli
-
-trigger-image-sync:
-  FROM +gh
-  ARG --required project
-  RUN --secret GITHUB_TOKEN gh workflow run --repo vexxhost/docker-openstack-${project} sync.yml
-
-image-sync:
-  FROM golang:1.19
-  ARG --required project
-  WORKDIR /src
-  COPY . /src
-  RUN --secret GITHUB_TOKEN go run ./cmd/atmosphere-ci image repo sync ${project}