Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 816 Bytes

README.md

File metadata and controls

49 lines (38 loc) · 816 Bytes

Packaging Tutorial

This is a simple packaging tutorial for Python projects.

packaging-tutorial $ tree .
.
├── LICENSE
├── README.md
├── pyproject.toml
└── src
    └── packaging_tutorial
        ├── hello.py
        └── __init__.py

Getting started

pipenv install

Generate distribution archives

pipenv run python -m build

You should have the dist directory generated with the following files:

packaging-tutorial $ tree .
.
├── dist
│   ├── pkg_packaging_tutorial-0.0.1-py3-none-any.whl
│   └── pkg_packaging_tutorial-0.0.1.tar.gz
(...)

Uploading to our index

pipenv run twine upload dist/*

Using it in a project

pipenv install pkg-packaging-tutorial