Skip to content

Commit

Permalink
馃摏 Merge to upstream & resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Apr 19, 2024
2 parents 0645456 + 1d947a1 commit 97a7eb4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 27 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_VERSION>
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 ""
)
Expand Down

0 comments on commit 97a7eb4

Please sign in to comment.