Skip to content

byuirpytooling/usdeathspy

Repository files navigation

Building Python Packages

We are following the guide from Python Packages by Tomas Beuzen and Tiffany Timbers for the structure of this template repo. This readme documents differences from their guide.

Python Installation

We will use uv instead of conda.

Installing uv and python

  1. Follow uv's installation scripts
  2. Now run uv python install --default.
  • You can see your available python versions with uv python list.
  • If you want a specific version of python you can run uv python install 3.12 for example.
  • You can upgrade to the latest supported patch release for each version with uv python upgrade
  1. Now you can install the two python packages recommended uv pip install poetry cookiecutter --system
  2. I propose skipping the PyPI setup and the rest of chapter 2 for now.

In progress notes

  1. Also install mkdocs-material with uv pip install mkdocs-material --system.
  2. You can follow this video for a guide on mkdocs-material. His companion website for this video will be handy as well.
  • However, we are using uv and will use uv run mkdocs new . instead of mkdocs new .

The way to install packages from Github

uv pip install "git+https://github.com/byuirpytooling/pypackage_template.git@main"

uv pip install "git+https://github.com/byuirpytooling/pypackage_template.git@main"

Directory structure

pypackage_template
├── .readthedocs.yml           ┐
├── CHANGELOG.md               │
├── CONDUCT.md                 │
├── CONTRIBUTING.md            │
├── docs                       │
│   ├── changelog.md           │
│   ├── conduct.md             │
│   ├── conf.py                │ 
│   ├── contributing.md        │ Package documentation
│   ├── example.ipynb          │
│   ├── index.md               │
│   ├── make.bat               │
│   ├── Makefile               │
│   └── requirements.txt       │
├── LICENSE                    │
├── README.md                  ┘
├── pyproject.toml             ┐ 
├── src                        │
│   └── pypackage_template     │ Package source code, metadata,
│       ├── __init__.py        │ and build instructions 
│       └── pycounts.py        ┘
└── tests                      ┐
    └── test_pycounts.py       ┘ Package tests

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors