diff --git a/.github/workflows/update_openapi_json.yml b/.github/workflows/update_openapi_json.yml index a0de4e7..6b246c3 100644 --- a/.github/workflows/update_openapi_json.yml +++ b/.github/workflows/update_openapi_json.yml @@ -16,7 +16,7 @@ jobs: python -m pip install --upgrade pip python -m pip install poetry poetry install - python convert_to_json.py ../openapi.yaml ../openapi.json + poetry run convert_to_json ../openapi.yaml ../openapi.json - name: Commit result uses: stefanzweifel/git-auto-commit-action@v5 diff --git a/scripts/poetry.lock b/python/poetry.lock similarity index 100% rename from scripts/poetry.lock rename to python/poetry.lock diff --git a/scripts/pyproject.toml b/python/pyproject.toml similarity index 62% rename from scripts/pyproject.toml rename to python/pyproject.toml index db6745e..8f42824 100644 --- a/scripts/pyproject.toml +++ b/python/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] -name = "deepl_openapi" +name = "scripts" +package-mode = false description = "DeepL OpenAPI specification and associated scripts" -version = "0.1.0" -authors = ["DeepL SE "] license = "MIT" -readme = "README.md" +[tool.poetry.scripts] +convert_to_json = "scripts.convert_to_json:main" [tool.poetry.dependencies] python = ">=3.7" diff --git a/scripts/convert_to_json.py b/python/scripts/convert_to_json.py similarity index 100% rename from scripts/convert_to_json.py rename to python/scripts/convert_to_json.py