Skip to content

Commit b8d0aba

Browse files
authored
Merge branch 'main' into feature/schema-datatypes
2 parents 88b4b68 + 75c69f0 commit b8d0aba

File tree

9 files changed

+98
-64
lines changed

9 files changed

+98
-64
lines changed

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
":semanticCommitTypeAll(chore)"
5+
]
6+
}

end_to_end_tests/golden-record/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ Things to know:
4747
1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful.
4848
1. `asyncio`: Like `sync` but the async instead of blocking
4949
1. `asyncio_detailed`: Like `sync_detailed` by async instead of blocking
50-
50+
5151
1. All path/query params, and bodies become method arguments.
5252
1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
53-
1. Any endpoint which did not have a tag will be in `my_test_api_client.api.default`
53+
1. Any endpoint which did not have a tag will be in `my_test_api_client.api.default`
5454

5555
## Building / publishing this Client
5656
This project uses [Poetry](https://python-poetry.org/) to manage dependencies and packaging. Here are the basics:

end_to_end_tests/golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.6"
17-
httpx = ">=0.15.4,<0.19.0"
17+
httpx = ">=0.15.4,<0.20.0"
1818
attrs = ">=20.1.0,<22.0.0"
1919
python-dateutil = "^2.8.0"
2020

openapi_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _build_metadata(self) -> None:
194194
git_ignore_path.write_text(git_ignore_template.render(), encoding=self.file_encoding)
195195

196196
def _build_pyproject_toml(self, *, use_poetry: bool) -> None:
197-
template = "pyproject.toml.jinja" if use_poetry else "pyproject_no_poetry.toml.jinja"
197+
template = "pyproject.toml" if use_poetry else "pyproject_no_poetry.toml.jinja"
198198
pyproject_template = self.env.get_template(template)
199199
pyproject_path = self.project_dir / "pyproject.toml"
200200
pyproject_path.write_text(

openapi_python_client/templates/README.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ Things to know:
4747
1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful.
4848
1. `asyncio`: Like `sync` but the async instead of blocking
4949
1. `asyncio_detailed`: Like `sync_detailed` by async instead of blocking
50-
50+
5151
1. All path/query params, and bodies become method arguments.
5252
1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
53-
1. Any endpoint which did not have a tag will be in `{{ package_name }}.api.default`
53+
1. Any endpoint which did not have a tag will be in `{{ package_name }}.api.default`
5454

5555
## Building / publishing this Client
5656
This project uses [Poetry](https://python-poetry.org/) to manage dependencies and packaging. Here are the basics:

openapi_python_client/templates/pyproject.toml.jinja renamed to openapi_python_client/templates/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.6"
17-
httpx = ">=0.15.4,<0.19.0"
17+
httpx = ">=0.15.4,<0.20.0"
1818
attrs = ">=20.1.0,<22.0.0"
1919
python-dateutil = "^2.8.0"
2020

poetry.lock

Lines changed: 82 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ shellingham = "^1.3.2"
2727
black = "*"
2828
isort = "^5.0.5"
2929
pyyaml = "^5.3.1"
30-
importlib_metadata = {version = "^2.0.0", python = "<3.8"}
30+
importlib_metadata = {version = ">2,<5", python = "<3.8"}
3131
pydantic = "^1.6.1"
3232
attrs = "^21.0.0"
3333
python-dateutil = "^2.8.1"
34-
httpx = ">=0.15.4,<0.19.0"
34+
httpx = ">=0.15.4,<0.20.0"
3535
autoflake = "^1.4"
3636
typing-extensions = { version = "*", python = "<3.8" }
3737

tests/test___init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def test__build_pyproject_toml(self, mocker, use_poetry):
465465

466466
pyproject_template = mocker.MagicMock(autospec=jinja2.Template)
467467
project.env = mocker.MagicMock(autospec=jinja2.Environment)
468-
template_path = "pyproject.toml.jinja" if use_poetry else "pyproject_no_poetry.toml.jinja"
468+
template_path = "pyproject.toml" if use_poetry else "pyproject_no_poetry.toml.jinja"
469469
templates = {
470470
template_path: pyproject_template,
471471
}

0 commit comments

Comments
 (0)