diff --git a/CHANGELOG.md b/CHANGELOG.md index ee9b0cb..de174c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.9.0 - Support `patch` methods +- Fix `config.py` file being overwritten when generating new clients ## 0.8.3 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 593763a..c0c395c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -2,3 +2,4 @@ - [Paul Hallett](https://github.com/phalt) - [Matthew Knight](https://github.com/matthewknight) +- [Pradish Bijukchhe](https://github.com/pradishb) diff --git a/clientele/generators/standard/generator.py b/clientele/generators/standard/generator.py index 387b27d..1ff91dc 100644 --- a/clientele/generators/standard/generator.py +++ b/clientele/generators/standard/generator.py @@ -72,7 +72,7 @@ def generate_templates_files(self): write_func, ) in self.file_name_writer_tuple: if exists(f"{self.output_dir}/{client_file}"): - if client_file == "config.py": # do not replace config.py if exists + if client_file == "config.py": # do not replace config.py if exists continue remove(f"{self.output_dir}/{client_file}") template = writer.templates.get_template(client_template_file) diff --git a/clientele/settings.py b/clientele/settings.py index 9a6a9b4..c9046c9 100644 --- a/clientele/settings.py +++ b/clientele/settings.py @@ -1,6 +1,6 @@ import platform -VERSION = "0.8.3" +VERSION = "0.9.0" def split_ver(): diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 9757b60..de174c3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,10 @@ # Change log +## 0.9.0 + +- Support `patch` methods +- Fix `config.py` file being overwritten when generating new clients + ## 0.8.3 - Fix bug with headers assignment diff --git a/docs/install.md b/docs/install.md index e1d5ae7..7120e06 100644 --- a/docs/install.md +++ b/docs/install.md @@ -10,5 +10,5 @@ Once installed you can run `clientele version` to make sure you have the latest ```sh > clientele version -clientele 0.8.3 +clientele 0.9.0 ``` diff --git a/docs/usage.md b/docs/usage.md index 27a7275..dd9291c 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -102,5 +102,5 @@ Print the current version of Clientele: ```sh > clientele version -Clientele 0.8.3 +Clientele 0.9.0 ``` diff --git a/pyproject.toml b/pyproject.toml index 1de7230..f02ad14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "clientele" -version = "0.8.3" +version = "0.9.0" description = "Generate loveable Python HTTP API Clients" authors = ["Paul Hallett "] license = "MIT" diff --git a/tests/async_test_client/MANIFEST.md b/tests/async_test_client/MANIFEST.md index 18fcaa0..f2c12d5 100644 --- a/tests/async_test_client/MANIFEST.md +++ b/tests/async_test_client/MANIFEST.md @@ -9,7 +9,7 @@ pipx install clientele API VERSION: 0.1.0 OPENAPI VERSION: 3.0.2 -CLIENTELE VERSION: 0.8.3 +CLIENTELE VERSION: 0.9.0 Regenerate using this command: diff --git a/tests/test_client/MANIFEST.md b/tests/test_client/MANIFEST.md index 80dfbff..a2199fe 100644 --- a/tests/test_client/MANIFEST.md +++ b/tests/test_client/MANIFEST.md @@ -9,7 +9,7 @@ pipx install clientele API VERSION: 0.1.0 OPENAPI VERSION: 3.0.2 -CLIENTELE VERSION: 0.8.3 +CLIENTELE VERSION: 0.9.0 Regenerate using this command: