Skip to content

Commit f555826

Browse files
author
Danielle Thomas
authored
1.5.0
1.5.0
2 parents d26be3c + ada1ba3 commit f555826

30 files changed

+364
-315
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ on:
2424
jobs:
2525
reusable-build:
2626
if: ${{ inputs.if }}
27-
name: stable - ${{ inputs.target }} - node@18
27+
name: stable - ${{ inputs.target }} - [email protected]
2828
runs-on: ${{ inputs.host }}
2929
steps:
30-
- uses: actions/checkout@v3
30+
- name: Checkout
31+
uses: actions/checkout@v4
3132
- name: Cache cargo
32-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3334
with:
3435
path: |
3536
~/.cargo/registry/index/
@@ -38,7 +39,8 @@ jobs:
3839
.cargo-cache
3940
target/
4041
key: ${{ inputs.target }}-cargo-${{ inputs.host }}
41-
- uses: goto-bus-stop/setup-zig@v2
42+
- name: Install zig
43+
uses: goto-bus-stop/setup-zig@v2
4244
if: ${{ inputs.target == 'armv7-unknown-linux-gnueabihf' }}
4345
with:
4446
version: 0.10.0
@@ -106,7 +108,7 @@ jobs:
106108
uses: PyO3/maturin-action@v1
107109
with:
108110
target: ${{ inputs.target }}
109-
args: --release -i python3.9 -m Cargo.toml
111+
args: --release -i python3.13 -m Cargo.toml
110112
docker-options: |
111113
--mount type=bind,source=/usr/local/lib/android/sdk/ndk/25.2.9519653,target=/usr/local/lib/android/sdk/ndk/25.2.9519653
112114
-e CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=/usr/local/lib/android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
@@ -120,7 +122,7 @@ jobs:
120122
uses: PyO3/maturin-action@v1
121123
with:
122124
target: ${{ inputs.target }}
123-
args: --release -i python3.9 -m Cargo.toml
125+
args: --release -i python3.13 -m Cargo.toml
124126
docker-options: |
125127
--mount type=bind,source=/usr/local/lib/android/sdk/ndk/25.2.9519653,target=/usr/local/lib/android/sdk/ndk/25.2.9519653
126128
-e CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=/usr/local/lib/android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang
@@ -131,25 +133,25 @@ jobs:
131133
-e ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653
132134
- name: Setup x86 Python
133135
if: ${{ inputs.target == 'i686-pc-windows-msvc' }}
134-
uses: actions/setup-python@v4
136+
uses: actions/setup-python@v5
135137
with:
136-
python-version: "3.9"
138+
python-version: "3.13"
137139
architecture: "x86"
138-
- name: Build
140+
- name: Build (non-docker &&non-android)
139141
if: ${{ inputs.publish != 'true' && !inputs.docker && !contains(inputs.target,'android') }}
140142
uses: PyO3/maturin-action@v1
141143
with:
142144
target: ${{ inputs.target }}
143-
args: --release -i python3.9 -m Cargo.toml
144-
- name: Publish
145+
args: --release -i python3.13 -m Cargo.toml
146+
- name: Publish (non-docker && non-android)
145147
if: ${{ inputs.publish == 'true' && !inputs.docker && !contains(inputs.target,'android') }}
146148
uses: PyO3/maturin-action@v1
147149
with:
148150
command: publish
149151
target: ${{ inputs.target }}
150-
args: --no-sdist -i python3.9 -m Cargo.toml -u __token__ -p ${{ secrets.MATURIN_PASSWORD }}
152+
args: --no-sdist -i python3.13 -m Cargo.toml -u __token__ -p ${{ secrets.MATURIN_PASSWORD }}
151153
- name: Upload artifact
152-
uses: actions/upload-artifact@v3
154+
uses: actions/upload-artifact@v4
153155
with:
154156
name: bindings-${{ inputs.target }}
155157
path: target/wheels/*.whl

.github/workflows/ci.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
'on':
77
push:
88
branches:
9-
- main
9+
- '**'
1010
tags-ignore:
1111
- '**'
1212
paths-ignore:
@@ -21,7 +21,7 @@ jobs:
2121
name: Udeps
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- uses: jrobsonchase/[email protected]
2626
- uses: ./.github/workflows/rust-cache
2727
- uses: actions-rs/cargo@v1
@@ -32,7 +32,7 @@ jobs:
3232
name: Rustfmt
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636
- uses: jrobsonchase/[email protected]
3737
- uses: actions-rs/cargo@v1
3838
with:
@@ -42,7 +42,7 @@ jobs:
4242
name: Clippy
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v4
4646
- uses: jrobsonchase/[email protected]
4747
- uses: ./.github/workflows/rust-cache
4848
- uses: actions-rs/cargo@v1
@@ -53,7 +53,7 @@ jobs:
5353
name: Test
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v4
5757
- uses: jrobsonchase/[email protected]
5858
- uses: ./.github/workflows/rust-cache
5959
- name: Run Tests
@@ -64,7 +64,7 @@ jobs:
6464
name: Decide on Publishing
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- name: Decide
6969
id: decide
7070
run: |
@@ -94,7 +94,7 @@ jobs:
9494
with:
9595
docker: ${{ matrix.settings.docker }}
9696
host: ${{ matrix.settings.host }}
97-
if: ${{ matrix.settings.if }}
97+
if: ${{ matrix.settings.if || 'true' }}
9898
publish: ${{ needs.decide.outputs.publish || 'false' }}
9999
setup: ${{ matrix.settings.setup }}
100100
target: ${{ matrix.settings.target }}
@@ -104,54 +104,38 @@ jobs:
104104
settings:
105105
- host: macos-latest
106106
target: x86_64-apple-darwin
107-
if: ${{ github.ref == 'refs/heads/main' }}
108107
- host: windows-latest
109108
target: x86_64-pc-windows-msvc
110-
if: true
111109
- host: windows-latest
112-
if: ${{ github.ref == 'refs/heads/main' }}
113110
target: i686-pc-windows-msvc
114111
- host: ubuntu-latest
115-
if: true
116112
target: x86_64-unknown-linux-gnu
117113
- host: ubuntu-latest
118-
if: true
119114
target: x86_64-unknown-linux-musl
120115
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
121116
- host: macos-latest
122-
if: true
123117
target: aarch64-apple-darwin
124118
- host: macos-latest
125-
if: ${{ github.ref == 'refs/heads/main' }}
126119
target: universal2-apple-darwin
127120
- host: ubuntu-latest
128-
if: true
129121
target: aarch64-unknown-linux-gnu
130122
docker: ghcr.io/rust-cross/manylinux2014-cross:aarch64
131123
- host: ubuntu-latest
132-
if: ${{ github.ref == 'refs/heads/main' }}
133124
target: armv7-unknown-linux-gnueabihf
134125
setup: |
135126
sudo apt-get update
136127
sudo apt-get install gcc-arm-linux-gnueabihf -y
137128
- host: ubuntu-latest
138-
# need to build python against the android ndk
139-
if: false
140129
target: aarch64-linux-android
141130
- host: ubuntu-latest
131+
target: armv7-linux-androideabi
142132
# need to build python against the android ndk
143133
if: false
144-
target: armv7-linux-androideabi
145134
- host: ubuntu-latest
146-
if: ${{ github.ref == 'refs/heads/main' }}
147135
target: aarch64-unknown-linux-musl
148136
- host: windows-latest
149137
target: aarch64-pc-windows-msvc
150-
# target not supported by the 'ring' rust dependency (ssl library partially built by gcc)
151-
# https://github.com/briansmith/ring/issues/1167
152-
if: false
153138
build-freebsd:
154-
if: github.ref == 'refs/heads/main'
155139
needs: decide
156140
runs-on: ubuntu-22.04
157141
name: Build FreeBSD
@@ -160,7 +144,7 @@ jobs:
160144
steps:
161145
- name: Run lscpu
162146
run: lscpu
163-
- uses: actions/checkout@v3
147+
- uses: actions/checkout@v4
164148
- name: Build
165149
id: build
166150
uses: vmactions/freebsd-vm@v1
@@ -175,7 +159,7 @@ jobs:
175159
usesh: true
176160
mem: 3000
177161
prepare: |
178-
pkg install -y -f curl libnghttp2 python3 yarn
162+
pkg install -y -f curl libnghttp2 python3 yarn cmake llvm
179163
alias curl="curl --retry 5 --retry-all-errors"
180164
curl https://sh.rustup.rs -sSf --output rustup.sh
181165
sh rustup.sh -y --profile minimal --default-toolchain beta
@@ -207,7 +191,7 @@ jobs:
207191
# make the rsync back faster
208192
rm -rf .env/ target/debug/ target/release/
209193
- name: Upload artifact
210-
uses: actions/upload-artifact@v3
194+
uses: actions/upload-artifact@v4
211195
with:
212196
name: bindings-freebsd
213197
path: target/wheels/*.whl
@@ -220,7 +204,7 @@ jobs:
220204
runs-on: ubuntu-latest
221205
name: Tag Release
222206
steps:
223-
- uses: actions/checkout@v2
207+
- uses: actions/checkout@v4
224208
- uses: jrobsonchase/[email protected]
225209
- name: Tag
226210
run: |

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.5.0:
2+
- Adds `pooling_enabled` to listener builders, allowing the endpoint to pool with other endpoints with the same host/port/binding
3+
14
## 1.4.0:
25

36
- Rename `policy` to `traffic_policy` in Listener builders and `ngrok.forward`

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "ngrok-python"
4-
version = "1.4.0"
4+
version = "1.5.0"
55
description = "The ngrok Agent SDK for Python"
66

77
[lib]
@@ -16,22 +16,22 @@ lazy_static = "1.4.0"
1616
log = "0.4"
1717
# pin mio until all dependencies are also on windows-sys 0.48
1818
# https://github.com/microsoft/windows-rs/issues/2410#issuecomment-1490802715
19-
mio = { version = "=0.8.6" }
20-
ngrok = { version = "=0.14.0-pre.14" }
19+
mio = { version = "1.0.3" }
20+
ngrok = { version = "0.15.0" }
2121
pyo3 = { version = "0.18.1", features = ["abi3", "abi3-py37", "extension-module", "multiple-pymethods"]}
2222
pyo3-asyncio = { version = "0.18.0", features = ["attributes", "tokio-runtime"] }
2323
pyo3-log = { version = "0.8.1" }
2424
parking_lot = "0.12.1"
2525
regex = "1.9.5"
26-
rustls = "0.22.2"
26+
rustls = "0.23.25"
2727
rustls-pemfile = "2.0.0"
2828
tokio = { version = "1.23.0", features = ["sync"] }
2929
tracing = { version = "0.1.37", features = ["log", "log-always"] }
3030
url = "2.4.0"
3131

3232
[build-dependencies]
33-
prost-build = "0.11.3"
34-
pyo3-build-config = "0.17.3"
33+
prost-build = "0.13.5"
34+
pyo3-build-config = "0.24.1"
3535

3636
[profile.release]
3737
lto = true

docs/.doctrees/environment.pickle

8.51 KB
Binary file not shown.
1.46 KB
Binary file not shown.

docs/.doctrees/index.doctree

2.09 KB
Binary file not shown.
80 Bytes
Binary file not shown.

docs/.doctrees/listener.doctree

80 Bytes
Binary file not shown.

docs/.doctrees/module.doctree

520 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)