Skip to main content

A simple package example

Project description

pkgexample

Last updated 28th August 2022

Welcome to the readme for this simple package. More information Click Here

Introduction

This is a README file for the RexBytes simple example. It's created using Github-flavoured Markdown, you can create a README for your project, for more information Click Here

Build Instructions

A full detailed instruction on python package building is available here You should read it in full to understand the following overview of the process.

Here we use the "setuptools" build system, others are availble ("Hatching","Flit", and "PDM") in the guide linked above.

In short, these are the steps.

(1/4) Create the following files in your project root directory,

  • README.md
  • LICENCE
  • pyproject.toml

(2/4) Build a PyPi release.

From the root of your project directory, run the following command,

python3 -m build

This command will create a ./dist/ directory containing your distribution files.

(3/4) Check your distribution files.

You should really check your distribution files for errors before submitting them to pypi.org Run the following command from the root of you project directory to do so.

python3 -m twine check ./dist/*

(4/4) Upload your fresh package to pypi

If your packages passed the checks you can upload them to your pypi.org repository. Run the following command from the root of your project directory to do so.

python3 -m twine upload ./dist/*

You will be asked for your pypi user name and password.

Enjoy!

Have fun packaging python!

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

pkgexample-1.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pkgexample-1.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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