Skip to content

Commit

Permalink
Merge pull request #721 from wasmerio/prepare-1.2.0
Browse files Browse the repository at this point in the history
Prepare the 1.2.0 release
  • Loading branch information
ayys authored May 1, 2023
2 parents bf419ad + ad561a1 commit 9d3f2dd
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 26 deletions.
40 changes: 29 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,30 @@ All notable changes to this project will be documented in this file.

## Table of Contents

* [1.2.0](#100---2023-04-20)
* [1.1.0](#100---2022-01-05)
* [1.0.0](#100---2021-01-18)
* [0.4.1](#041---2020-02-02)
* [0.3.0](#030---2019-07-16)
* [0.2.0](#020---2019-04-16)

## [1.2.0] - 2023-04-20

## Added

* Added support for Python 3.11 ([#696](https://github.com/wasmerio/wasmer-python/issues/696))
* Added support for Python 3.10 ([#680](https://github.com/wasmerio/wasmer-python/issues/680))
* Improvements to the documentation ([e880e25](https://github.com/wasmerio/wasmer-python/commit/e880e25))

## Changed

* Updated to the latest version of Maturin (0.14.17) to fix failing Windows builds ([#715](https://github.com/wasmerio/wasmer-python/issues/715))

## Fixed
* Fixed compatibility issues with Python 3.11 ([#696](https://github.com/wasmerio/wasmer-python/issues/696))
* Fixed compatibility issues with Python 3.10 ([#680](https://github.com/wasmerio/wasmer-python/issues/680))
* Fixed typos in the documentation ([#639](https://github.com/wasmerio/wasmer-python/issues/639), [#681](https://github.com/wasmerio/wasmer-python/issues/681))

## [1.1.0] - 2022-01-05

## Added
Expand Down Expand Up @@ -42,24 +60,24 @@ All notable changes to this project will be documented in this file.
```python
from wasmer import engine, wat2wasm, Module, Store, Instance
from wasmer_compiler_cranelift import Compiler

# Create an Engine
jit = engine.JIT(Compiler)

# Create a store.
store = Store(jit)

# Let's compile the Wasm module.
module = Module(store, wasm_bytes)

# Create an empty import object.
import_object = {}

# Let's instantiate the Wasm module.
instance = Instance(module, import_object)
```

Please refer to the [examples](examples) and
Please refer to the [examples](examples) and
[documentation](https://docs.wasmer.io/integrations/python) to learn more about the changes.

## [0.4.1] - 2020-02-02
Expand All @@ -69,15 +87,15 @@ All notable changes to this project will be documented in this file.
* New `Buffer` class to read memory fast
([#125](https://github.com/wasmerio/wasmer-python/pull/125) by
[@Hywan])

To get the memory buffer, use the `Memory.buffer` getter. A `Buffer`
implements the [Python Buffer
Protocol](https://docs.python.org/3/c-api/buffer.html). The goal is
to get faster reading operations than the existing memory views API.

`bytearray(instance.memory.buffer)` is 15x faster than `instance.memory.int8_view()`.
`memoryview(instance.memory.buffer)` is 14x faster than `instance.memory.int8_view()`.

```python
# Get the memory buffer.
buffer = Instance(wasm_bytes).memory.buffer
Expand All @@ -95,7 +113,7 @@ All notable changes to this project will be documented in this file.
* Support exported globals through the `Instance.globals` API
([#120](https://github.com/wasmerio/wasmer-python/pull/120) by
[@Hywan])

```python
instance = Instance(wasm_bytes)
x = instance.globals.x
Expand All @@ -111,7 +129,7 @@ All notable changes to this project will be documented in this file.
* Implement a WebAssembly custom section query API
([#118](https://github.com/wasmerio/wasmer-python/pull/118) by
[@Hywan])

`Module.custom_section_names` is used to list all the custom section
names.

Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion packages/any-api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='wasmer',
version='1.1.0',
version='1.2.0',
author='The Wasmer Engineering Team',
author_email='[email protected]',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion packages/any-compiler-cranelift/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='wasmer-compiler-cranelift',
version='1.1.0',
version='1.2.0',
author='The Wasmer Engineering Team',
author_email='[email protected]',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion packages/any-compiler-llvm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='wasmer-compiler-llvm',
version='1.1.0',
version='1.2.0',
author='The Wasmer Engineering Team',
author_email='[email protected]',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion packages/any-compiler-singlepass/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='wasmer-compiler-singlepass',
version='1.1.0',
version='1.2.0',
author='The Wasmer Engineering Team',
author_email='[email protected]',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion packages/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmer"
version = "1.1.0"
version = "1.2.0"
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2018"
description = "Python extension to run WebAssembly binaries"
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-cranelift/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmer_compiler_cranelift"
version = "1.1.0"
version = "1.2.0"
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2018"
description = "The Cranelift compiler for the `wasmer` package (to compile WebAssembly module)"
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-llvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmer_compiler_llvm"
version = "1.1.0"
version = "1.2.0"
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2018"
description = "Python extension to run WebAssembly binaries"
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-singlepass/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmer_compiler_singlepass"
version = "1.1.0"
version = "1.2.0"
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2018"
description = "Python extension to run WebAssembly binaries"
Expand Down
2 changes: 1 addition & 1 deletion packages/engines/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmer-engines"
version = "1.1.0"
version = "1.2.0"
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2018"
description = "Engines and sibling types for the `wasmer-*-python` crates"
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

: "${SED:=sed}"

CURRENT_VERSION="1.1.0"
CURRENT_VERSION="1.2.0"

if [[ -z "$1" ]]
then
Expand Down

0 comments on commit 9d3f2dd

Please sign in to comment.