File: packaging_notes.txt

package info (click to toggle)
imap-tools 1.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,624 kB
  • sloc: python: 4,709; makefile: 5
file content (37 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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