budai4medtech / xfetus

xfetus -- A library for ultrasound fetal imaging synthesis using techniques from GANs, transformers, and diffusion models.
6 stars 1 forks source link

Workflow to build python package with pyproject.toml #22

Open mxochicale opened 1 year ago

mxochicale commented 1 year ago

I am raising this one to transition python setup.py to pyproject.toml

References

mxochicale commented 1 year ago
mxochicale commented 1 year ago
twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: mxochicale                 
Enter your password: 
Uploading medisynth-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 kB • 00:00 • ?
Uploading medisynth-0.0.1.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.4/11.4 kB • 00:00 • ?

View at:
https://pypi.org/project/medisynth/0.0.1/
mxochicale commented 1 year ago

Manual building debugging

python -m build
pip install -e .
twine check dist/*

upload

twine upload dist/*

https://pypi.org/project/medisynth/0.0.3/ https://pypi.org/project/medisynth/0.0.4/


todo: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

mxochicale commented 1 year ago

https://pypi.org/project/xfetus/0.0.5/

git checkout main git pull origin main git tag -a v0.0.5 -m 'pre-alpha release v0.0.5' git push origin v0.0.5