Skip to content

Commit 500a07b

Browse files
committed
deploy: 3db156e
1 parent 725380b commit 500a07b

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.doctrees/environment.pickle

-57 Bytes
Binary file not shown.
-44 Bytes
Binary file not shown.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pyospackage/
258258
├── add_numbers.py
259259
```
260260

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

263263
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:
264264

@@ -298,7 +298,7 @@ def add_num(a: int, b: int) -> int:
298298
return a + b
299299
```
300300

301-
## Step 4. Modify metadata in your `pyproject.toml` file
301+
## Step 4: Modify metadata in your `pyproject.toml` file
302302

303303
Next, you will modify some of the metadata (information) that
304304
Hatch adds to your `pyproject.toml` file. You are
@@ -404,7 +404,7 @@ You will learn how to automate defining a package
404404
version using git tags in the version and release your package lesson.
405405
:::
406406

407-
### Step 3: Adjust your project classifiers
407+
### Adjust project classifiers
408408

409409
Hatch by default provides a list of classifiers that define what
410410
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.
@@ -464,7 +464,7 @@ Once you have your project metadata in the pyproject.toml file, you will
464464
rarely update it. In the next lesson you’ll add more metadata and structure to this file.
465465
:::
466466

467-
## Step 5. Install your package locally
467+
## Step 5: Install your package locally
468468

469469
At this point you should have:
470470

