servicing
Advanced tools
+14
-15
@@ -80,5 +80,5 @@ # This file is automatically @generated by Cargo. | ||
| name = "autocfg" | ||
| version = "1.2.0" | ||
| version = "1.3.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" | ||
| checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" | ||
@@ -141,5 +141,5 @@ [[package]] | ||
| name = "cc" | ||
| version = "1.0.96" | ||
| version = "1.0.97" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd" | ||
| checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4" | ||
@@ -370,5 +370,5 @@ [[package]] | ||
| name = "getrandom" | ||
| version = "0.2.14" | ||
| version = "0.2.15" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" | ||
| checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" | ||
| dependencies = [ | ||
@@ -1059,7 +1059,7 @@ "cfg-if", | ||
| name = "security-framework" | ||
| version = "2.10.0" | ||
| version = "2.11.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "770452e37cad93e0a50d5abc3990d2bc351c36d0328f86cefec2f2fb206eaef6" | ||
| checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" | ||
| dependencies = [ | ||
| "bitflags 1.3.2", | ||
| "bitflags 2.5.0", | ||
| "core-foundation", | ||
@@ -1073,5 +1073,5 @@ "core-foundation-sys", | ||
| name = "security-framework-sys" | ||
| version = "2.10.0" | ||
| version = "2.11.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "41f3cc463c0ef97e11c3461a9d3787412d30e8e7eb907c79180c4a57bf7c04ef" | ||
| checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" | ||
| dependencies = [ | ||
@@ -1140,3 +1140,3 @@ "core-foundation-sys", | ||
| name = "servicing" | ||
| version = "0.0.10" | ||
| version = "0.0.11" | ||
| dependencies = [ | ||
@@ -1326,5 +1326,5 @@ "base64", | ||
| name = "tokio-util" | ||
| version = "0.7.10" | ||
| version = "0.7.11" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" | ||
| checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" | ||
| dependencies = [ | ||
@@ -1336,3 +1336,2 @@ "bytes", | ||
| "tokio", | ||
| "tracing", | ||
| ] | ||
@@ -1339,0 +1338,0 @@ |
+1
-1
| [package] | ||
| name = "servicing" | ||
| version = "0.0.10" | ||
| version = "0.0.11" | ||
| edition = "2021" | ||
@@ -5,0 +5,0 @@ |
+1
-1
| Metadata-Version: 2.3 | ||
| Name: servicing | ||
| Version: 0.0.10 | ||
| Version: 0.0.11 | ||
| Classifier: Programming Language :: Rust | ||
@@ -5,0 +5,0 @@ Classifier: Programming Language :: Python :: Implementation :: CPython |
+2
-0
@@ -12,2 +12,3 @@ from typing import List, Optional | ||
| :param workdir: the working directory of the service | ||
| :param data: a string of data that can be serialized with service | ||
| :param disk_size: the disk size of the service | ||
@@ -26,2 +27,3 @@ :param cpu: the CPU upper bound of the service | ||
| workdir: Optional[str] = None, | ||
| data: Optional[str] = None, | ||
| disk_size: Optional[int] = None, | ||
@@ -28,0 +30,0 @@ cpu: Optional[str] = None, |
@@ -59,4 +59,4 @@ #![allow(dead_code)] // Remove this later | ||
| #[new] | ||
| #[pyo3(signature = (*_args))] | ||
| pub fn new(_args: &Bound<'_, PyAny>) -> Result<Self, ServicingError> { | ||
| #[pyo3(signature = (*_args, **_kwargs))] | ||
| pub fn new(_args: &Bound<'_, PyAny>, _kwargs: Option<&Bound<'_, PyAny>>) -> Result<Self, ServicingError> { | ||
| // Check if the user has installed the required python package | ||
@@ -511,3 +511,3 @@ if !helper::check_python_package_installed(CLUSTER_ORCHESTRATOR) { | ||
| mod tests { | ||
| use pyo3::{pyclass, Bound, Python}; | ||
| use pyo3::{pyclass, types::PyDict, Bound, PyAny, Python}; | ||
@@ -523,4 +523,6 @@ use crate::models::UserProvidedConfig; | ||
| Python::with_gil(|py| { | ||
| let bound = Bound::new(py, Empty).unwrap(); | ||
| let mut dis = super::Dispatcher::new(&bound).unwrap(); | ||
| let bound_args = Bound::new(py, Empty).unwrap(); | ||
| let bound_kwargs = Some(PyDict::new_bound(py)); | ||
| // let bound_kwargs = Some(PyDict::new_bound(py)); | ||
| let mut dis = super::Dispatcher::new(&bound_args, bound_kwargs.as_deref()).unwrap(); | ||
@@ -534,2 +536,3 @@ dis.add_service( | ||
| workdir: None, | ||
| data: None, | ||
| setup: None, | ||
@@ -536,0 +539,0 @@ run: None, |
@@ -11,2 +11,3 @@ use pyo3::{pyclass, pymethods}; | ||
| pub workdir: Option<String>, | ||
| pub data: Option<String>, | ||
| pub disk_size: Option<u16>, | ||
@@ -29,2 +30,3 @@ pub cpu: Option<String>, | ||
| workdir: Option<String>, | ||
| data: Option<String>, | ||
| disk_size: Option<u16>, | ||
@@ -42,2 +44,3 @@ cpu: Option<String>, | ||
| workdir, | ||
| data, | ||
| disk_size, | ||
@@ -44,0 +47,0 @@ cpu, |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
87440
0.51%100
2.04%