diff --git a/packages/type-safe-api/src/project/codegen/runtime/generated-python-runtime-project.ts b/packages/type-safe-api/src/project/codegen/runtime/generated-python-runtime-project.ts index 45d842d52..01fa5556f 100644 --- a/packages/type-safe-api/src/project/codegen/runtime/generated-python-runtime-project.ts +++ b/packages/type-safe-api/src/project/codegen/runtime/generated-python-runtime-project.ts @@ -45,6 +45,7 @@ export class GeneratedPythonRuntimeProject extends PythonProject { "test-requirements.txt", "setup.py", "setup.cfg", + "pyproject.toml", ]; /** diff --git a/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap b/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap index f259188ce..f0a4b6955 100644 --- a/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap +++ b/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap @@ -1809,6 +1809,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -5899,6 +5900,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -9021,6 +9023,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -13016,6 +13019,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -16440,6 +16444,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -20722,6 +20727,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -23718,6 +23724,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -31123,6 +31130,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -35306,6 +35314,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -50478,6 +50487,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -54566,6 +54576,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -58083,6 +58094,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", @@ -62458,6 +62470,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", "packages/api/generated/runtime/python/.projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".", diff --git a/packages/type-safe-api/test/project/codegen/types/__snapshots__/generated-python-runtime-project.test.ts.snap b/packages/type-safe-api/test/project/codegen/types/__snapshots__/generated-python-runtime-project.test.ts.snap index 225726333..e8d708284 100644 --- a/packages/type-safe-api/test/project/codegen/types/__snapshots__/generated-python-runtime-project.test.ts.snap +++ b/packages/type-safe-api/test/project/codegen/types/__snapshots__/generated-python-runtime-project.test.ts.snap @@ -151,6 +151,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", ".projen/deps.json": { "//": "~~ Generated by projen. To modify, edit .projenrc.py and run "npx projen".", diff --git a/packages/type-safe-api/test/scripts/generators/__snapshots__/python.test.ts.snap b/packages/type-safe-api/test/scripts/generators/__snapshots__/python.test.ts.snap index 3b5db6a5a..eeb409f3e 100644 --- a/packages/type-safe-api/test/scripts/generators/__snapshots__/python.test.ts.snap +++ b/packages/type-safe-api/test/scripts/generators/__snapshots__/python.test.ts.snap @@ -121,12 +121,12 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", ".openapi-generator/FILES": "README.md docs/DefaultApi.md docs/Tag1Api.md docs/Tag2Api.md -pyproject.toml test_project/__init__.py test_project/__interceptors.py test_project/api/__init__.py @@ -734,36 +734,6 @@ No authorization required [repositories.testpypi] url = "https://test.pypi.org/legacy/" -", - "pyproject.toml": "[tool.poetry] -name = "test_project" -version = "1.0.0" -description = "Multiple Tags Test" -authors = ["OpenAPI Generator Community "] -license = "NoLicense" -readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" -keywords = ["OpenAPI", "OpenAPI-Generator", "Multiple Tags Test"] - -[tool.poetry.dependencies] -python = "^3.7" - -urllib3 = ">= 1.25.3" -python-dateutil = ">=2.8.2" -pydantic = "^1.10.5, <2" -aenum = ">=3.1.11" - -[tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" - -[build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" - -[tool.pylint.'MESSAGES CONTROL'] -extension-pkg-whitelist = "pydantic" ", "test_project/__init__.py": "# coding: utf-8 @@ -4164,6 +4134,7 @@ requirements.txt test-requirements.txt setup.py setup.cfg +pyproject.toml ", ".openapi-generator/FILES": "README.md docs/ApiError.md @@ -4173,7 +4144,6 @@ docs/MapResponseMapPropertyValue.md docs/TestRequest.md docs/TestResponse.md docs/TestResponseMessagesInner.md -pyproject.toml test_project/__init__.py test_project/__interceptors.py test_project/api/__init__.py @@ -5174,36 +5144,6 @@ test_response_messages_inner_form_dict = test_response_messages_inner.from_dict( [repositories.testpypi] url = "https://test.pypi.org/legacy/" -", - "pyproject.toml": "[tool.poetry] -name = "test_project" -version = "1.0.0" -description = "Example API" -authors = ["OpenAPI Generator Community "] -license = "NoLicense" -readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" -keywords = ["OpenAPI", "OpenAPI-Generator", "Example API"] - -[tool.poetry.dependencies] -python = "^3.7" - -urllib3 = ">= 1.25.3" -python-dateutil = ">=2.8.2" -pydantic = "^1.10.5, <2" -aenum = ">=3.1.11" - -[tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" - -[build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" - -[tool.pylint.'MESSAGES CONTROL'] -extension-pkg-whitelist = "pydantic" ", "test_project/__init__.py": "# coding: utf-8