Packaging
=========

https://packaging.python.org/tutorials/packaging-projects/

* Иногда для применения некоторых настроек билда нужно удалить старые папки билдов

1. Create .pypirc
    C:\Users\v.kaukin\.pypirc
    https://docs.python.org/3/distutils/packageindex.html#pypirc

2. Install/update build libs:
    C:\python\venv\imap_tools312-64\Scripts\python.exe -m pip install --upgrade pip
    C:\python\venv\imap_tools312-64\Scripts\pip install --upgrade -r C:\kvk\develop\Python\imap_tools\docs\dev_requirements.txt

3. Generating distribution archives
    cd C:\kvk\develop\Python\imap_tools\
    C:\python\venv\imap_tools312-64\Scripts\python.exe C:\kvk\develop\Python\imap_tools\setup.py sdist bdist_wheel

4. Check the distribution archives:
    C:\python\venv\imap_tools312-64\Scripts\python.exe -m twine check dist/*

5. Uploading the distribution archives:
    C:\python\venv\imap_tools312-64\Scripts\python.exe -m twine upload dist/*

6. Create release
    at https://github.com/ikvk/imap_tools

7. Mirror
    cd to repo
        cd C:\kvk\develop\Python\imap_tools\
    Cleaning old references to remote branches
        git fetch --prune
    Push
        git push --prune git@gitflic.ru:ikvk/imap-tools.git +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/*

    https://dev.to/sourcelevel/how-to-properly-mirror-a-git-repository-19d9
