Skip to content

Commit

Permalink
fix CI w/ new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmncs committed Aug 8, 2022
1 parent 96d3168 commit bddc831
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(crate) type Hpke = HpkeRs<HpkeRustCrypto>;
/// 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)]
Expand Down

0 comments on commit bddc831

Please sign in to comment.