Skip to content

Commit

Permalink
chore: test release after mr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jselig-rigetti committed Apr 3, 2024
1 parent c1d4ebd commit e6b7368
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/action-common-python-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
run: |
pip install toml
python crates/python/scripts/patch_grpc_web.py
cargo update
cargo update -p hyper-proxy qcs-sdk-python-grpc-web
# must be build or sdist
- if: inputs.maturin-command == 'build'
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Release Python
on:
release:
types: [published]
push:
branches: [grpc-web-rc]
workflow_dispatch:
description: "Manually publish release"
inputs:
Expand All @@ -13,12 +15,12 @@ on:

jobs:
is-python-release:
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'python/v')
if: true || github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'python/v')
runs-on: ubuntu-latest
steps:
- run: echo "Release tag starts with python/v, proceeding with release"
should-publish-wheels:
if: (github.event_name == 'workflow_dispatch' && inputs.publishWheels) || (github.event_name == 'release' && !github.event.release.prerelease)
if: true || (github.event_name == 'workflow_dispatch' && inputs.publishWheels) || (github.event_name == 'release' && !github.event.release.prerelease)
runs-on: ubuntu-latest
steps:
- run: echo "Publishing wheels"
Expand Down Expand Up @@ -120,8 +122,8 @@ jobs:
package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
steps:
- uses: actions/download-artifact@v3
- name: Publish to PyPI
uses: messense/maturin-action@v1
with:
command: upload
args: --skip-existing wheels_${{ matrix.package-name }}/*
# - name: Publish to PyPI
# uses: messense/maturin-action@v1
# with:
# command: upload
# args: --skip-existing wheels_${{ matrix.package-name }}/*
5 changes: 3 additions & 2 deletions crates/lib/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ pub use qcs_api_client_common::configuration::LoadError;
pub use qcs_api_client_grpc::channel::Error as GrpcError;
pub use qcs_api_client_openapi::apis::Error as OpenApiError;

#[cfg(not(feature = "grpc-web"))]
/// A type alias for the underlying gRPC connection used by all gRPC clients within this library.
/// It is public so that users can create gRPC clients with different APIs using a "raw" connection
/// initialized by this library. This ensures that the exact Tonic version used for such clients
/// matches what this library uses.
#[cfg(not(feature = "grpc-web"))]
pub type GrpcConnection = RetryService<RefreshService<Channel, ClientConfiguration>>;
#[cfg(feature = "grpc-web")]

/// A type alias for the underlying gRPC connection used by all gRPC clients within this library.
/// It is public so that users can create gRPC clients with different APIs using a "raw" connection
/// initialized by this library. This ensures that the exact Tonic version used for such clients
/// matches what this library uses.
#[cfg(feature = "grpc-web")]
pub type GrpcConnection =
GrpcWebWrapperLayerService<RetryService<RefreshService<Channel, ClientConfiguration>>>;

Expand Down

0 comments on commit e6b7368

Please sign in to comment.