Skip to main content

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

wedge_lib-3.1.19.tar.gz (520.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wedge_lib-3.1.19-py3-none-any.whl (603.0 kB view details)

Uploaded Python 3

File details

Details for the file wedge_lib-3.1.19.tar.gz.

File metadata

  • Download URL: wedge_lib-3.1.19.tar.gz
  • Upload date:
  • Size: 520.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for wedge_lib-3.1.19.tar.gz
Algorithm Hash digest
SHA256 b109d73fd9ffa7e7f23b1a9b0bafc3b2f0fffbf7f9eb180a56898c39b03168db
MD5 01d15861ccdc03239e11edcf12f4c7c9
BLAKE2b-256 db7514bb50493c846c6c97696e30f8707e4ef3166ffc89a0a27e9202ee752fcb

See more details on using hashes here.

File details

Details for the file wedge_lib-3.1.19-py3-none-any.whl.

File metadata

  • Download URL: wedge_lib-3.1.19-py3-none-any.whl
  • Upload date:
  • Size: 603.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for wedge_lib-3.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 798c60cad52f169eb00b3efb71f0dc1bf7d12880371c05d15161aec163e00d5a
MD5 91e229b43f134ea1de134d711e5b2502
BLAKE2b-256 d74216dc1dce48314d87dd08610e77262a3155f9d87fc1cc8c4464fafce6b9b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page