Skip to content

Commit ef4831f

Browse files
committed
docs: Update README, CHANGELOG; fix Makefile, add .gitattributes
1 parent 9901162 commit ef4831f

File tree

4 files changed

+82
-22
lines changed

4 files changed

+82
-22
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Automatically detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Source files should have Unix line endings
5+
*.py text eol=lf
6+
*.md text eol=lf
7+
*.toml text eol=lf
8+
*.yaml text eol=lf
9+
*.yml text eol=lf
10+
11+
# Exclude some files from exporting
12+
.gitattributes export-ignore
13+
.gitignore export-ignore
14+
.github export-ignore

CHANGELOG.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
We [keep a changelog.](http://keepachangelog.com/)
44

5-
[Full Changelog](https://github.com/mailjet/mailjet-apiv3-python/compare/v1.3.2...HEAD)
5+
## [Unreleased]
66

7-
## Next release
7+
## [1.4.0] - 2025-XX-XX
88

9-
[Unreleased](https://github.com/mailjet/mailjet-apiv3-python/tree/HEAD)
9+
### Added
1010

11-
## Version 1.4.0 (2025-XX-XX) - Public Release
11+
- Enabled debug logging
12+
- Support for Python >=3.9,\<3.13
13+
- CI Automation
14+
- Type hinting
15+
- Docstrings
16+
- A conda recipe
1217

13-
### Tickets closed
18+
### Changed
1419

15-
- [DE-1038](https://mailgun.atlassian.net/browse/DE-1038) - Enable PEP 8, 257, 484
16-
- [DE-1381](https://mailgun.atlassian.net/browse/DE-1381) - Enable debug logging
17-
- [DE-1521](https://mailgun.atlassian.net/browse/DE-1521) - Improve CI Automation
20+
- Update README.md
1821

1922
### Pull Requests Merged
2023

@@ -124,3 +127,6 @@ We [keep a changelog.](http://keepachangelog.com/)
124127
[Full Changelog](https://github.com/mailjet/mailjet-apiv3-python/compare/19cf9a00a948e84de4842b51b0336e978f7a849f...v1.0.3)
125128

126129
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
130+
131+
[1.4.0]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.4.0
132+
[unreleased]: https://github.com/mailjet/mailjet-apiv3-python/releases/tag/v1.4.0...HEAD

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ environment: ## handles environment creation
9090
environment-dev: ## Handles environment creation
9191
conda env create -n $(CONDA_ENV_NAME)-dev -y --file environment-dev.yaml
9292
conda run --name $(CONDA_ENV_NAME)-dev pip install -e .
93-
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)-dev
9493

9594
install: clean ## install the package to the active Python's site-packages
9695
pip install .
@@ -105,14 +104,12 @@ dist: clean ## builds source and wheel package
105104
dev: clean ## install the package's development version to a fresh environment
106105
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
107106
conda run --name $(CONDA_ENV_NAME) pip install -e .
108-
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)
109107

110108
dev-full: clean ## install the package's development version to a fresh environment
111109
conda env create -f environment-dev.yaml --name $(CONDA_ENV_NAME)-dev --yes
112110
conda run --name $(CONDA_ENV_NAME)-dev pip install -e .
113111
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)-dev && pre-commit install
114112

115-
116113
pre-commit: ## runs pre-commit against files. NOTE: older files are disabled in the pre-commit config.
117114
pre-commit run --all-files
118115

README.md

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Official Mailjet Python Wrapper
44

55
[![Build Status](https://travis-ci.org/mailjet/mailjet-apiv3-python.svg?branch=master)](https://travis-ci.org/mailjet/mailjet-apiv3-python)
6-
![Current Version](https://img.shields.io/badge/version-1.3.2-green.svg)
6+
![Current Version](https://img.shields.io/badge/version-1.3.5-green.svg)
77

88
## Overview
99

@@ -15,16 +15,23 @@ Check out all the resources and Python code examples in the official [Mailjet Do
1515

1616
- [Compatibility](#compatibility)
1717
- [Requirements](#requirements)
18-
- [Build backend](#build-backend)
19-
- [Runtime](#runtime)
18+
- [Build backend dependencies](#build-backend-dependencies)
19+
- [Runtime dependnecies](#runtime-dependencies)
20+
- [Test dependencies](#test-dependencies)
2021
- [Installation](#installation)
22+
- [pip install](#pip-install)
23+
- [git clone & pip install locally](#git-clone--pip-install-locally)
24+
- [conda & make](#conda--make)
25+
- [For development](#for-development)
26+
- [Using conda](#using-conda)
2127
- [Authentication](#authentication)
2228
- [Make your first call](#make-your-first-call)
2329
- [Client / Call configuration specifics](#client--call-configuration-specifics)
2430
- [API versioning](#api-versioning)
2531
- [Base URL](#base-url)
2632
- [URL path](#url-path)
2733
- [Request examples](#request-examples)
34+
- [Full list of supported endpoints](#full-list-of-supported-endpoints)
2835
- [POST request](#post-request)
2936
- [Simple POST request](#simple-post-request)
3037
- [Using actions](#using-actions)
@@ -35,29 +42,46 @@ Check out all the resources and Python code examples in the official [Mailjet Do
3542
- [Retrieve a single object](#retrieve-a-single-object)
3643
- [PUT request](#put-request)
3744
- [DELETE request](#delete-request)
45+
- [License](#license)
3846
- [Contribute](#contribute)
47+
- [Contributors](#contributors)
3948

4049
## Compatibility
4150

4251
This library `mailjet_rest` officially supports the following Python versions:
4352

44-
- v3.9+
53+
- Python >=3.9,\<3.13
4554

46-
It's tested up to 3.12 (including).
55+
It's tested up to 3.13 (including).
4756

4857
## Requirements
4958

50-
### Build backend
59+
### Build backend dependencies
5160

52-
To build the `mailjet_rest` package you need `setuptools` (as a build backend) and `wheel`.
61+
To build the `mailjet_rest` package from the sources you need `setuptools` (as a build backend), `wheel`, and `setuptools-scm`.
5362

54-
### Runtime
63+
### Runtime dependencies
5564

56-
At runtime the package requires only `requests`.
65+
At runtime the package requires only `requests >=2.32.3`.
66+
67+
### Test dependencies
68+
69+
For running test you need `pytest >=7.0.0` at least.
70+
Make sure to provide the environment variables from [Authentication](#authentication).
5771

5872
## Installation
5973

60-
Use the below code to install the wrapper:
74+
### pip install
75+
76+
Use the below code to install the the wrapper:
77+
78+
```bash
79+
pip install mailjet-rest
80+
```
81+
82+
#### git clone & pip install locally
83+
84+
Use the below code to install the wrapper locally by cloning this repository:
6185

6286
```bash
6387
git clone https://github.com/mailjet/mailjet-apiv3-python
@@ -68,14 +92,18 @@ cd mailjet-apiv3-python
6892
pip install .
6993
```
7094

71-
or using `conda` and `make` on Unix platforms:
95+
#### conda & make
96+
97+
Use the below code to install it locally by `conda` and `make` on Unix platforms:
7298

7399
```bash
74100
make install
75101
```
76102

77103
### For development
78104

105+
#### Using conda
106+
79107
on Linux or macOS:
80108

81109
- A basic environment with a minimum number of dependencies:
@@ -191,6 +219,11 @@ print(result.json())
191219

192220
## Request examples
193221

222+
### Full list of supported endpoints
223+
224+
> [!IMPORTANT]\
225+
> This is a full list of supported endpoints this wrapper provides [samples](samples)
226+
194227
### POST request
195228

196229
#### Simple POST request
@@ -375,6 +408,10 @@ print(result.status_code)
375408
print(result.json())
376409
```
377410

411+
## License
412+
413+
[MIT](https://choosealicense.com/licenses/mit/)
414+
378415
## Contribute
379416

380417
Mailjet loves developers. You can be part of this project!
@@ -391,6 +428,12 @@ Feel free to ask anything, and contribute:
391428

392429
If you have suggestions on how to improve the guides, please submit an issue in our [Official API Documentation repo](https://github.com/mailjet/api-documentation).
393430

431+
## Contributors
432+
433+
- [@diskovod](https://github.com/diskovod)
434+
- [@DanyilNefodov](https://github.com/DanyilNefodov)
435+
- [@skupriienko](https://github.com/skupriienko)
436+
394437
[api_credential]: https://app.mailjet.com/account/apikeys
395438
[doc]: http://dev.mailjet.com/guides/?python#
396439
[mailjet]: (http://www.mailjet.com/)

0 commit comments

Comments
 (0)