Skip to content

Commit 01d9255

Browse files
committed
deploy: efad49e
1 parent d47df6e commit 01d9255

30 files changed

+72
-60
lines changed

.doctrees/environment.pickle

759 Bytes
Binary file not shown.

.doctrees/index.doctree

-4 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.

.doctrees/tutorials/intro.doctree

150 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.

_sources/index.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ by the community now! Join our community review process or watch development of
7171
:class-card: left-aligned
7272

7373
* [What is a Python package?](/tutorials/intro)
74-
* [Make your code installable](/tutorials/1-installable-code)
74+
* [Make your code installable](/tutorials/installable-code)
7575
* [Publish your package to (test) PyPi](/tutorials/publish-pypi)
7676
* [Publish your package to conda-forge](/tutorials/publish-conda-forge)
7777

_sources/tutorials/add-license-coc.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ There are several ways to add a LICENSE file:
6262
:::{tip}
6363
If you completed the past lessons including
6464

65-
1. [Making your code installable](1-installable-code.md) and
65+
1. [Making your code installable](installable-code.md) and
6666
2. [publishing your package to PyPI](publish-pypi.md)
6767

6868
then you already have a **LICENSE** file containing text for the MIT license in your Python package. Thus you can skip to the next section of this tutorial which walks you through adding a CODE_OF_CONDUCT.

_sources/tutorials/add-readme.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In the previous lessons you learned:
44

55
1. [What a Python package is](intro.md)
6-
2. [How to make your code installable](1-installable-code)
6+
2. [How to make your code installable](installable-code)
77
3. [How to publish your package to (test) PyPI](publish-pypi.md)
88
4. [How to publish your package to conda-forge](publish-conda-forge.md)
99

_sources/tutorials/1-installable-code.md.txt renamed to _sources/tutorials/installable-code.md.txt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ pyospackage # This is your project directory
229229

230230
```
231231

232-
## Step 2: Add code to your package
232+
## Step 2: Add module to your package
233233

234-
Within the `pyospackage` subdirectory, add one or more Python modules.
235-
A Python module refers to a `.py` file containing the code that you want your package to access and run.
234+
A Python module refers to a `.py` file containing the code that you want your package to access and run. Within the `pyospackage` subdirectory, add at least one Python modules (.py files).
236235

237236
If you don't have code already and are just learning how to create a Python package, then create an empty `add_numbers.py` file. You will
238237
populate the `add_numbers.py` file with code provided below.
@@ -258,7 +257,7 @@ pyospackage/
258257
├── add_numbers.py
259258
```
260259

261-
## Step 3: Add code to your `add_numbers.py` module
260+
## Step 3: Add code to your module
262261

263262
If you are following along and making a Python package from scratch then you can add the code below to your `add_numbers.py` module. The function below adds two integers together and returns the result. Notice that the code below has a few features that we will review in future tutorials:
264263

@@ -404,14 +403,22 @@ You will learn how to automate defining a package
404403
version using git tags in the version and release your package lesson.
405404
:::
406405

407-
### Adjust project classifiers
406+
### OPTIONAL: Adjust project classifiers
408407

409408
Hatch by default provides a list of classifiers that define what
410-
Python versions your package supports. While this won't impact your package build, let's remove some of them that you likely don't need.
409+
Python versions your package supports. These classifiers do not
410+
in any way impact your package's build and are primarily
411+
intended to be used when you publish your package to PyPI.
411412

412-
* Remove support for python 3.8
413+
If you don't plan on publishing to PyPI, you can skip this section.
414+
However, if you wish, you can clean it up a bit.
413415

414-
Also because we are assuming you're creating a pure Python package, you can remove the following classifiers:
416+
To begin:
417+
418+
* Remove support for Python 3.8
419+
420+
Also because you are creating a pure Python package, you can
421+
in this lesson, you can remove the following classifiers:
415422

