Skip to content

Commit

Permalink
Merge pull request #42 from bamler-lab/issue-40
Browse files Browse the repository at this point in the history
Reduce minimum required numpy version from 1.19 to 1.16
  • Loading branch information
robamler authored Dec 12, 2023
2 parents 19f2c8a + f4fdf16 commit 4077f33
Show file tree
Hide file tree
Showing 12 changed files with 326 additions and 260 deletions.
192 changes: 129 additions & 63 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0 OR BSL-1.0"
name = "constriction"
readme = "README-rust.md"
repository = "https://github.com/bamler-lab/constriction/"
version = "0.3.2"
version = "0.3.3"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion README-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ into a web app by using `constriction` in a WebAssembly module).
### Installing `constriction` for Python

```bash
pip install constriction~=0.3.2
pip install constriction~=0.3.3
```

### Hello, World
Expand Down
2 changes: 1 addition & 1 deletion README-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the following to your `Cargo.toml`:

```toml
[dependencies]
constriction = "0.3.2"
constriction = "0.3.3"
probability = "0.20.3" # Not strictly required but used in many examples.
```

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ unnecessarily limit what you can achieve with `constriction`.
Install `constriction` for Python:

```bash
pip install constriction~=0.3.2
pip install constriction~=0.3.3
```

Then go ahead and encode and decode some data:
Expand Down Expand Up @@ -105,7 +105,7 @@ Add this line to your `Cargo.toml`:

```toml
[dependencies]
constriction = "0.3.2"
constriction = "0.3.3"
probability = "0.17" # Not strictly required but used in many code examples.
```

Expand All @@ -114,7 +114,7 @@ features (and you can't use the `probability` crate):

```toml
[dependencies]
constriction = {version = "0.3.2", default-features = false} # for `no_std` mode
constriction = {version = "0.3.3", default-features = false} # for `no_std` mode
```

Then go ahead and encode and decode some data:
Expand Down
2 changes: 1 addition & 1 deletion examples/python/01-hello-world.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade constriction~=0.3.2 # (this will automatically also install numpy)"
"%pip install --upgrade constriction~=0.3.3 # (this will automatically also install numpy)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/python/02-custom-entropy-models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install constriction~=0.3.2 scipy # (this will automatically also install numpy)"
"%pip install constriction~=0.3.3 scipy # (this will automatically also install numpy)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install constriction~=0.3.2 tqdm~=4.62.3 unidecode~=1.3.2"
"%pip install constriction~=0.3.3 tqdm~=4.62.3 unidecode~=1.3.2"
]
},
{
Expand Down
370 changes: 185 additions & 185 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ version = "1.2.2"

[tool.poetry.dependencies]
numpy = [
{version = "^1.19", python = "<3.11"},
{version = "^1.16", python = "<3.11"},
{version = "^1.23.2", python = ">=3.11,<3.12"},
{version = "^1.26.1", python = ">=3.12"},
]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
//!
//! ```toml
//! [dependencies]
//! constriction = "0.3.2"
//! constriction = "0.3.3"
//! ```
//!
//! ## System Requirements
Expand Down
2 changes: 1 addition & 1 deletion src/pybindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use pyo3::{prelude::*, wrap_pymodule};
/// ### Installing `constriction` for Python
///
/// ```bash
/// pip install constriction~=0.3.2
/// pip install constriction~=0.3.3
/// ```
///
/// ### Hello, World
Expand Down

0 comments on commit 4077f33

Please sign in to comment.