diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 368b3ac..50f05f9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,7 +35,7 @@ jobs: git apply scripts/ci/tools/patches/0001-use-temporary-directory-to-store-eggs.patch pipx run build --sdist --outdir dist/ - - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + - uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: source_distribution path: dist @@ -53,7 +53,7 @@ jobs: - name: Set up Go toolchain uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: '1.22.1' + go-version: '1.22.2' cache: false - name: Install MinGW compiler(s) @@ -70,7 +70,7 @@ jobs: hugo env --logLevel debug - name: Upload wheels - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_windows_amd64 path: ./wheelhouse/*.whl @@ -98,7 +98,7 @@ jobs: hugo env --logLevel debug - name: Upload wheels - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_linux_amd64 path: ./wheelhouse/*.whl @@ -131,7 +131,7 @@ jobs: hugo env --logLevel debug - name: Upload wheels - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_linux_aarch64 path: ./wheelhouse/*.whl @@ -149,7 +149,7 @@ jobs: - name: Set up Go toolchain uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: '1.22.1' + go-version: '1.22.2' cache: false check-latest: true @@ -165,7 +165,7 @@ jobs: hugo env --logLevel debug - name: Upload wheels - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_macos_x86_64 path: ./wheelhouse/*.whl @@ -183,7 +183,7 @@ jobs: - name: Set up Go toolchain uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: '1.22.1' + go-version: '1.22.2' cache: false check-latest: true @@ -199,7 +199,7 @@ jobs: hugo env --logLevel debug - name: Upload wheels - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_macos_arm64 path: ./wheelhouse/*.whl @@ -227,26 +227,25 @@ jobs: steps: - name: Download all artifacts - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 + uses: actions/download-artifact@8caf195ad4b1dee92908e23f56eeb0696f1dd42d # v4.1.5 with: path: upload/ merge-multiple: true - - name: Sign artifacts with Sigstore - uses: sigstore/gh-action-sigstore-python@61f6a500bbfdd9a2a339cf033e5421951fbc1cd2 - with: - inputs: >- - ./upload/*.whl - ./upload/*.tar.gz - - uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 if: github.event_name == 'release' && github.event.action == 'published' with: - # Remember to tell (test-)pypi about this repo before publishing # Comment this line out to publish to PyPI # repository-url: https://test.pypi.org/legacy/ packages-dir: upload + - name: Sign artifacts with Sigstore + uses: sigstore/gh-action-sigstore-python@61f6a500bbfdd9a2a339cf033e5421951fbc1cd2 # v2.1.1 + with: + inputs: >- + ./upload/*.whl + ./upload/*.tar.gz + - name: Publish to GitHub Releases uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # v2.0.4 if: github.event_name == 'release' && github.event.action == 'published' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcff45f..73b1b30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: id: setup-go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: "1.22.1" + go-version: '1.22.2' cache: false check-latest: true @@ -108,7 +108,7 @@ jobs: id: setup-go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: "1.22.1" + go-version: '1.22.2' cache: false check-latest: true @@ -176,7 +176,7 @@ jobs: hugo env --logLevel debug - name: Upload artifacts for debugging - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2 with: name: wheels_${{ matrix.runs-on }}_${{ matrix.architecture }}_py${{ matrix.python-version }} path: ./wheelhouse/*.whl diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a81f40a..2ecd5f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.5.0" + rev: "v4.6.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -18,7 +18,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.5" + rev: "v0.3.7" hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 20bcc4f..6bc3ec5 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -61,7 +61,7 @@ representative at an online or offline event. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at -[INSERT CONTACT METHOD]. +`[agriyakhetarpal] (at) gmail (dot) com`. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/setup.py b/setup.py index 0299dfb..4156686 100644 --- a/setup.py +++ b/setup.py @@ -13,17 +13,17 @@ from setuptools.command.build_py import build_py from wheel.bdist_wheel import bdist_wheel -HUGO_VERSION = "0.124.1" +HUGO_VERSION = "0.125.1" HUGO_RELEASE = ( f"https://github.com/gohugoio/hugo/archive/refs/tags/v{HUGO_VERSION}.tar.gz" ) # Commit hash for current HUGO_VERSION, needs to be updated when HUGO_VERSION is updated # Tip: git ls-remote --tags https://github.com/gohugoio/hugo v -HUGO_RELEASE_COMMIT_HASH = "db083b05f16c945fec04f745f0ca8640560cf1ec" +HUGO_RELEASE_COMMIT_HASH = "68c5ad638c2072969e47262926b912e80fd71a77" # The pooch tool will download the tarball into the hugo_cache/ directory. # We will point the build command to that location to build Hugo from source HUGO_CACHE_DIR = "hugo_cache" -HUGO_SHA256 = "0beb0436f6bd90abb425523229a37f1d31e2e9c7ba9fac4556a72aab3b11bfef" +HUGO_SHA256 = "dc902d7a2983925b218e17d21e510867a97e0b8c0e0093e4a6a22dabdb21c230" FILE_EXT = ( ".exe" if (sys.platform == "win32" or os.environ.get("GOOS") == "windows") else "" )