Skip to main content

hugo-python-distributions

Classifiers Description
Builds Actions Status for CI Actions status for CD pre-commit.ci status
Package PyPI version PyPI - Python Version Downloads Downloads per month Downloads per week Downloads per day PiWheels version
Meta License Hugo version Documentation prek Ruff

Binaries for the extended + withdeploy edition of the Hugo static site generator, installable via pip

This project provides wheels for Hugo so that it can be used with pip on macOS, Linux, and Windows; for Python 3.10 and later.

[!NOTE] Only the latest, stable, and to-be EOL Python versions are tested regularly. If you encounter any issues with the package on a specific Python version, please feel free to open an issue.

What is Hugo?

Hugo is a static site generator written in Go. It is designed to be fast and flexible, and it is used by many people and organizations for their websites, documentation, and personal blogs.

[!NOTE] This distribution of Hugo is currently not affiliated with the official Hugo project. Please refer to the Hugo documentation for more information on Hugo.

What version of hugo do I install?

This project, hugo is versioned alongside the Hugo releases and is aligned with the versioning of Hugo itself, which uses SemVer – but is likely versioned according to 0ver software standards based on their versioning history.

Binaries for hugo through these wheels are available for Hugo versions 0.121.2 and above, through PyPI or through releases on GitHub. If you need an older version of hugo that is not available through this package, please consider using the official Hugo binaries.

Please refer to the section on Supported platforms for a list of wheels available for supported platforms and architectures. If it does, jump to the Quickstart section to get started.

[!WARNING] Owing to the limitations of overall sizing available on PyPI for hugo, only the most recent versions of Hugo are available for download through pip, and older versions of these wheels will be deleted to make space for newer releases. If you need an older version of Hugo, please consider using the wheels that have been uploaded to the GitHub releases page or the official Hugo binaries. The former can be done via pip by downloading the .whl file, or through pipx using the URL directly (recommended). For example, if you need Hugo 0.122.0, you can run pipx install "https://github.com/agriyakhetarpal/hugo-python-distributions/releases/download/v0.122.0/hugo-0.122.0-cp311-cp311-win_amd64.whl" to download and install the wheel for Hugo 0.122.0 on Windows for Python 3.11.

Documentation

The documentation for this project is available at https://agriyakhetarpal.github.io/hugo-python-distributions/

Background

Binaries for the Hugo static site generator are available for download from the Hugo releases page. These binaries have to be downloaded and placed in an appropriate location on the system manually and the PATH environment variable has to be updated to include said location.

This project provides wheels for Hugo to be used with pip on macOS, Linux, and Windows. This allows Hugo to be installed and used in a virtual environment, which allows multiple versions of Hugo to be installed and used side-by-side in different virtual environments, where Hugo can be used as a command-line tool (a Python API is not provided at this time given the lack of such a demand for it).

Use cases

This project is designed to be used in the following scenarios:

  • You want to use Hugo as a command-line tool, but you don't want it to be installed globally on your system or do not have the necessary permissions to do so.
  • You cannot or do not want to use the official Hugo binaries
  • You want to use Hugo in a virtual environment that is isolated from the rest of your system – this also allows you to install and use multiple versions of Hugo side-by-side if needed for any reason
  • You want to use Hugo in a Python-based project, such as a static site generator that uses Hugo as a backend?
  • You want to test a new version of Hugo without having to install it globally on your system or affecting your existing Hugo installation
  • Python wheels allow for incredibly fast installation, in comparison to using other methods of installing Hugo such as system package managers
  • Easy updates to the latest version of Hugo through the use of the pip install --upgrade hugo command, and automatic updates possible too if you use a package manager such as Poetry or PDM to manage your Python dependencies or a tool such as pipx to manage your command-line tools
  • ...and more!

