@@ -25,7 +25,11 @@ $./all.sh
25
25
26
26
For seeder: * to-be-completed*
27
27
28
- ## 4. Create a Source Distribution
28
+ ## 4. Tag the Release
29
+
30
+ Tag the state of the repo with the release version (e.g. ` v0.4.0 ` ) in GitHub.
31
+
32
+ ## 5. Create a Source Distribution
29
33
30
34
```
31
35
python3 setup.py sdist
@@ -50,7 +54,7 @@ are to be excluded from the distribution (e.g. via `MANIFEST.in` or the
50
54
Note that to install the source distribution, the user will need to have ` pip `
51
55
installed a new-enough version of ` setuptools ` and also ` wheel ` .
52
56
53
- ## 5 . Create a Universal Wheel
57
+ ## 6 . Create a Universal Wheel
54
58
55
59
```
56
60
python3 setup.py bdist_wheel
@@ -66,7 +70,7 @@ Note that `setup.cfg` specifies that wheels are universal by default.
66
70
[ Common Python Packaging Mistakes] [ 2 ] is a particularly useful resource that I
67
71
used in preparing the above two steps.
68
72
69
- ## 6 . Upload to PyPI
73
+ ## 7 . Upload to PyPI
70
74
71
75
Upload the source distribution and the universal wheel to the Python Package
72
76
Index (PyPI).
@@ -88,7 +92,7 @@ repository: https://test.pypi.org/legacy/
88
92
username: <username>
89
93
```
90
94
91
- ### 6a . Test PyPI Server
95
+ ### 7a . Test PyPI Server
92
96
93
97
94
98
```
@@ -108,7 +112,7 @@ venv/bin/pip install -i https://test.pypi.org/pypi/ framework-reproducibility
108
112
rm -rf venv
109
113
```
110
114
111
- ### 6b . Real PyPI Server
115
+ ### 7b . Real PyPI Server
112
116
113
117
```
114
118
twine upload --repository pypi dist/framework-reproducibility-<version>.tar.gz
@@ -125,9 +129,9 @@ venv/bin/pip install framework-reproducibility
125
129
rm -rf venv
126
130
```
127
131
128
- ## 7 . Create GitHub Release
132
+ ## 8 . Create the GitHub Release
129
133
130
- Finally, on GitHub, create a new release with an appropriate version tag
134
+ Finally, on GitHub, create a new release using the version tag created earlier
131
135
(e.g. ` v0.4.0 ` ).
132
136
133
137
[ 1 ] : https://packaging.python.org/guides/distributing-packages-using-setuptools/
0 commit comments