Skip to content

Commit

Permalink
Update to simdjson 2.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
TkTech committed May 29, 2022
1 parent dcecdff commit 5524579
Show file tree
Hide file tree
Showing 12 changed files with 12,317 additions and 13,196 deletions.
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 4.1.0

- Updated upstream simdjson library to 2.0.1, which brings AVX-512 support.
- `Parser.implementations` property replaced with `Parser.get_implementations`
to support optionally filtering to just the ones supported by the current
runtime.

## 4.0.3

- Updated upstream simdjson library to 1.0.2.
Expand Down
14 changes: 2 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import os.path
import platform

Expand All @@ -21,7 +20,7 @@
extra_compile_args = []

if system == 'Darwin':
# Annoyingly, Github's setup-python action is wrongly building CPython
# Annoyingly, GitHub's setup-python action is wrongly building CPython
# with 10.14 as a target, forcing us to use this as our minimum without
# rebuilding a dozen combinations of CPython and OS X.
os.environ.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.14')
Expand Down Expand Up @@ -88,7 +87,7 @@
long_description_content_type='text/markdown',
author='Tyler Kennedy',
author_email='tk@tkte.ch',
url='http://github.com/TkTech/pysimdjson',
url='https://github.com/TkTech/pysimdjson',
keywords=['json', 'simdjson', 'simd'],
zip_safe=False,
classifiers=[
Expand All @@ -113,15 +112,6 @@
'pytest-benchmark',
'flake8',
'coverage'
],
# Dependencies for running benchmarks.
'benchmark': [
'orjson',
'python-rapidjson',
'simplejson',
'ujson',
'yyjson',
'numpy'
]
},
ext_modules=extensions,
Expand Down
10 changes: 8 additions & 2 deletions simdjson/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,20 @@ class Parser:
def __init__(self, max_capacity: int = ...) -> None:
...

@property
def implementations(self) -> Sequence[Tuple[str, str]]:
def get_implementations(
self,
supported_by_runtime: Literal[True] = ...
) -> Sequence[Tuple[str, str]]:
...

@property
def implementation(self) -> Tuple[str, str]:
...

@implementation.setter
def implementation(self, name: str):
...

@overload
def load(
self,
Expand Down
Loading

0 comments on commit 5524579

Please sign in to comment.