Skip to main content

Tutorial on publishing to PyPI

Project description

pypi-bonjour

Tutorial on publishing to PyPI.

Tutorial

The pypi-bonjour package gradually adds more functionality over different versions.

v0.0.1: the hello-world example

This version publishes the barebone skeleton code to pypi which includes:

  • the source code with the single pure Python function hello_world (in contrast with pybinded functions)
  • a pyproject.toml file for enabling pip install of the package
  • the GitHub workflow that publishes the package to pypi upon release publish

See this video by Prof.Qiusheng Wu for an introduction to PyPI packaging.

v0.0.2: add dependencies

This version adds NumPy as one of the dependencies.

v0.0.3: add pybind11-binded C++ function

This version adds a function that is pybind11-binded from C++ from Python without the use of CMake. See here for an intro regarding using pybind11 with setuptools.

See this video by anthonywritescode for an introduction to manylinux.

To build the wheels only for CPython (what is PyPy...), non alpine linux (what is musllinux...), x86_64 and aarch64 platforms use the following command:

export CIBW_SKIP="pp* *musllinux*"
export CIBW_ARCHS="x86_64 aarch64"
cibuildwheel

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

pypi_bonjour-0.0.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distributions

pypi_bonjour-0.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86.7 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (85.3 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ ARM64

pypi_bonjour-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86.8 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (85.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

pypi_bonjour-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (85.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pypi_bonjour-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (85.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (83.8 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pypi_bonjour-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (85.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (83.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pypi_bonjour-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (84.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pypi_bonjour-0.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (83.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

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