Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.3.0 #171

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 1.2.7
## 1.3.0 04/10/2023

### Changed

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "ormsgpack"
version = "1.2.6"
authors = ["Aviram Hassan <[email protected]>"]
version = "1.3.0"
authors = [
"Aviram Hassan <[email protected]>",
"Emanuele Giaquinta <[email protected]>",
]
description = "Fast, correct Python msgpack library supporting dataclasses, datetimes, and numpy"
edition = "2018"
license = "Apache-2.0 OR MIT"
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/bench_non_str_keys.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import datetime
import random
from time import mktime
from typing import Any

import msgpack
import pytest

import ormsgpack

data = []
for year in range(1920, 2020):
start = datetime.date(year, 1, 1)
array = [
array: list[tuple[Any, int]] = [
(int(mktime((start + datetime.timedelta(days=i)).timetuple())), i + 1)
for i in range(0, 365)
]
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ strip = true
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'

[tool.isort]
line_length = 88
profile = "black"
skip_gitignore = true
6 changes: 3 additions & 3 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eou pipefail

autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports .
isort ./ormsgpack.pyi ./tests/*.py ./benchmarks/*.py ./scripts/*.py
black ./ormsgpack.pyi ./tests/*.py ./benchmarks/*.py ./scripts/*.py
mypy --ignore-missing-imports ./ormsgpack.pyi ./tests/*.py ./benchmarks/*.py ./scripts/*.py
isort .
black .
mypy --ignore-missing-imports .
cargo fmt
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytz
xxhash==1.4.3;sys_platform!="windows" and python_version<"3.9" # creates non-compact ASCII for test_str_ascii
msgpack
pydantic
types-pytz
4 changes: 2 additions & 2 deletions tests/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_cannot_subclass():
"""
with pytest.raises(TypeError):

class Subclass(StrEnum):
class Subclass(StrEnum): # type: ignore
B = "b"


Expand Down Expand Up @@ -117,7 +117,7 @@ def test_str_enum():
def test_bool_enum():
with pytest.raises(TypeError):

class BoolEnum(bool, enum.Enum):
class BoolEnum(bool, enum.Enum): # type: ignore
TRUE = True


Expand Down
Loading