Skip to content

Commit

Permalink
Merge pull request #21 from MikeMoore63/feat/upgradegoto1.23
Browse files Browse the repository at this point in the history
Feat/upgradegoto1.23
  • Loading branch information
MikeMoore63 authored Nov 9, 2024
2 parents 4e6aea8 + 20a0ff1 commit 7f1988d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module pyrpmdb

go 1.22
go 1.23

require (
github.com/glebarez/go-sqlite v1.22.0
Expand Down
4 changes: 2 additions & 2 deletions installGo.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Install the current Go release
param(
[string]$w='c:\go',
[string]$v='1.22.7'
[string]$v='1.23.2'
)
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
$OutputVariable = (go version) | Out-String
Expand All @@ -16,7 +16,7 @@ $env:GOPATH= 'C:\go'
$newPath = ('{0}\bin;C:\Program Files\Go\bin;{1}' -f $env:GOPATH, $env:PATH);
Write-Host ('Updating PATH: {0}' -f $newPath);
[Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::User);
$url = 'https://dl.google.com/go/go1.21.12.windows-amd64.zip';
$url = 'https://dl.google.com/go/go1.23.2.windows-amd64.zip';
Write-Host ('Downloading {0} ...' -f $url);
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
Invoke-WebRequest -Uri $url -OutFile 'go.zip';
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ switch_eol_centos_repos
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" == "x86_64" ]
then
mkdir -p /usr/local
curl https://dl.google.com/go/go1.22.7.linux-amd64.tar.gz | tar -C /usr/local -xzf -
curl https://dl.google.com/go/go1.23.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
fi
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" == "aarch64" ]
then
mkdir -p /usr/local
curl https://dl.google.com/go/go1.22.7.linux-arm64.tar.gz | tar -C /usr/local -xzf -
curl https://dl.google.com/go/go1.23.2.linux-arm64.tar.gz | tar -C /usr/local -xzf -
fi
'''
environment = """
Expand All @@ -44,20 +44,20 @@ PATH=$PATH:/usr/local/go/bin

[tool.cibuildwheel.macos]
before-all = '''
brew install go@1.22
brew install go@1.23
'''
environment = "PATH=/usr/local/opt/go@1.22/bin:/opt/homebrew/opt/go@1.22/bin:$PATH"
environment = "PATH=/usr/local/opt/go@1.23/bin:/opt/homebrew/opt/go@1.23/bin:$PATH"

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = '''
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ]
then
wget https://golang.org/dl/go1.22.7.linux-amd64.tar.gz;tar -C /usr/local -xzf go1.22.7.linux-amd64.tar.gz
wget https://golang.org/dl/go1.23.2.linux-amd64.tar.gz;tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz
fi
if [ "${AUDITWHEEL_ARCH}" == "aarch64" ]
then
wget https://golang.org/dl/go1.22.7.linux-arm64.tar.gz;tar -C /usr/local -xzf go1.22.7.linux-arm64.tar.gz
wget https://golang.org/dl/go1.23.2.linux-arm64.tar.gz;tar -C /usr/local -xzf go1.23.2.linux-arm64.tar.gz
fi
'''

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pyrpmdb
version = 0.1.26
version = 0.1.27
author = Mike Moore
author_email = [email protected]
license = MIT
Expand Down

0 comments on commit 7f1988d

Please sign in to comment.