416423
```toml
417424
classifiers = [

_sources/tutorials/intro.md.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Get to know Hatch <get-to-know-hatch>
3636
:caption: Create and publish a Python Package
3737

3838
What is a Python package? <self>
39-
Make your code installable <1-installable-code>
39+
Make your code installable <installable-code>
4040
Publish to PyPI <publish-pypi>
4141
Publish to conda-forge <publish-conda-forge>
4242
:::
@@ -346,5 +346,5 @@ The elements above are also important for future maintenance of your package. In
346346
In future lessons you will learn more about the infrastructure around a published Python package that makes it both easier to maintain, easier for others to contribute to and easier for other scientists to use. However, first we want to get you to your initial goal of publishing a Python package.
347347

348348
In this next lesson you will learn how to create a basic installable Python package.
349-
Make your code pip installable <1-installable-code>
349+
Make your code pip installable <installable-code>
350350
:::

_sources/tutorials/publish-conda-forge.md.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In the previous lessons, you've learned:
44

5-
1. How to [create the most basic version of a Python package](1-installable-code.md). This entailed making your code installable.
5+
1. How to [create the most basic version of a Python package](installable-code.md). This entailed making your code installable.
66
2. [How to publish your Python package to PyPI](publish-pypi)
77
3. How to add a `README` and `LICENSE` file to your package
88
4. How to setup your `pyproject.toml` file with all of the metadata that PyPI requires and also metadata that will be helpful for users to find your package.
@@ -464,7 +464,7 @@ Review the pull request. If all tests are passing, you can merge it. Shortly aft
464464
If you have walked through this entire tutorial series you have now:
465465

466466
1. Understand [what a Python package is ](intro.md)
467-
2. Know how to [make your code installable](1-installable-code.md) into Python environments
467+
2. Know how to [make your code installable](installable-code.md) into Python environments
468468
3. Know how to create a pyproject.toml file, a README file, and a License and code of conduct.
469469
4. Know how to [publish your package to PyPI](publish-pypi.md) and
470470
5. Know how to publish your package to conda-forge

_sources/tutorials/publish-pypi.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Once you have your development environment setup, you are ready to build your pa
167167

168168
You will use Hatch as a **Front end** tool that builds
169169
your package's sdist and wheel using the [hatchling](https://hatch.pypa.io/latest/) build back-end.
170-
The hatchling build back-end is used because you declared it in your pyproject.toml file in the [previous lesson](1-installable-code).
170+
The hatchling build back-end is used because you declared it in your pyproject.toml file in the [previous lesson](installable-code).
171171

172172
To build your package run `hatch build`:
173173

_sources/tutorials/pyproject-toml.md.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Make your Python package PyPI ready - pyproject.toml
22

3-
In [the installable code lesson](1-installable-code), you learned how to add the bare minimum information to a `pyproject.toml` file to make it installable. You then learned how to [publish a bare minimum version of your package to PyPI](publish-pypi.md).
3+
In [the installable code lesson](installable-code), you learned how to add the bare minimum information to a `pyproject.toml` file to make it installable. You then learned how to [publish a bare minimum version of your package to PyPI](publish-pypi.md).
44

55
Following that you learned how to add a:
66
* [README.md](add-readme)
@@ -156,7 +156,7 @@ The documentation for the hatchling back-end is [here](https://hatch.pypa.io/lat
156156

157157
### Step 1: Add Author, maintainer and project description
158158

159-
After completing the [installable code tutorial](1-installable-code), you should have a pyproject.toml file with a project name and a version in the `[project]` table.
159+
After completing the [installable code tutorial](installable-code), you should have a pyproject.toml file with a project name and a version in the `[project]` table.
160160

161161
```toml
162162
[project]

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ <h2><em>new</em> Tutorial Series: How to Create a Python Package<a class="header
507507
✿ Create a Package Tutorials ✿</div>
508508
<ul class="simple">
509509
<li><p class="sd-card-text"><a class="reference internal" href="tutorials/intro.html"><span class="doc std std-doc">What is a Python package?</span></a></p></li>
510-
<li><p class="sd-card-text"><a class="reference internal" href="tutorials/1-installable-code.html"><span class="doc std std-doc">Make your code installable</span></a></p></li>
510+
<li><p class="sd-card-text"><a class="reference internal" href="tutorials/installable-code.html"><span class="doc std std-doc">Make your code installable</span></a></p></li>
511511
<li><p class="sd-card-text"><a class="reference internal" href="tutorials/publish-pypi.html"><span class="doc std std-doc">Publish your package to (test) PyPi</span></a></p></li>
512512
<li><p class="sd-card-text"><a class="reference internal" href="tutorials/publish-conda-forge.html"><span class="doc std std-doc">Publish your package to conda-forge</span></a></p></li>
513513
</ul>

