Wedge library for django application
Project description
Wedge Library
Démarrage rapide
$ pip install wedge-lib
Mode maintenance
Middleware
MIDDLEWARE=[
"w.drf.middlewares.maintenance_mode_middleware.MaintenanceModeMiddleware",
],
Command
Ajouter la commande maintenance_mode :
from w.django.commands.abstract_maintenance_mode_command import (
AbstractMaintenanceModeCommand,
)
class Command(AbstractMaintenanceModeCommand):
pass
Utilisation :
$ python manage.py maintenance_mode <on/off>
Configuration pour certains services
MailService
TBD
GoogleMapService
TBD
YousignService
TBD
Development
Installation
poetry install --sync
poetry shell
Run test
$ pytest
Before commit
Pour éviter de faire échouer le CI, lancer la commande:
$ ./before_commit.zsh
Publier manuellement sur PyPI
Pour cela, il faut créer une nouvelle release sur GitHub avec le tag correspondant à la version de la librairie c'est à dire la version renseignée dans pyproject.toml.
- Aller sur la page GitHub du repository : https://github.com/Wedge-Digital/w
- Cliquer sur
Tags - Cliquer sur
Releases - Cliquer sur
Draft a new release - Dans Choose a tag saisir la version de la raison = version renseignée dans
pyproject.toml - Cliquer sur
Generate release notes - Cliquer sur
Publish release
Le CI s'occupera ensuite de publier la librairie sur PyPi si les tests ne sont pas KO.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wedge_lib-3.1.24.tar.gz.
File metadata
- Download URL: wedge_lib-3.1.24.tar.gz
- Upload date:
- Size: 568.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3611b9b1e9bd7b8229c9e5b031d0442e325b95862544a7261c8b21ab3d8d1b57
|
|
| MD5 |
5e5189b63fd8734d282339eb5b093f0b
|
|
| BLAKE2b-256 |
b76ff2dab68c20ab50076190de96e4f991d141998f7f9f8ec0d8030c2a27fe56
|
File details
Details for the file wedge_lib-3.1.24-py3-none-any.whl.
File metadata
- Download URL: wedge_lib-3.1.24-py3-none-any.whl
- Upload date:
- Size: 652.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
659daea9fd81430abb2431f0f3b1ed9055c62f2fb890665d558b9f8a3ebddd12
|
|
| MD5 |
8f3e35db394977f550fece00359835d0
|
|
| BLAKE2b-256 |
079faa795b29ac18b945f73b7d0c1ff5da1a06555a389a5009c7b1b3d7b8255f
|