Skip to main content

Clang-Format is an LLVM-based code formatting tool

Project description

clang-format Python distribution

PyPI Release

This project packages the clang-format utility as a Python package. It allows you to install clang-format directly from PyPI:

python -m pip install clang-format

This projects intends to release a new PyPI package for each major and minor release of clang-format.

Building new releases

The clang-format-wheel repository provides the build logic to build and publish binary wheels of the clang-format utility.

In order to add a new release, the following steps are necessary:

On manual triggers, the following input variables are available:

  • use_qemu: Whether to build targets that require emulation (default: true)
  • llvm_version: Override the LLVM version (default: "")
  • wheel_version: Override the wheel packaging version (default "0")

Acknowledgments

This repository extends the great work of several other projects:

  • clang-format itself is provided by the LLVM project under the Apache 2.0 license with exceptions.
  • The build logic is based on scikit-build which greatly reduces the amount of low level code necessary to package clang-format.
  • The scikit-build packaging examples of CMake and Ninja were very helpful in packaging clang-format.
  • The CI build process is controlled by cibuildwheel which makes building wheels across a number of platforms a pleasant experience (!)

Special thanks goes to mgevaert who initiated this project and maintained it until 2021.

We are grateful for the generous provisioning with CI resources that GitHub currently offers to Open Source projects.

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

clang-format-11.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distributions

clang_format-11.1.0-py2.py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

clang_format-11.1.0-py2.py3-none-win32.whl (2.0 MB view details)

Uploaded Python 2 Python 3 Windows x86

clang_format-11.1.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ x86-64

clang_format-11.1.0-py2.py3-none-manylinux_2_12_i686.manylinux2010_i686.whl (1.1 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ i686

clang_format-11.1.0-py2.py3-none-macosx_10_9_universal2.whl (889.1 kB view details)

Uploaded Python 2 Python 3 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file clang-format-11.1.0.tar.gz.

File metadata

  • Download URL: clang-format-11.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clang-format-11.1.0.tar.gz
Algorithm Hash digest
SHA256 4f6d9d33bf52a1e23d5eda47b09707591d3eb19f1a2e40de12f924a71f425962
MD5 11350a245097a9111333d19530eb3780
BLAKE2b-256 07d337cfc13aaa8edf27251aa07455a6f8c0ea95bf591a2822fa77083df5ac70

See more details on using hashes here.

Provenance

File details

Details for the file clang_format-11.1.0-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: clang_format-11.1.0-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clang_format-11.1.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e6986ae619fafeaa7924f6c745518d895ca1b2b7e2fcc3cb9b57d0d7a6aa305b
MD5 59709dd19d224dab5c0f5ee4748cf2d1
BLAKE2b-256 1d9c7b1621ea1131fe085dbd47f1ba9e1f515c4334b0f64b07e974c5c856ee9b

See more details on using hashes here.

Provenance

File details

Details for the file clang_format-11.1.0-py2.py3-none-win32.whl.

File metadata

  • Download URL: clang_format-11.1.0-py2.py3-none-win32.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clang_format-11.1.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 06c0a8081b2e69d7eb1aba446e579cbc0bddd9411a5b28222de9311c523ea081
MD5 e8b41ab6012f3ed33eba45ac78798b11
BLAKE2b-256 c2a0f7cef35d0d019b60333ce9acf4ebaadec1b208752e3e462a19e1a909feab

See more details on using hashes here.

Provenance

File details

Details for the file clang_format-11.1.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-11.1.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0da463012d74ad3335b6bccdb6f0721b12beac6acacc9694e2abcfc241695683
MD5 8152df2d4b8936cb828b39492f1fd9c4
BLAKE2b-256 4dfbafd60536781864385b742b1f3aa60b9959fdc63e652f63fce15dee0d17ec

See more details on using hashes here.

Provenance

File details

Details for the file clang_format-11.1.0-py2.py3-none-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for clang_format-11.1.0-py2.py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 f1083d728bcd728ebddc49c9225f33cd2d213b3b6c36d9df5c94af2af0c10277
MD5 9bf80c1d751b26ba9e54d21645513104
BLAKE2b-256 65ea3dacbe855124094332d097ac7d23ba36b6fa7722303ed0d5c5660799cab9

See more details on using hashes here.

Provenance

File details

Details for the file clang_format-11.1.0-py2.py3-none-macosx_10_9_universal2.whl.

File metadata

  • Download URL: clang_format-11.1.0-py2.py3-none-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 889.1 kB
  • Tags: Python 2, Python 3, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clang_format-11.1.0-py2.py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c0feccbe91e89bb4e866d51118e119902c04be11b0dc93af693b5da8f9e3818a
MD5 191ad826a0e28bda8699bd2804f7201b
BLAKE2b-256 8af51d63d47896cbd8c25075fd4dada011a9b06df9d3af6ed9ed47275c462364

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