@@ -95,34 +95,53 @@ See the ``travis-sphinx`` documentation and the file ``.travis.yml`` for details
95
95
Release
96
96
-------
97
97
98
+ Prerequisites
99
+ ^^^^^^^^^^^^^
100
+
98
101
See the PyPI documentation on generating a distribution archive, https://packaging.python.org/tutorials/packaging-projects/, for details.
99
102
100
- Prerequisites: ``setuptools wheel twine ``
103
+ Required tools:
104
+
105
+ - ``setuptools ``
106
+ - ``wheel ``
107
+ - ``twine ``
108
+
109
+ ::
110
+
111
+ pip install --upgrade setuptools wheel twine
101
112
102
113
::
103
114
104
115
python3 setup.py sdist bdist_wheel
105
116
106
- **Upload to test repository ** and check everything is in order:
117
+ Upload to test repository
118
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
107
119
108
- Check https:// test.pypi.org/project/geoextent/
120
+ First upload to the test repository and check everything is in order.
109
121
110
122
::
111
123
124
+ # upload with twine, make sure only one wheel is in dist/
112
125
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
113
126
114
- # TODO switch environment
127
+ Check if the information on https://test.pypi.org/project/geoextent/ is correct.
128
+ Then switch to a new Python environment, install geoextent from TestPyPI and try out package:
115
129
116
- # TODO install from TestPyPI and try out package
130
+ ::
117
131
118
- ** Upload to PyPI: **
132
+ pip install -i https://test.pypi.org/simple/ geoextent
119
133
120
- Check https://pypi.org/project/geoextent/
134
+ Upload to PyPI
135
+ ^^^^^^^^^^^^^^
121
136
122
137
::
123
138
124
139
twine upload dist/*
125
140
126
- # TODO switch environment
127
141
128
- # TODO install from TestPyPI and try out package
142
+ Check if information on https://pypi.org/project/geoextent/ is all correct.
143
+ Install the library from PyPI into a new Python environment and chech that everything works:
144
+
145
+ ::
146
+
147
+ ...
0 commit comments