From bddc83115dfcd47e5bb72eb98fcf80444bfae5d3 Mon Sep 17 00:00:00 2001 From: jvmncs Date: Mon, 8 Aug 2022 14:47:21 -0400 Subject: [PATCH] fix CI w/ new package name --- .github/workflows/CI.yml | 16 ++++++++-------- src/config.rs | 8 ++++---- src/hpke.rs | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 806e5d0..e24bae6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -34,8 +34,8 @@ jobs: args: --release --sdist -i python${{ matrix.python-version }} -o dist - name: Install wheel run: | - pip install hpke_spec --no-index --find-links dist --force-reinstall - python -c "import hpke_spec" + pip install hybrid_pke --no-index --find-links dist --force-reinstall + python -c "import hybrid_pke" - name: Test wheel run: | pip install pytest absl-py @@ -73,8 +73,8 @@ jobs: args: --release -i ${{ steps.py3.outputs.python-path }} -o dist - name: Install wheel run: | - pip install hpke_spec --no-index --find-links dist --force-reinstall - python -c "import hpke_spec" + pip install hybrid_pke --no-index --find-links dist --force-reinstall + python -c "import hybrid_pke" - name: Test wheel run: | pip install pytest absl-py @@ -112,8 +112,8 @@ jobs: args: --release -i ${{ steps.py3.outputs.python-path }} --out dist --sdist - name: Install wheel - x86_64 run: | - pip install hpke_spec --no-index --find-links dist --force-reinstall - python -c "import hpke_spec" + pip install hybrid_pke --no-index --find-links dist --force-reinstall + python -c "import hybrid_pke" - name: Test wheel run: | pip install pytest absl-py @@ -125,8 +125,8 @@ jobs: args: --release --universal2 -o dist - name: Install wheel - universal2 run: | - pip install hpke_spec --no-index --find-links dist --force-reinstall - python -c "import hpke_spec" + pip install hybrid_pke --no-index --find-links dist --force-reinstall + python -c "import hybrid_pke" - name: Upload wheels uses: actions/upload-artifact@v2 with: diff --git a/src/config.rs b/src/config.rs index 4f54e2c..54a7138 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,7 +3,7 @@ use hpke_rs_crypto::types::{AeadAlgorithm, KdfAlgorithm, KemAlgorithm}; use pyo3::prelude::*; #[pyclass] -#[pyo3(name = "Mode", module = "hpke")] +#[pyo3(name = "Mode", module = "hybrid_pke")] #[derive(Clone)] #[allow(clippy::upper_case_acronyms, non_camel_case_types)] pub(crate) enum PyMode { @@ -25,7 +25,7 @@ impl From<&PyMode> for Mode { } #[pyclass] -#[pyo3(name = "Kem", module = "hpke")] +#[pyo3(name = "Kem", module = "hybrid_pke")] #[derive(Clone)] #[allow(non_camel_case_types)] pub(crate) enum PyKemAlgorithm { @@ -49,7 +49,7 @@ impl From<&PyKemAlgorithm> for KemAlgorithm { } #[pyclass] -#[pyo3(name = "Kdf", module = "hpke")] +#[pyo3(name = "Kdf", module = "hybrid_pke")] #[derive(Clone)] #[allow(non_camel_case_types)] pub(crate) enum PyKdfAlgorithm { @@ -69,7 +69,7 @@ impl From<&PyKdfAlgorithm> for KdfAlgorithm { } #[pyclass] -#[pyo3(name = "Aead", module = "hpke")] +#[pyo3(name = "Aead", module = "hybrid_pke")] #[derive(Clone)] #[allow(non_camel_case_types)] pub(crate) enum PyAeadAlgorithm { diff --git a/src/hpke.rs b/src/hpke.rs index 8268b7d..fff8aa8 100644 --- a/src/hpke.rs +++ b/src/hpke.rs @@ -12,7 +12,7 @@ pub(crate) type Hpke = HpkeRs; /// Hpke defines the mode and ciphersuite needed to fully specify an HPKE configuration. /// The resulting Hpke configuration object exposes the primary HPKE protocols as instance methods. #[pyclass] -#[pyo3(name = "Hpke", module = "hpke")] +#[pyo3(name = "Hpke", module = "hybrid_pke")] #[derive(Clone)] pub(crate) struct PyHpke { #[pyo3(get, set)]