Skip to content

Commit

Permalink
Merge pull request #112 from uktrade/fix/missing-import-deploy
Browse files Browse the repository at this point in the history
fix: missing main import
  • Loading branch information
michalc authored Oct 23, 2024
2 parents 447d83e + acc2ea4 commit 13a8d1b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "stream_unzip_zipcrypto_decrypt"
name = "_zipcrypto"
version = "0.1.0"
edition = "2021"

[lib]
name = "stream_unzip_zipcrypto_decrypt"
name = "_zipcrypto"
crate-type = ["cdylib"]

[dependencies]
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
requires = ["maturin>=1.7.4,<2.0.0"]
build-backend = "maturin"

[project]
Expand Down Expand Up @@ -38,7 +38,5 @@ ci = [
"Source" = "https://github.com/uktrade/stream-unzip"

[tool.maturin]
include = [
"stream_unzip.py",
"src/**"
]
python-source = "python"
module-name = "stream_unzip._zipcrypto"
2 changes: 1 addition & 1 deletion stream_unzip.py → python/stream_unzip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from stream_inflate import stream_inflate64

from stream_unzip_zipcrypto_decrypt import zipcrypto_decryptor
from ._zipcrypto import zipcrypto_decryptor


NO_ENCRYPTION = object()
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ impl StreamUnzipZipCryptoDecryptor {
}

#[pymodule]
fn stream_unzip_zipcrypto_decrypt(m: &Bound<'_, PyModule>) -> PyResult<()> {
#[pyo3(name="_zipcrypto")]
fn zipcrypto(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<StreamUnzipZipCryptoDecryptor>()?;
Ok(())
}

0 comments on commit 13a8d1b

Please sign in to comment.