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
Copy file name to clipboardExpand all lines: 03_building_and_packaging/pypi_slides.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,8 +64,8 @@ In this lecture we work with pip, because ...
64
64
65
65
## Python Enhancement Proposals (PEPs)
66
66
67
-
-PEP is an evolving design document which guides Python development.
68
-
- PEPs typically involve concise technical information, which also act as standards.
67
+
-PEPs are evolving design documents that guide Python development.
68
+
- PEPs typically involve concise technical information. They are essentially standards.
69
69
- Packaging is standardized by [Packaging PEPs](https://peps.python.org/topic/packaging/).
70
70
- Example of a Packaging PEP: [PEP 427 – The Wheel Binary Package Format 1.0](https://peps.python.org/pep-0427/).
71
71
@@ -84,13 +84,13 @@ Import package ...
84
84
- ... is used within a file: `import pkg` or `from pkg import xyz`.
85
85
- ... is available when its distribution package is installed.
86
86
87
-
Distribution package name and import package need not be the same, but usually is. Read more about [distribution package vs. import package](https://packaging.python.org/en/latest/discussions/distribution-package-vs-import-package/#distribution-package-vs-import-package).
87
+
Both names need not be the same, but they usually are. Read more about [distribution package vs. import package](https://packaging.python.org/en/latest/discussions/distribution-package-vs-import-package/#distribution-package-vs-import-package).
88
88
89
89
---
90
90
91
91
## Steps in Packaging a Python Code
92
92
93
-
1.Get or create a source tree of the code.
93
+
1.Create a source tree of the code.
94
94
2. Write a packaging configuration file, typically `pyproject.toml`.
95
95
3. Create build artifacts.
96
96
4. Upload the build artifacts to a packaging index.
@@ -203,7 +203,7 @@ python3 -m build
203
203
204
204
Source distribution (sdist)
205
205
206
-
- Contains files enough to install the package from source.
206
+
- Contains files to install the package from source.
207
207
- Run
208
208
209
209
```bash
@@ -216,7 +216,7 @@ Source distribution (sdist)
216
216
217
217
Built distribution (wheel)
218
218
219
-
- Contains files needed only to run package.
219
+
- Contains binary files to run package.
220
220
- No compilation done, just a copy paste into a directory.
221
221
- In most cases only one generic wheel is required. Exceptions are different Python interpreters, different OS configurations.
0 commit comments