objects.inv

-3 Bytes
Binary file not shown.

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://www.pyopensci.org/python-package-guide/CONTRIBUTING.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/myst-markdown-rst-doc-syntax.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/publish-documentation-online.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/sphinx-python-package-documentation-tools.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/website-hosting-optimizing-your-docs.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/code-of-conduct-file.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/contributing-file.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/development-guide.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/license-files.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/readme-file-best-practices.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/create-package-tutorials.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/document-your-code-api-docstrings.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/get-started.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/code-style-linting-format.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/complex-python-package-builds.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/declare-dependencies.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/publish-python-package-pypi-conda.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/pyproject-toml-python-package-metadata.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-build-tools.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-distribution-files-sdist-wheel.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-structure.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-versions.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/run-tests.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/test-types.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/tests-ci.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/write-tests.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/1-installable-code.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/add-license-coc.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/add-readme.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/publish-conda-forge.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/publish-pypi.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/pyproject-toml.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/genindex.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/search.html</loc></url></urlset>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://www.pyopensci.org/python-package-guide/CONTRIBUTING.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/myst-markdown-rst-doc-syntax.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/publish-documentation-online.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/sphinx-python-package-documentation-tools.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/hosting-tools/website-hosting-optimizing-your-docs.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/code-of-conduct-file.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/contributing-file.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/development-guide.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/license-files.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/repository-files/readme-file-best-practices.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/create-package-tutorials.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/document-your-code-api-docstrings.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/get-started.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/code-style-linting-format.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/complex-python-package-builds.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/declare-dependencies.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/publish-python-package-pypi-conda.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/pyproject-toml-python-package-metadata.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-build-tools.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-distribution-files-sdist-wheel.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-structure.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-versions.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/index.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/run-tests.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/test-types.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/tests-ci.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tests/write-tests.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/add-license-coc.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/add-readme.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/installable-code.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/intro.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/publish-conda-forge.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/publish-pypi.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/tutorials/pyproject-toml.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/genindex.html</loc></url><url><loc>https://www.pyopensci.org/python-package-guide/search.html</loc></url></urlset>

tutorials/add-license-coc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Create and publish a Python Package</span></p>
459459
<ul class="nav bd-sidenav">
460460
<li class="toctree-l1"><a class="reference internal" href="intro.html">What is a Python package?</a></li>
461-
<li class="toctree-l1"><a class="reference internal" href="1-installable-code.html">Make your code installable</a></li>
461+
<li class="toctree-l1"><a class="reference internal" href="installable-code.html">Make your code installable</a></li>
462462
<li class="toctree-l1"><a class="reference internal" href="publish-pypi.html">Publish to PyPI</a></li>
463463
<li class="toctree-l1"><a class="reference internal" href="publish-conda-forge.html">Publish to conda-forge</a></li>
464464
</ul>
@@ -583,7 +583,7 @@ <h3>How to add a LICENSE file to your package directory<a class="headerlink" hre
583583
<p class="admonition-title">Tip</p>
584584
<p>If you completed the past lessons including</p>
585585
<ol class="arabic simple">
586-
<li><p><a class="reference internal" href="1-installable-code.html"><span class="std std-doc">Making your code installable</span></a> and</p></li>
586+
<li><p><a class="reference internal" href="installable-code.html"><span class="std std-doc">Making your code installable</span></a> and</p></li>
587587
<li><p><a class="reference internal" href="publish-pypi.html"><span class="std std-doc">publishing your package to PyPI</span></a></p></li>
588588
</ol>
589589
<p>then you already have a <strong>LICENSE</strong> file containing text for the MIT license in your Python package. Thus you can skip to the next section of this tutorial which walks you through adding a CODE_OF_CONDUCT.</p>

0 commit comments

Comments
 (0)