(Known) limitations

  • It is difficult to provide wheels for all platforms and architectures (see Supported platforms), so this project only provides wheels for the most common ones—those supported by Python platform tags, packaging standards and tooling—it is not reasonable to do so and provide releases for other platforms owing to the limited resources available on CI systems, in this case, GitHub Actions runners. For extra platforms and architectures, please refer to the Building from source section or consider using the official Hugo binaries for your purpose.
  • This project does not provide a Python API for Hugo, it just wraps its own command-line interface. The packaging infrastructure for this Python package is not designed to provide a Python API for Hugo, and it is not the goal of this project to provide one. If you need a Python API for Hugo, please refer to the Hugo documentation for further resources on how to use Hugo programmatically as needed.

Licensing

This project is licensed under the terms of the Apache 2.0 license. Hugo is available under Apache 2.0 (see the Hugo license) as well.

Security

Please refer to the Security policy for this project for more information.

Code of Conduct

This repository aims to follow the Hugo project in striving to provide a welcoming and inclusive environment for all contributors, regardless of their background and identity. Please refer to the Code of Conduct for more information that applies to all interactions in this repository and its associated spaces. It is reliant on the Contributor Covenant for its guidelines and conforms to version 2.1.

For requesting help, reporting bugs, or requesting features that are specific to Hugo's functionalities, please refer to the Hugo Discourse forum. For requesting help for hugo-python-distributions, please feel free to open an issue in this repository.

Inspirations for this project, and similar projects

Binaries

  • The official Hugo project, which is the source of the binaries provided by this project.

Naming

  • The cmake-python-distributions project by the scikit-build team provides a similar infrastructure for building and distributing CMake as a Python package to be used as a PEP 517 build-time dependency for building packages with extension modules. I used their repository's name as an inspiration for the name of this repository.

