Skip to main content

PyMoX - GC7

Trousse à outils utiles pour devs en PyMoX


Rapide mémo

py -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt

py -m build
twine check dist/*  --verbose
twine upload dist/* --verbose

git log --oneline

semantic-release version
semantic-release version --print

semantic-release publish

semantic-release --noop version
Cela te dira si une version serait générée.

semantic-release version --commit --tag --no-push

Cela va :
Lire les commits
Calculer la prochaine version (ex: 0.2.0)
Modifier __version__ dans gc7/__init__.py
Créer un commit et un tag localement

Remove-Item -Recurse -Force dist, src/gc7/gc7.egg-info

git commit --allow-empty -m "feat: add dummy feature for version bump"
git commit --allow-empty -m "fix: déclenchement de la release 1.0.1" 
git push origin main

voir conventional commits: https://www.conventionalcommits.org/en/v1.0.0/

En cas de volonté de revenir sur une version précédente (Problème avec PyPI: Interdit de reculer):
git revert <hash du commit> (pour ramener la main du dépôt GH)
dans le __ini__.py, mettre : __version__='x.y.z' (> au dernier de PyPI)
refaire le build + renvoi:
py -m build    
twine upload dist/*

Désinstaller tous les packages de l'env global :
pip freeze | ForEach-Object { pip uninstall -y $_ }

Metadata

Release files for gc7 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gc7 1.5.3
File Size Uploaded
gc7-1.5.3.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gc7 1.5.3
File Interpreter ABI Platform
gc7-1.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / gc7-1.5.3.tar.gz

Download URL gc7-1.5.3.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
35da6b287790b55c4589bed73617b50177ad245d077976530ef276ac3da1ddcf
BLAKE2b-256 checksum
How to use checksums
636a61a61c4d706a077b2e14165be02c570e9980d20e3d7b6b3adfa8a3a1e494
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / gc7-1.5.3-py3-none-any.whl

Download URL gc7-1.5.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c08aa161cec3cdb9ad7335cae5c55c392d3b3ef0344c903095b68f81436cd80
BLAKE2b-256 checksum
How to use checksums
3a971fc282da611ccb58cce3618d9700badf243aee3f23c61b8f092a08c4dc20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page