Skip to content

Commit a0e1312

Browse files
authored
Merge pull request #279 from pb-413/main
Update version references in tutorial: 0.1.0 -> 0.1
2 parents 3ab7c10 + c254954 commit a0e1312

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

tutorials/publish-pypi.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Package Version Editable project location
113113
numpy 1.26.3
114114
pandas 2.1.4
115115
pip 23.3.1
116-
pyosPackage 0.1.0 /path/to/your/project/here/pyosPackage
116+
pyosPackage 0.1 /path/to/your/project/here/pyosPackage
117117
python-dateutil 2.8.2
118118
pytz 2023.3.post1
119119
six 1.16.0
@@ -160,9 +160,9 @@ To build your package run `hatch build`:
160160
```bash
161161
➜ hatch build
162162
──────────────── sdist ─────────────────
163-
dist/pyospackage-0.1.0.tar.gz
163+
dist/pyospackage-0.1.tar.gz
164164
──────────────── wheel ─────────────────
165-
dist/pyospackage-0.1.0-py3-none-any.whl
165+
dist/pyospackage-0.1-py3-none-any.whl
166166

167167
```
168168

@@ -178,9 +178,9 @@ your package to conda-forge](publish-conda-forge). You will learn about this in
178178
:::{todo}
179179
➜ hatch build
180180
────────────────────────────────────── sdist ──────────────────────────────────────
181-
dist/pyospackage-0.1.0.tar.gz
181+
dist/pyospackage-0.1.tar.gz
182182
────────────────────────────────────── wheel ──────────────────────────────────────
183-
dist/pyospackage-0.1.0-py3-none-any.whl
183+
dist/pyospackage-0.1-py3-none-any.whl
184184
:::
185185

186186
### <i class="fa-solid fa-wand-magic-sparkles"></i> Congratulations - you've created your Python package distribution files <i class="fa-solid fa-wand-magic-sparkles"></i>
@@ -269,8 +269,8 @@ TestPyPI.
269269
❯ hatch publish -r test
270270
Enter your username: __token__
271271
Enter your credentials: <paste-your-token-value-here>
272-
dist/pyospackage-0.1.0-py3-none-any.whl ... already exists
273-
dist/pyospackage-0.1.0.tar.gz ... already exists
272+
dist/pyospackage-0.1-py3-none-any.whl ... already exists
273+
dist/pyospackage-0.1.tar.gz ... already exists
274274

275275
```
276276

tutorials/pyproject-toml.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The pyproject.toml file tells your build tool:
7878

7979
- What build backend to use to build your package (we are using `hatchling` in this tutorial but there are [many others to choose from](/package-structure-code/python-package-build-tools)).
8080
- How and where to retrieve your package's version:
81-
- **statically** where you declare the version `version = "0.1.0"` or
81+
- **statically** where you declare the version `version = "0.1"` or
8282
- **dynamically** where the tool looks to the most recent tag in your history to determine the current version.
8383
- What dependencies your package needs
8484
- What versions of Python your package supports (important for your users).
@@ -139,7 +139,7 @@ build-backend = "hatchling.build"
139139

140140
[project]
141141
name = "pyospackage"
142-
version = "0.1.0"
142+
version = "0.1"
143143
```
144144

145145
Your next step is to add additional recommended metadata fields that will both
@@ -161,7 +161,7 @@ After completing the [installable code tutorial](installable-code), you should h
161161
```toml
162162
[project]
163163
name = "pyospackage"
164-
version = "0.1.0"
164+
version = "0.1"
165165
```
166166

167167
Add the following to your table:
@@ -230,7 +230,7 @@ build-backend = "hatchling.build"
230230

231231
[project]
232232
name = "pyospackage"
233-
version = "0.1.0"
233+
version = "0.1"
234234
description = """
235235
Tools that update the pyOpenSci contributor and review metadata
236236
that is posted on our website
@@ -278,7 +278,7 @@ build-backend = "hatchling.build"
278278

279279
[project]
280280
name = "pyospackage"
281-
version = "0.1.0"
281+
version = "0.1"
282282
description = """
283283
Tools that update the pyOpenSci contributor and review metadata
284284
that is posted on our website
@@ -310,7 +310,7 @@ build-backend = "hatchling.build"
310310

311311
[project]
312312
name = "pyospackage"
313-
version = "0.1.0"
313+
version = "0.1"
314314
description = """
315315
Tools that update the pyOpenSci contributor and review metadata
316316
that is posted on our website
@@ -382,7 +382,7 @@ build-backend = "hatchling.build"
382382

383383
[project]
384384
name = "pyospackage"
385-
version = "0.1.0"
385+
version = "0.1"
386386
description = """
387387
Tools that update the pyOpenSci contributor and review metadata
388388
that is posted on our website
@@ -457,7 +457,7 @@ build-backend = "hatchling.build"
457457

458458
[project]
459459
name = "pyospackage"
460-
version = "0.1.0"
460+
version = "0.1"
461461
description = """
462462
Tools that update the pyOpenSci contributor and review metadata
463463
that is posted on our website
@@ -507,7 +507,7 @@ build-backend = "hatchling.build"
507507

508508
[project]
509509
name = "pyospackage"
510-
version = "0.1.0"
510+
version = "0.1"
511511
description = """
512512
Tools that update the pyOpenSci contributor and review metadata
513513
that is posted on our website
@@ -558,7 +558,7 @@ build-backend = "hatchling.build"
558558

559559
[project]
560560
name = "pyospackage"
561-
version = "0.1.0"
561+
version = "0.1"
562562
description = """
563563
Tools that update the pyOpenSci contributor and review metadata
564564
that is posted on our website
@@ -614,7 +614,7 @@ build-backend = "hatchling.build"
614614
[project]
615615
name = "pyospackage"
616616
# dynamic = ["version"] # you will learn how to dynamically set the version in a future lesson
617-
version = "0.1.0" # manually assign version (not preferred)
617+
version = "0.1" # manually assign version (not preferred)
618618
description = "Tools that update the pyOpenSci contributor and review metadata that is posted on our website"
619619
authors = [{ name = "Firstname lastname", email = "[email protected]" }]
620620

@@ -688,7 +688,7 @@ You are now ready to publish a new version of your Python package to (test) PyPI
688688
Try to republish now.
689689

690690
First, update the version of your package in your pyproject toml file. Below version is updated from
691-
`0.1.0` to `0.1.1`.
691+
`0.1` to `0.1.1`.
692692

693693
```TOML
694694
[build-system]

0 commit comments

Comments
 (0)