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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pkgexample-1.0.2.tar.gz
.
File metadata
- Download URL: pkgexample-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7eeb0c3180dc345c20c44b3d16552e6ee7a93b52be4f119de124b45bee961a3 |
|
MD5 | aa27ad142f3994af42a375874bb0dc4d |
|
BLAKE2b-256 | 39e140c324cc4eb4d67608b33ddb87d40fb6a5b244fab5d7d7119eb9ae7fba16 |
File details
Details for the file pkgexample-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pkgexample-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c9a1d597f7a65d85b9d5e5bcb91e3946fa1bd12ce70576900f0b6a90ed1a46 |
|
MD5 | 37164712f11705fbdf7c88fb7697e26f |
|
BLAKE2b-256 | 302ef3620a2ee1ad762c16234712fbff3fcf414d844f311aee20a1246997383b |