Skip to main content

Basic template of a python repository

Project description

Basic Repo Template

This is a basic template repository for a python project.

Change the package_name in: pyproject.toml to the name of your package (doing a search and replace for the default string mprib_tools being careful to check folder and file names) NOTE - This is pretty clunky and will be automated via a cookiecutter template "soon."

You'll also want to change the name, email etc in pyproject.toml and {repository_name}.__init__.py to your own details.

Publishing to PyPi (to make it pip installable)

NOTE - These instructions haven't been tested yet, this is placeholder text (written 2023-01-19)

You'll need to create a PyPi account and then create an API token for the Github Action configured in the file: .github/workflows/publish_to_pypi_when_new_tag_is_pushed_to_main.yml

These instructions may help you set that up! https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Basic Setup

Clone the repo

Create a venv with:

python -m venv .venv

Make sure that .venv is active

From within the repo (which will have a subfolder named after the package), build the local wheel of the package:

python -m pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mprib_tools-2023.1.1006.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mprib_tools-2023.1.1006-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file mprib_tools-2023.1.1006.tar.gz.

File metadata

  • Download URL: mprib_tools-2023.1.1006.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mprib_tools-2023.1.1006.tar.gz
Algorithm Hash digest
SHA256 4197abacdcee99255f40cea52516ce9acdffc7eca0fe1ac418393bbcd8931d8c
MD5 e396d5da74417f1ea7a42b77d0ef940b
BLAKE2b-256 0f1d24c4f6f1a9b571be8b584b194c6fd4a9905bcf91ddd043f6f6b56d80165f

See more details on using hashes here.

Provenance

File details

Details for the file mprib_tools-2023.1.1006-py3-none-any.whl.

File metadata

File hashes

Hashes for mprib_tools-2023.1.1006-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3edec85d8210af3c0822d530a62465ee71d23567c863f786787f1196fce707
MD5 895b708451512dd548270b29fa48199b
BLAKE2b-256 fe27c4ad636cc63320e4e082520dfd71a975254ad4b10965b324ab7d33f36780

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page