diff --git a/.gitignore b/.gitignore index 074ef42..c2134aa 100644 --- a/.gitignore +++ b/.gitignore @@ -234,5 +234,3 @@ dev/ # pytest cache .pytest_cache/ pytestdebug.log - -*/_version.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 2581d13..1e1e633 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ We [keep a changelog.](http://keepachangelog.com/) ## [Unreleased] +## [1.5.1] - 2025-07-14 + +### Removed + +- Remove `*/_version.py` from `.gitignore` + +### Changed + +- Improve a conda recipe + +### Pull Requests Merged + +- [PR_124](https://github.com/mailjet/mailjet-apiv3-python/pull/124) - Release 1.5.1 + ## [1.5.0] - 2025-07-11 ### Added @@ -175,4 +189,5 @@ We [keep a changelog.](http://keepachangelog.com/) [1.4.0]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.4.0 [1.5.0]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.5.0 -[unreleased]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.5.0...HEAD +[1.5.1]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.5.1 +[unreleased]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.5.1...HEAD diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 677b1f4..e63f41e 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -41,6 +41,7 @@ test: - samples source_files: - tests/test_client.py + - tests/test_version.py - test.py - tests/doc_tests/files/data.csv requires: @@ -50,6 +51,7 @@ test: - pip check # TODO: Add environment variables for tests - pytest tests/test_client.py -vv + - pytest tests/test_version.py -vv - pytest test.py -vv about: diff --git a/mailjet_rest/_version.py b/mailjet_rest/_version.py new file mode 100644 index 0000000..0f228f2 --- /dev/null +++ b/mailjet_rest/_version.py @@ -0,0 +1 @@ +__version__ = "1.5.1" diff --git a/test.py b/test.py index 98779ec..7e29aa0 100644 --- a/test.py +++ b/test.py @@ -215,7 +215,7 @@ def test_user_agent(self) -> None: None """ self.client = Client(auth=self.auth, version="v3.1") - self.assertEqual(self.client.config.user_agent, "mailjet-apiv3-python/v1.5.0") + self.assertEqual(self.client.config.user_agent, "mailjet-apiv3-python/v1.5.1") class TestCsvImport(unittest.TestCase):