@@ -564,7 +564,7 @@ pyosPackage 0.1.0 /Users/yourusername/path/here/pyosP
564564
...
565565
```
566566

567-
## 6. Test out your new package
567+
## Step 6: Test out your new package
568568

569569
After installing your package, type “python” at the command prompt in your chosen terminal to start
570570
a Python session in your active Python environment.

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.

tutorials/1-installable-code.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ <h2>Step 2: Add code to your package<a class="headerlink" href="#step-2-add-code
742742
</div>
743743
</section>
744744
<section id="step-3-add-code-to-your-add-numbers-py-module">
745-
<h2>Step 3. Add code to your <code class="docutils literal notranslate"><span class="pre">add_numbers.py</span></code> module<a class="headerlink" href="#step-3-add-code-to-your-add-numbers-py-module" title="Link to this heading">#</a></h2>
745+
<h2>Step 3: Add code to your <code class="docutils literal notranslate"><span class="pre">add_numbers.py</span></code> module<a class="headerlink" href="#step-3-add-code-to-your-add-numbers-py-module" title="Link to this heading">#</a></h2>
746746
<p>If you are following along and making a Python package from scratch then you can add the code below to your <code class="docutils literal notranslate"><span class="pre">add_numbers.py</span></code> 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:</p>
747747
<ol class="arabic simple">
748748
<li><p>It has a <a class="reference internal" href="../documentation/write-user-documentation/document-your-code-api-docstrings.html#numpy-docstring"><span class="std std-ref">numpy-style docstring</span></a></p></li>
@@ -779,7 +779,7 @@ <h2>Step 3. Add code to your <code class="docutils literal notranslate"><span cl
779779
</div>
780780
</section>
781781
<section id="step-4-modify-metadata-in-your-pyproject-toml-file">
782-
<h2>Step 4. Modify metadata in your <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file<a class="headerlink" href="#step-4-modify-metadata-in-your-pyproject-toml-file" title="Link to this heading">#</a></h2>
782+
<h2>Step 4: Modify metadata in your <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file<a class="headerlink" href="#step-4-modify-metadata-in-your-pyproject-toml-file" title="Link to this heading">#</a></h2>
783783
<p>Next, you will modify some of the metadata (information) that
784784
Hatch adds to your <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file. You are
785785
are welcome to copy the file we have in our <a class="reference external" href="https://github.com/pyOpenSci/pyosPackage">example pyospackage GitHub repository</a>.</p>
@@ -866,8 +866,8 @@ <h2>Step 4. Modify metadata in your <code class="docutils literal notranslate"><
866866
<span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;src/pyospackage/__about__.py&quot;</span>
867867
</pre></div>
868868
</div>
869-
<section id="step-3-adjust-your-project-classifiers">
870-
<h3>Step 3: Adjust your project classifiers<a class="headerlink" href="#step-3-adjust-your-project-classifiers" title="Link to this heading">#</a></h3>
869+
<section id="adjust-project-classifiers">
870+
<h3>Adjust project classifiers<a class="headerlink" href="#adjust-project-classifiers" title="Link to this heading">#</a></h3>
871871
<p>Hatch by default provides a list of classifiers that define what
872872
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.</p>
873873
<ul class="simple">
@@ -921,7 +921,7 @@ <h3>Step 3: Adjust your project classifiers<a class="headerlink" href="#step-3-a
921921
</section>
922922
</section>
923923
<section id="step-5-install-your-package-locally">
924-
<h2>Step 5. Install your package locally<a class="headerlink" href="#step-5-install-your-package-locally" title="Link to this heading">#</a></h2>
924+
<h2>Step 5: Install your package locally<a class="headerlink" href="#step-5-install-your-package-locally" title="Link to this heading">#</a></h2>
925925
<p>At this point you should have:</p>
926926
<ol class="arabic simple">
927927
<li><p>A project directory structure with a <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file at the root</p></li>
@@ -1007,8 +1007,8 @@ <h3>Look for pyospackage in your environment<a class="headerlink" href="#look-fo
10071007
</div>
10081008
</section>
10091009
</section>
1010-
<section id="test-out-your-new-package">
1011-
<h2>6. Test out your new package<a class="headerlink" href="#test-out-your-new-package" title="Link to this heading">#</a></h2>
1010+
<section id="step-6-test-out-your-new-package">
1011+
<h2>Step 6: Test out your new package<a class="headerlink" href="#step-6-test-out-your-new-package" title="Link to this heading">#</a></h2>
10121012
<p>After installing your package, type “python” at the command prompt in your chosen terminal to start
10131013
a Python session in your active Python environment.</p>
10141014
<p>You can now import your package and access the <code class="docutils literal notranslate"><span class="pre">add_num</span></code> function.</p>
@@ -1135,16 +1135,16 @@ <h2>Footnotes<a class="headerlink" href="#footnotes" title="Link to this heading
11351135
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#time-to-create-your-python-package">Time to create your Python package!</a></li>
11361136
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-1-set-up-the-package-directory-structure">Step 1: Set Up the Package Directory Structure</a></li>
11371137
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-2-add-code-to-your-package">Step 2: Add code to your package</a></li>
1138-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-3-add-code-to-your-add-numbers-py-module">Step 3. Add code to your <code class="docutils literal notranslate"><span class="pre">add_numbers.py</span></code> module</a></li>
1139-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-4-modify-metadata-in-your-pyproject-toml-file">Step 4. Modify metadata in your <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file</a><ul class="nav section-nav flex-column">
1140-
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#step-3-adjust-your-project-classifiers">Step 3: Adjust your project classifiers</a></li>
1138+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-3-add-code-to-your-add-numbers-py-module">Step 3: Add code to your <code class="docutils literal notranslate"><span class="pre">add_numbers.py</span></code> module</a></li>
1139+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-4-modify-metadata-in-your-pyproject-toml-file">Step 4: Modify metadata in your <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> file</a><ul class="nav section-nav flex-column">
1140+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#adjust-project-classifiers">Adjust project classifiers</a></li>
11411141
</ul>
11421142
</li>
1143-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-5-install-your-package-locally">Step 5. Install your package locally</a><ul class="nav section-nav flex-column">
1143+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-5-install-your-package-locally">Step 5: Install your package locally</a><ul class="nav section-nav flex-column">
11441144
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#look-for-pyospackage-in-your-environment">Look for pyospackage in your environment</a></li>
11451145
</ul>
11461146
</li>
1147-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#test-out-your-new-package">6. Test out your new package</a></li>
1147+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#step-6-test-out-your-new-package">Step 6: Test out your new package</a></li>
11481148
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#congratulations-you-created-your-first-python-package">Congratulations! You created your first Python package</a></li>
11491149
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#footnotes">Footnotes</a></li>
11501150
</ul>

0 commit comments

Comments
 (0)