You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,7 +34,7 @@ This library is available as a `package on PyPI <https://pypi.org/project/modulo
34
34
35
35
python -m pip install modulo
36
36
37
-
The library can be imported in the usual way:
37
+
The library can be imported in the usual ways:
38
38
39
39
.. code-block:: python
40
40
@@ -157,15 +157,15 @@ All installation and development dependencies are fully specified in ``pyproject
157
157
158
158
.. code-block:: bash
159
159
160
-
python -m pip install .[docs,lint]
160
+
python -m pip install ".[docs,lint]"
161
161
162
162
Documentation
163
163
^^^^^^^^^^^^^
164
164
The documentation can be generated automatically from the source files using `Sphinx <https://www.sphinx-doc.org>`__:
165
165
166
166
.. code-block:: bash
167
167
168
-
python -m pip install .[docs]
168
+
python -m pip install ".[docs]"
169
169
cd docs
170
170
sphinx-apidoc -f -E --templatedir=_templates -o _source .. && make html
171
171
@@ -175,7 +175,7 @@ All unit tests are executed and their coverage is measured when using `pytest <h
175
175
176
176
.. code-block:: bash
177
177
178
-
python -m pip install .[test]
178
+
python -m pip install ".[test]"
179
179
python -m pytest
180
180
181
181
Alternatively, all unit tests are included in the module itself and can be executed using `doctest <https://docs.python.org/3/library/doctest.html>`__:
@@ -188,7 +188,7 @@ Style conventions are enforced using `Pylint <https://pylint.readthedocs.io>`__:
188
188
189
189
.. code-block:: bash
190
190
191
-
python -m pip install .[lint]
191
+
python -m pip install ".[lint]"
192
192
python -m pylint src/modulo
193
193
194
194
Contributions
@@ -201,28 +201,13 @@ Beginning with version 0.2.0, the version number format for this library and the
201
201
202
202
Publishing
203
203
^^^^^^^^^^
204
-
This library can be published as a `package on PyPI <https://pypi.org/project/modulo>`__ by a package maintainer. First, install the dependencies required for packaging and publishing:
204
+
This library can be published as a `package on PyPI <https://pypi.org/project/modulo>`__ via the GitHub Actions workflow found in ``.github/workflows/build-publish-sign-release.yml`` that follows the `recommendations found in the Python Packaging User Guide <https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/>`__.
205
205
206
-
.. code-block:: bash
207
-
208
-
python -m pip install .[publish]
206
+
Ensure that the correct version number appears in ``pyproject.toml``, and that any links in this README document to the Read the Docs documentation of this package (or its dependencies) have appropriate version numbers. Also ensure that the Read the Docs project for this library has an `automation rule <https://docs.readthedocs.io/en/stable/automation-rules.html>`__ that activates and sets as the default all tagged versions.
209
207
210
-
Ensure that the correct version number appears in ``pyproject.toml``, and that any links in this README document to the Read the Docs documentation of this package (or its dependencies) have appropriate version numbers. Also ensure that the Read the Docs project for this library has an `automation rule <https://docs.readthedocs.io/en/stable/automation-rules.html>`__ that activates and sets as the default all tagged versions. Create and push a tag for this version (replacing ``?.?.?`` with the version number):
208
+
To publish the package, create and push a tag for the version being published (replacing ``?.?.?`` with the version number):
211
209
212
210
.. code-block:: bash
213
211
214
212
git tag ?.?.?
215
213
git push origin ?.?.?
216
-
217
-
Remove any old build/distribution files. Then, package the source into a distribution archive:
218
-
219
-
.. code-block:: bash
220
-
221
-
rm -rf build dist src/*.egg-info
222
-
python -m build --sdist --wheel .
223
-
224
-
Finally, upload the package distribution archive to `PyPI <https://pypi.org>`__:
0 commit comments