Other distributors of Hugo

  • uhugo is a Hugo binary helper that installs and updates Hugo binaries from Hugo official releases. It can be used to update the version of Hugo within Cloud providers. The difference between uHugo is that this project enables building Hugo from source and embeds the application binary into a wheel, while uHugo is a CLI to update an existing Hugo binary already present on PATH. It provides similar visions for installing Hugo via a command-line interface, even though the idea and the packaging code is fundamentally different.
  • hvm (Hugo version manager) is a project by one of the core developers of Hugo that allows downloading multiple Hugo versions and setting different default versions by adding them to PATH, thereby allowing the usage of multiple versions at once, but without the extra Python scaffolding provided here (and without pipx's run-without-install functionality of course).
  • hugo-installer is a small Node.js script which you can use to fetch the correct Hugo binary for your system and install it with npm's post-installation hook. It is similar to this project in that it provides a way to install Hugo binaries.
  • conda-forge's hugo feedstock provides a way to install Hugo binaries via the conda package format and associated package managers.

Similar projects that distribute binaries embedded in Python packages

  • zig-pypi is a project that provides a way to distribute the Zig compiler as a Python package, which can be installed via pip. It provides a similar infrastructure for building and distributing binaries as this project does for Hugo, but it fetches the Zig compiler binaries from the official Zig releases and embeds them into a Python package in a reproducible manner.
  • nodejs-wheel is a project that provides a way to unofficially distribute Node.js binaries as Python packages, which can be installed via pip, in order to use Node.js and npm in an isolated Python environment.
  • The pip-binary-factory repository provides binaries and their CLIs for various Go-based tools as Python packages.

There are several other projects in this area, but are not listed here for brevity.

Footnotes

  • This project is currently not affiliated with the official Hugo project. Please refer to the Hugo documentation for more information on Hugo.
  • The author of this project: @agriyakhetarpal, would like to express a token of gratitude to the owner of the Hugo package on PyPI (@nariman) for their kind gesture of granting access to take over the package name with the underlying provisions of PEP 541. This way, it allows users to install the package using the same name as the official Hugo project, which undoubtedly provides for a better user experience and convenience to users of this package when compared to the previous package name, python-hugo.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hugo-0.165.0.tar.gz (4.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hugo-0.165.0-py3-none-win_arm64.whl (28.7 MB view details)

Uploaded Python 3Windows ARM64

hugo-0.165.0-py3-none-win_amd64.whl (32.0 MB view details)

Uploaded Python 3Windows x86-64

hugo-0.165.0-py3-none-win32.whl (30.0 MB view details)

Uploaded Python 3Windows x86

hugo-0.165.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (30.3 MB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

hugo-0.165.0-py3-none-manylinux_2_24_s390x.manylinux_2_28_s390x.whl (29.7 MB view details)

Uploaded Python 3manylinux: glibc 2.24+ s390xmanylinux: glibc 2.28+ s390x

hugo-0.165.0-py3-none-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl (27.5 MB view details)

Uploaded Python 3manylinux: glibc 2.24+ ppc64lemanylinux: glibc 2.28+ ppc64le

hugo-0.165.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (27.6 MB view details)

Uploaded Python 3manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

hugo-0.165.0-py3-none-macosx_11_0_arm64.whl (28.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

hugo-0.165.0-py3-none-macosx_10_15_x86_64.whl (30.4 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file hugo-0.165.0.tar.gz.

File metadata

  • Download URL: hugo-0.165.0.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hugo-0.165.0.tar.gz
Algorithm Hash digest
SHA256 3dc48753876e939e82b9b258924771f90f8edbe3e64f0eb61764b8e906acd637
MD5 48e1e0579f63d394380b8b0d3ac8f9cf
BLAKE2b-256 d7715cbc8c7866ed2fce8ef9786bb8617142ebde73238fb264c83892da56464e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0.tar.gz:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: hugo-0.165.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 28.7 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hugo-0.165.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 635caab23c45425bf6abc512b09d8975b05181033eb45763c70b88bad5d99add
MD5 cc35c351be5793700d23801c73f7a12e
BLAKE2b-256 79e626986e8a47056b97fe5fbbb767cada3a816b423429486f1bd5844fa4c74e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-win_arm64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: hugo-0.165.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 32.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hugo-0.165.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9278efbb0d67defd6fa224cee4264ec69565a63419206df6a36acabc5f9e141a
MD5 f74bbbfd2c71918267e030612123dffa
BLAKE2b-256 47b5d1d2f2c4f2a02bf49c64ccf030fa11ffc0c0566ee854d756f28fd9a1ccf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-win_amd64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-win32.whl.

File metadata

  • Download URL: hugo-0.165.0-py3-none-win32.whl
  • Upload date:
  • Size: 30.0 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hugo-0.165.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 dcbc6a146e91123979568b42101b1dc3670908a2e483be71d8ab29803f8d703b
MD5 2278765a5e5a7c135ea795da45fca302
BLAKE2b-256 dbda615a6e2390806511c838e3033f60bec0a9097f207d1dadd44ab2e698fc17

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-win32.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 98f341a74a93cbf14fc307f368228013492b21528357e4c113dd59785b05741d
MD5 bc3ded498ff6097a0e33344df109d557
BLAKE2b-256 b1d6875aa2b9a62487d02a1f31247f8d11a3aa9bc7fbba75742c60e6ff45efe1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-manylinux_2_24_s390x.manylinux_2_28_s390x.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-manylinux_2_24_s390x.manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 61f73f146e48064564082280d6440a80a192526c33333f5837dcaeec23fa4724
MD5 d57fbcb4e6765619711dea8e6e0250db
BLAKE2b-256 c628c707d2f90d1872809beabdb87cc4f4acc545c539783154b7e5a56a30497b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-manylinux_2_24_s390x.manylinux_2_28_s390x.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 f789893f2ecd6f0601102e116e0757d115eb167916f9de0a93861094b53a87f9
MD5 2d8ea7bdbdad85268881872bbea0430e
BLAKE2b-256 1f6e8a6a8bbeda3ad6d0bdc508b68852b41b28698aa2e9b4c1d4b2f9afb3510f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5f77c48723e34cb83140c581e2428df34e2ec7b75eec0ce0a65bcdfce5c40360
MD5 1bb5c3ce97fa2085ba743cefbf866140
BLAKE2b-256 cd8585c6b679d45b2891d642eef7ba9729c93e378e47a80f1695ae66b7907a15

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1117ae497a6e239669b95d653dcc5c2d32ca59d62efbc1514263ac20b882b55
MD5 64ae16a6a7ced56476ca13120aede9c0
BLAKE2b-256 8b5e56cf05e869ea2500065b813a15c5b7b49806a57b5f918a5e73490163e7ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-macosx_11_0_arm64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugo-0.165.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for hugo-0.165.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 957007d09b66a2bc0b23af2c069b2b8b40b1eac3b089561fe7049a9ff04c2019
MD5 9e84f5be29cf045a31cbdbee55627843
BLAKE2b-256 3fc78b458350639be7837fd0199e2a42bea98820cee052f868f87aa142abbce7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo-0.165.0-py3-none-macosx_10_15_x86_64.whl:

Publisher: cd.yml on agriyakhetarpal/hugo-python-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.166.0

10 files

This release

0.165.0 This release

10 files

0.164.0

10 files

0.163.3

10 files

0.163.2

10 files

0.163.1

10 files

0.163.0

10 files

0.162.1

10 files

0.162.0.1

10 files

0.162.0

10 files

0.161.1

10 files

0.161.0

10 files

0.160.1

10 files

0.160.0

10 files

0.159.2

10 files

0.159.1

10 files

0.159.0

10 files

0.158.0

10 files

0.157.0

10 files

0.156.0

10 files

0.155.3

10 files

0.155.2

10 files

0.155.1

10 files

0.155.0

10 files

0.154.5

10 files

0.154.4

10 files

0.154.3

10 files

0.154.2

10 files

0.154.1

10 files

0.154.0

10 files

0.153.5

10 files

0.153.4

10 files

0.153.3

10 files

0.153.2

10 files

0.153.1

10 files

0.153.0

10 files

0.152.2

10 files

0.152.1

10 files

0.152.0

10 files

0.151.2

10 files

0.151.1

10 files

0.151.0

10 files

0.150.1

10 files

0.150.0

10 files

0.149.1

10 files

0.149.0

10 files

0.148.2

10 files

0.148.1

10 files

0.148.0

10 files

0.147.9

10 files

0.147.8

10 files

0.147.7

1 file

0.147.6

1 file

0.147.5

1 file

0.147.4

1 file

0.147.3

1 file

0.147.2

1 file

0.147.1

1 file

0.147.0

1 file

0.146.7

1 file

0.146.6

1 file

0.146.5

1 file

0.146.4

1 file

0.146.3

1 file

0.146.2

1 file

0.146.1

1 file

0.146.0

1 file

0.145.0

1 file

0.144.2

1 file

0.144.1

1 file

0.144.0

1 file

0.143.1

1 file

0.143.0

1 file

0.142.0

1 file

0.141.0

1 file

0.140.2

1 file

0.140.1

1 file

0.140.0

1 file

0.139.5

1 file

0.139.4

1 file

0.139.3

1 file

0.139.2

1 file

0.139.1

1 file

0.139.0

1 file

0.138.0

1 file

0.137.1

1 file

0.137.0

1 file

0.136.5

1 file

0.136.4

1 file

0.136.3

1 file

0.136.2

1 file

0.136.1

1 file

0.136.0

1 file

0.135.0

1 file

0.134.3

1 file

0.134.2

1 file

0.134.1

1 file

0.134.0

1 file

0.133.1

1 file

0.133.0

1 file

0.132.2

1 file

0.132.1

1 file

0.132.0

1 file

0.131.0

1 file

0.130.0

1 file

0.129.0

1 file

0.128.2

1 file

0.128.1

1 file

0.128.0

1 file

0.127.0

1 file

0.126.3

1 file

0.126.2

1 file

0.126.1

1 file

0.126.0

1 file

0.125.7

1 file

0.125.6

1 file

0.125.5

1 file

0.125.4

1 file

0.125.3

1 file

0.125.2

1 file

0.125.1

1 file

0.125.0

1 file

0.124.1

1 file

0.124.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page