Content on "How to create a Python package"

Open
#63 8 comments 0 reactions 1 assignee View on GitHub

@anissa111 is already working on this.

Since Jun 28, 2022.

Assessment

This issue has not been assessed yet.

Description

content

Migrating an interesting discussion over from https://github.com/ProjectPythia/projectpythia.github.io/issues/43.

I think that the Foundations book could have an entirely new top-level section (after Core Scientific Packages) devoted to best practices for developing Python packages.

Tentatively, the chapter could be entitled "Building Python Packages", and have sections like:

  • tutorial on tests and testing
  • Good package structure (i.e., the structure of the files and folders in the repository)
  • Building documentation
  • CI services like GitHub Action (for testing, linting, etc.) and ReadTheDocs (for building and hosting documentation)
  • Using pre-commit hooks and other enforcing tools (including various pre-commit checks like black/prettier, flake8, isort, talisman, etc.)

I'm not 100% sure if this is in-scope for the Foundations book, but it could be really useful to have self-contained tutorials on all this material cross-referenced with our tutorials on conda, git, GitHub pull requests, etc.

Dominant language
Jupyter Notebook
Stars
72
Forks
60
Avg merge
17h 36m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ProjectPythia/pythia-foundations

All issues in ProjectPythia/pythia-foundations

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.