-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade QCS-API packages * purge old qcs-api package * upgrade pyo3-otel crates * update past yanked futures-util
- Loading branch information
Showing
18 changed files
with
701 additions
and
576 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
crates/python/qcs_sdk/_tracing_subscriber/common/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ***************************************************************************** | ||
# * AUTO-GENERATED CODE * | ||
# * * | ||
# * This code was generated by the `pyo3-tracing-subscriber` crate. Any * | ||
# * modifications to this file should be made to the script or the generation * | ||
# * process that produced this code. Specifically, see: * | ||
# * `pyo3_tracing_subscriber::stubs::write_stub_files` * | ||
# * * | ||
# * Do not manually edit this file, as your changes may be overwritten the * | ||
# * next time the code is generated. * | ||
# ***************************************************************************** | ||
|
||
from qcs_sdk._tracing_subscriber import common | ||
|
||
|
||
__doc__ = common.__doc__ | ||
__all__ = getattr(common, "__all__", []) | ||
|
45 changes: 45 additions & 0 deletions
45
crates/python/qcs_sdk/_tracing_subscriber/common/__init__.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ***************************************************************************** | ||
# * AUTO-GENERATED CODE * | ||
# * * | ||
# * This code was generated by the `pyo3-tracing-subscriber` crate. Any * | ||
# * modifications to this file should be made to the script or the generation * | ||
# * process that produced this code. Specifically, see: * | ||
# * `pyo3_tracing_subscriber::stubs::write_stub_files` * | ||
# * * | ||
# * Do not manually edit this file, as your changes may be overwritten the * | ||
# * next time the code is generated. * | ||
# ***************************************************************************** | ||
|
||
from typing import Dict, Optional, final | ||
|
||
|
||
@final | ||
class InstrumentationLibrary: | ||
""" | ||
Information about a library or crate providing instrumentation. | ||
An instrumentation library should be named to follow any naming conventions | ||
of the instrumented library (e.g. 'middleware' for a web framework). | ||
See the `instrumentation libraries <https://github.com/open-telemetry/opentelemetry-specification/blob/v1.9.0/specification/overview.md#instrumentation-libraries>`_ | ||
spec for more information. | ||
""" | ||
|
||
def __new__( | ||
cls, | ||
name: str, | ||
version: Optional[str] = None, | ||
schema_url: Optional[str] = None, | ||
attributes: Optional[Dict[str, str]] = None, | ||
) -> "InstrumentationLibrary": | ||
""" | ||
Initializes a new instance of `InstrumentationLibrary`. | ||
:param name: The name of the instrumentation library. | ||
:param version: The version of the instrumentation library. | ||
:param schema_url: The `schema URL <https://opentelemetry.io/docs/specs/otel/schemas/>`_ of | ||
the instrumentation library. | ||
:param attributes: The attributes of the instrumentation library. | ||
""" | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
|
||
__doc__ = layers.__doc__ | ||
__all__ = getattr(layers, "__all__", []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
|
||
__doc__ = file.__doc__ | ||
__all__ = getattr(file, "__all__", []) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ class Config: | |
:param json: Whether or not to format the output as JSON. Defaults to `True`. | ||
""" | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
|
||
__doc__ = otel_otlp.__doc__ | ||
__all__ = getattr(otel_otlp, "__all__", []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
|
||
__doc__ = otel_otlp_file.__doc__ | ||
__all__ = getattr(otel_otlp_file, "__all__", []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
|
||
__doc__ = subscriber.__doc__ | ||
__all__ = getattr(subscriber, "__all__", []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ class Config: | |
""" | ||
|
||
def __new__(cls, *, layer: layers.Config) -> "Config": ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,14 +64,12 @@ feature-depth = 1 | |
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html | ||
[advisories] | ||
ignore = [ | ||
{ id = "RUSTSEC-2023-0052", reason = "Introduced by transitive dependency `webpki`. `hyper-proxy`, then `qcs-api-client-rust` need to update in order to remove" }, | ||
# { id = "RUSTSEC-2024-0320", reason = "yaml-rust is an unmaintained crate introduced by dev-dependency insta" }, | ||
{ id = "RUSTSEC-2024-0336", reason = "introduced by hyper, a transitive dependency of qcs-api-client-grpc" }, | ||
{ id = "RUSTSEC-2023-0055", reason = "introduced by lexical, a transitive dependency of quil-rs" }, | ||
{ id = "RUSTSEC-2021-0145", reason = "introduced by atty, a transitive dependency of multiple dependencies, with no upgrade path" }, | ||
{ id = "RUSTSEC-2024-0375", reason = "introduced by atty, a transitive dependency of multiple dependencies, with no upgrade path" }, | ||
{ id = "RUSTSEC-2024-0006", reason = "introduced by shlex, a transitive dependency of bindgen with no upgrade path" }, | ||
{ id = "RUSTSEC-2021-0139", reason = "ansi_term is unmaintained, but used by clap" }, | ||
] | ||
yanked = "deny" | ||
# If this is true, then cargo deny will use the git executable to fetch advisory database. | ||
# If this is false, then it uses a built-in git library. | ||
# Setting this to true can be helpful if you have special authentication requirements that cargo-deny does not support. | ||
|
@@ -174,29 +172,6 @@ deny = [ | |
#{ crate = "[email protected]", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, | ||
] | ||
|
||
# List of features to allow/deny | ||
# Each entry the name of a crate and a version range. If version is | ||
# not specified, all versions will be matched. | ||
#[[bans.features]] | ||
#crate = "reqwest" | ||
# Features to not allow | ||
#deny = ["json"] | ||
# Features to allow | ||
#allow = [ | ||
# "rustls", | ||
# "__rustls", | ||
# "__tls", | ||
# "hyper-rustls", | ||
# "rustls", | ||
# "rustls-pemfile", | ||
# "rustls-tls-webpki-roots", | ||
# "tokio-rustls", | ||
# "webpki-roots", | ||
#] | ||
# If true, the allowed features must exactly match the enabled feature set. If | ||
# this is set there is no point setting `deny` | ||
#exact = true | ||
|
||
# Certain crates/versions that will be skipped when doing duplicate detection. | ||
skip = [ | ||
#"[email protected]", | ||
|
@@ -212,7 +187,6 @@ skip-tree = [ | |
{ crate = "toml", depth = 20 }, | ||
{ crate = "warp", depth = 20 }, # Only used for development | ||
{ crate = "hermit-abi", depth = 20 }, # Only used for development | ||
{ crate = "hyper-rustls", depth = 20 }, # `hyper-proxy` relies on an older version than `reqwest` | ||
{ crate = "itertools", depth = 20 }, # `quil-rs` and various transitive dependencies depend on different versions | ||
{ crate = "hashbrown", depth = 20 }, # `indexmap` and `cached` depend on different versions | ||
] | ||
|