Skip to content

Commit

Permalink
Add package __version__ (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Feb 20, 2023
1 parent dd5b8ec commit 422ad20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "maturin"

[project]
name = "y-py"
version = "0.6.0"
description = "Python bindings for the Y-CRDT built from yrs (Rust)"
license = { file = "LICENSE" }
authors = [
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use crate::y_doc::*;
/// Python bindings for Y.rs
#[pymodule]
pub fn y_py(_py: Python, m: &PyModule) -> PyResult<()> {
m.add("__version__", env!("CARGO_PKG_VERSION"))?;

// Data Types
m.add_class::<y_doc::YDoc>()?;
m.add_class::<y_transaction::YTransaction>()?;
Expand Down

0 comments on commit 422ad20

Please sign in to comment.