Skip to content

Commit b183362

Browse files
authored
docs: Update README (#114)
1 parent ef4f5a0 commit b183362

File tree

5 files changed

+66
-19
lines changed

5 files changed

+66
-19
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ repos:
6666
args: [--write]
6767

6868
- repo: https://github.com/python-jsonschema/check-jsonschema
69-
rev: 0.30.0
69+
rev: 0.31.0
7070
hooks:
7171
- id: check-github-workflows
7272

@@ -103,21 +103,21 @@ repos:
103103

104104

105105
- repo: https://github.com/PyCQA/pylint
106-
rev: v3.3.2
106+
rev: v3.3.3
107107
hooks:
108108
- id: pylint
109109
args:
110110
- --exit-zero
111111

112112
- repo: https://github.com/asottile/pyupgrade
113-
rev: v3.19.0
113+
rev: v3.19.1
114114
hooks:
115115
- id: pyupgrade
116116
args: [--py38-plus, --keep-runtime-typing]
117117

118118
- repo: https://github.com/charliermarsh/ruff-pre-commit
119119
# Ruff version.
120-
rev: v0.8.2
120+
rev: v0.9.2
121121
hooks:
122122
# Run the linter.
123123
- id: ruff
@@ -131,7 +131,7 @@ repos:
131131
- id: refurb
132132

133133
- repo: https://github.com/pre-commit/mirrors-mypy
134-
rev: v1.13.0
134+
rev: v1.14.1
135135
hooks:
136136
- id: mypy
137137
args:
@@ -141,12 +141,12 @@ repos:
141141
exclude: ^samples/
142142

143143
- repo: https://github.com/RobertCraigie/pyright-python
144-
rev: v1.1.390
144+
rev: v1.1.392.post0
145145
hooks:
146146
- id: pyright
147147

148148
- repo: https://github.com/PyCQA/bandit
149-
rev: 1.8.0
149+
rev: 1.8.2
150150
hooks:
151151
- id: bandit
152152
args: ["-c", "pyproject.toml", "-r", "."]
@@ -155,7 +155,7 @@ repos:
155155
additional_dependencies: [".[toml]"]
156156

157157
- repo: https://github.com/crate-ci/typos
158-
rev: typos-dict-v0.11.37
158+
rev: dictgen-v0.3.1
159159
hooks:
160160
- id: typos
161161

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ environment: ## handles environment creation
8787
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
8888
conda run --name $(CONDA_ENV_NAME) pip install .
8989

90+
environment-dev: ## Handles environment creation
91+
conda env create -n $(CONDA_ENV_NAME)-dev -y --file environment-dev.yml
92+
conda run --name $(CONDA_ENV_NAME)-dev pip install -e .
93+
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)-dev
94+
9095
install: clean ## install the package to the active Python's site-packages
9196
pip install .
9297

@@ -100,12 +105,12 @@ dist: clean ## builds source and wheel package
100105
dev: clean ## install the package's development version to a fresh environment
101106
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
102107
conda run --name $(CONDA_ENV_NAME) pip install -e .
103-
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME) && pre-commit install
108+
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)
104109

105110
dev-full: clean ## install the package's development version to a fresh environment
106-
conda env create -f environment-dev.yaml --name $(CONDA_ENV_NAME) --yes
107-
conda run --name $(CONDA_ENV_NAME) pip install -e .
108-
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME) && pre-commit install
111+
conda env create -f environment-dev.yaml --name $(CONDA_ENV_NAME)-dev --yes
112+
conda run --name $(CONDA_ENV_NAME)-dev pip install -e .
113+
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME)-dev && pre-commit install
109114

110115

111116
pre-commit: ## runs pre-commit against files. NOTE: older files are disabled in the pre-commit config.

README.md

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Check out all the resources and Python code examples in the official [Mailjet Do
2020
## Table of contents
2121

2222
- [Compatibility](#compatibility)
23+
- [Requirements](#requirements)
24+
- [Build backend](#build-backend)
25+
- [Runtime](#runtime)
2326
- [Installation](#installation)
2427
- [Authentication](#authentication)
2528
- [Make your first call](#make-your-first-call)
@@ -42,18 +45,57 @@ Check out all the resources and Python code examples in the official [Mailjet Do
4245

4346
## Compatibility
4447

45-
This library officially supports the following Python versions:
48+
This library `mailjet_rest` officially supports the following Python versions:
4649

47-
- v2.7
48-
- v3.5
49-
- v3.6+
50+
- v3.9+
51+
52+
It's tested up to 3.12 (including).
53+
54+
## Requirements
55+
56+
### Build backend
57+
58+
To build the `mailjet_rest` package you need `setuptools` (as a build backend) and `wheel`.
59+
60+
### Runtime
61+
62+
At runtime the package requires only `requests`.
5063

5164
## Installation
5265

5366
Use the below code to install the wrapper:
5467

5568
``` bash
56-
(sudo) pip install mailjet_rest
69+
git clone https://github.com/mailjet/mailjet-apiv3-python
70+
cd mailjet-apiv3-python
71+
```
72+
73+
``` bash
74+
pip install .
75+
```
76+
77+
or using `conda` and `make` on Unix platforms:
78+
79+
``` bash
80+
make install
81+
```
82+
83+
### For development
84+
85+
on Linux or macOS:
86+
87+
- A basic environment with a minimum number of dependencies:
88+
89+
``` bash
90+
make dev
91+
conda activate mailjet
92+
```
93+
94+
- A full dev environment:
95+
96+
``` bash
97+
make dev-full
98+
conda activate mailjet-dev
5799
```
58100

59101
## Authentication

environment-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: mailjet_dev
2+
name: mailjet-dev
33
channels:
44
- defaults
55
dependencies:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mailjet_rest = ["py.typed", "*.pyi"]
1010

1111
[project]
1212
name = "mailjet_rest"
13-
version = "1.3.5"
13+
version = "1.4.0rc1"
1414
description = "Mailjet V3 API wrapper"
1515
authors = [
1616
{ name = "starenka", email = "starenka0@gmail.com" },

0 commit comments

Comments
 (0)