Wedge library for django application
Project description
Wedge Library
Démarrage rapide
$ pip install wedge-lib
Configuration pour certains services
MailService
TBD
GoogleMapService
TBD
YousignService
TBD
Development
Installation
$ pipenv sync --dev
Update dependencies
$ pipenv update --dev
Run test
$ pytest
Des variables d'environnement doivent être configurées sur Pycharm:
- Cliquez sur Edit configurations en haut à droite de votre éditeur
- Edit configurations templates...
- Python tests - pytest
- Cliquez sur environnement variables et ajouter les api key correspondant à :
- GOOGLE_MAP_SECRET
- GOOGLE_MAP_API_KEY
- Les valeurs de ces variables peuvent être trouvées sur les secrets du repo ou à Eloïse
Before commit
Pour éviter de faire échouer le CI, lancer la commande:
$ ./before_commit.zsh
Publier manuellement sur PyPI
Après avoir committer et pousser:
- tagguer une version dans GitHub.
- mettre à jour la version dans le fichier
setup.cfg
avec le tag créé. - créer le package
$ rm -rf build dist wedge_lib.egg-info $ WEDGELIB_VERSION=<version> python setup.py sdist bdist_wheel
- mettre à jour sur TestPypi
$ twine upload --repository testpypi dist/*
- Si tout est ok, mettre à jour sur Pypi
$ twine upload dist/*
Utiliser W en mode dev depuis un autre projet (ex: csback)
Créer un lien symbolique vers le w qui va être modifié:
rm -rf <External Libraries>/site-packages/w
ln -s <Absolute path du projet w local>/w <External Libraries>/site-packages/.
Supprimer le lien symbolique et utiliser la version officielle de w :
unlink <External Libraries>/site-packages/w
pipenv uninstall wedge-lib && pipenv install wedge-lib
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-1.6.4.tar.gz
(73.6 kB
view hashes)
Built Distribution
wedge_lib-1.6.4-py3-none-any.whl
(111.2 kB
view hashes)
Close
Hashes for wedge_lib-1.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 933c0c1922c2f324dce98e607ab560c2d05fb5b33769158e537cda160a212740 |
|
MD5 | eb04621ce4d38764c2b2c30b4bf81ff9 |
|
BLAKE2b-256 | 4fc8b4e28f8ac4de1154b818541bcc9a72c614f09b7e9e0e4d8ee8b36ce8a4f9 |