Skip to content

Commit 519ecec

Browse files
committed
fix: poetry fully dropped in github actions
1 parent 50fb82b commit 519ecec

File tree

72 files changed

+15282
-20031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+15282
-20031
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ jobs:
1010
- uses: actions/setup-python@v4
1111
with:
1212
python-version: "3.11.8"
13-
- name: Install Poetry
14-
run: |
15-
curl -sSL https://install.python-poetry.org | python - -y
16-
poetry source add pypi
17-
poetry lock --no-update
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v5
15+
- name: install deps
1816
- name: build docs
1917
run: |
20-
poetry install --with docs
21-
poetry run docsbuild
18+
poetry sync --docs
19+
uv run task docsbuild
2220
- name: Deploy docs
2321
uses: JamesIves/github-pages-deploy-action@v4
2422
with:

.github/workflows/release.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ on:
1010
description: build binaries
1111
required: true
1212
default: true
13-
13+
env:
14+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
1415
jobs:
1516
android:
17+
if: github.event.inputs.goneonize
1618
runs-on: ubuntu-20.04
1719
steps:
1820
- uses: actions/checkout@v4
@@ -67,6 +69,7 @@ jobs:
6769
name: Android
6870
path: neonize/*.so
6971
zig:
72+
if: github.event.inputs.goneonize
7073
runs-on: ubuntu-20.04
7174
steps:
7275
- uses: actions/checkout@v4
@@ -86,7 +89,6 @@ jobs:
8689
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
8790
- name: build
8891
run: |
89-
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
9092
mkdir LIBS
9193
export CGO_ENABLED=1
9294
#AMD64
@@ -130,6 +132,7 @@ jobs:
130132
LIBS/*.so
131133
LIBS/*.dll
132134
linux:
135+
if: github.event.inputs.goneonize
133136
runs-on: ubuntu-20.04
134137
steps:
135138
- uses: actions/checkout@v4
@@ -150,7 +153,6 @@ jobs:
150153
run: sudo apt update && sudo apt install wget gcc-aarch64-linux-gnu gcc-s390x-linux-gnu gcc-riscv64-linux-gnu -y
151154
- name: build
152155
run: |
153-
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
154156
mkdir LIBS
155157
#AMD64/X86_64
156158
export CGO_ENABLED=1
@@ -191,6 +193,7 @@ jobs:
191193
name: Linux
192194
path: LIBS/*.so
193195
darwin:
196+
if: github.event.inputs.goneonize
194197
runs-on: macos-latest
195198
steps:
196199
- uses: actions/checkout@v4
@@ -209,7 +212,6 @@ jobs:
209212
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
210213
- name: build
211214
run: |
212-
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
213215
mkdir LIBS
214216
export PATH="/Users/runner/.local/bin:$PATH"
215217
# Set necessary environment variables for building on Darwin
@@ -246,12 +248,14 @@ jobs:
246248
runs-on: ubuntu-latest
247249
needs: [android, zig, linux, darwin]
248250
steps:
249-
- name: Download Artifact
251+
- if: github.event.inputs.goneonize
252+
name: Download Artifact
250253
uses: actions/download-artifact@v4
251254
with:
252255
merge-multiple: true
253256
path: sharedlib
254-
- name: Upload shared library to draft release
257+
- if: github.event.inputs.goneonize
258+
name: Upload shared library to draft release
255259
uses: softprops/action-gh-release@v1
256260
with:
257261
draft: false
@@ -271,9 +275,11 @@ jobs:
271275
run: |
272276
uv sync --dev
273277
uv run task version neonize --set-version ${{ github.event.inputs.version }}
274-
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
278+
- if: github.event.inputs.goneonize
279+
name: set target goneonize to ${{ github.event.inputs.version }}
280+
run: uv run task version goneonize --set-version ${{ github.event.inputs.version }}
281+
- if: ${{ !github.event.inputs.goneonize }}
282+
name: set target goneonize to last release
283+
run: uv run task version goneonize --last
275284
- name: Publish
276-
run: |
277-
poetry version ${{ github.event.inputs.version }}
278-
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
279-
uv build && uv publish
285+
run: uv build && uv publish

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ celerybeat.pid
127127

128128
# Environments
129129
.env
130+
.vscode
130131
.venv
131132
env/
132133
venv/

goneonize/build.bat

Lines changed: 0 additions & 24 deletions
This file was deleted.

goneonize/build.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)