Maintaining & Sustaining Software Intermediate 3h 15m

Python Packaging for Beginners

This lesson teaches the essential steps for packaging Python projects and publishing them on PyPI.

Learning outcomes

  • Create and configure virtual environments for Python projects
  • Use task runners to manage environments and execute code
  • Build and install a Python package from source
  • Implement basic tests for Python packages
  • Explain the process of publishing a package on PyPI

Prerequisites

Git, Python

Cite this lesson

Metadata from CITATION.cff.

APA

Schreiner, H., Niemeyer, K., Holland, J. G., Dang, G., Restrepo, M. I. (2024). INTERSECT: Packaging. UC OSPO Network. https://intersect-training.org/packaging/

BibTeX
@misc{python_packaging_for_beginners_2024,
  author    = {Schreiner, Henry and Niemeyer, Kyle and Holland, John Gerrard and Dang, George and Restrepo, Maria Isabel},
  title     = {INTERSECT: Packaging},
  year      = {2024},
  publisher = {UC OSPO Network},
  url       = {https://intersect-training.org/packaging/}
}