|
40 | 40 | less pydoctor-messages.txt # less +G = check for errors (which are at the end!) |
41 | 41 |
|
42 | 42 | 5. |
43 | | -Make and check the distribution from a (usual) dirty code folder ==> install-folder:: |
| 43 | +Make and check the distribution assuming a clean src/ folder (ln -s ../cma src/cma, was: from a (usual) dirty code folder ==> install-folder):: |
44 | 44 |
|
45 | | - ./script-prepare-distribution.sh |
46 | | - |
47 | | - ==> |
48 | | - backup install-folder --move # CAVEAT: not the homebrew tool |
49 | | - mkdir install-folder |
50 | | - backup cma --move # backup is a self-coded minitool |
51 | | - git checkout -- cma |
52 | | - cp -rp cma pyproject.toml LICENSE README.rst install-folder |
53 | | - backup --recover # recover above moved folder (and backup current, just in case) |
54 | | - git tag in-install-folder # mark commit to be the code in install-folder |
| 45 | +CAVEAT trouble shooting: remove folders (/bin/rm -r) when they have been created |
| 46 | + - ./cma-4.4... |
| 47 | + - src/cma.egg-info... (may not be necessary) |
| 48 | + - cma.egg-info (may not be necessary) |
55 | 49 |
|
56 | | - cd install-folder |
57 | 50 | python -m build > dist_call_output.txt; less dist_call_output.txt |
| 51 | + git tag -f last-build # not sure whether this is useful |
58 | 52 |
|
59 | | - twine check dist/* |
60 | | - less +G dist_call_output.txt # errors are shown in the end |
| 53 | + twine check dist/* # needs py314 |
61 | 54 | tar -tf dist/cma-4.4.0.tar.gz | tree --fromfile | less |
62 | | - # ==> 5 directories, 36 files, check that the distribution folders are clean |
63 | | - # not really useful anymore as we copy into a clean folder |
| 55 | + # ==> 7 directories, 40 files, check that the distribution folders are clean |
| 56 | + # was: ==> 5 directories, 36 files, check that the distribution folders are clean |
64 | 57 |
|
65 | 58 | # see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary |
66 | 59 |
|
|
71 | 64 | Draft a release on GitHub: click on releases and then new draft. Use above text added in README.md. |
72 | 65 |
|
73 | 66 | 7.b |
74 | | -Upload the distribution in ``install-folder``:: |
75 | | -
|
76 | | - twine upload dist/* # upload everything given the install folder was clean |
77 | | -
|
78 | | - # optional, before the above: test upload: |
79 | | - cd .. # back to src |
80 | | - backup test-install-folder # not really necessary |
81 | | - cp -rp install-folder test-install-folder |
82 | | - cd test-install-folder |
83 | | - mv cma cmae |
84 | | - # in pyproject.toml: |
85 | | - # change "name = cma" and "version = {attr = "cma.__version__"}" to cmae |
86 | | - python -m build > dist_call_output.txt ... |
| 67 | +Upload the distribution (was: in ``install-folder``):: |
| 68 | +
|
| 69 | + # optional (test upload): |
| 70 | + in pyproject.toml: change "name = cma" to = cmae |
| 71 | + python -m build > dist_call_outpute.txt |
87 | 72 | twine upload --repository testpypi dist/cmae* |
88 | | - cd ../install-folder |
| 73 | + open https://test.pypi.org/project/cmae |
89 | 74 |
|
| 75 | + twine upload dist/*4.4.4* |
| 76 | + |
90 | 77 | 7.c |
91 | 78 | Create and push a tag, mainly to avoid changing any remote branch to pick for release draft:: |
92 | 79 |
|
|
117 | 104 | Anaconda:: |
118 | 105 |
|
119 | 106 | # edit version number in tools/conda.recipe/meta.yaml |
120 | | - conda-build -q tools/conda.recipe # takes about 1/2 hour |
| 107 | + ./script-prepare-distribution.sh # make clean install-folder |
| 108 | + conda-build -q tools/conda.recipe # takes about 1/2 hour, currently again broken |
121 | 109 |
|
122 | 110 | """ |
123 | 111 | # from distutils.core import setup |
|
0 commit comments