Skip to content
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
12 changes: 6 additions & 6 deletions .github/workflows/py37.yaml → .github/workflows/py312.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test in Python 3.7
name: Test in Python 3.12

on:
push:
Expand All @@ -12,18 +12,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install cython
python -m pip install setuptools cython

- name: Build
run: |
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/py313.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test in Python 3.13

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install setuptools cython

- name: Build
run: |
python setup.py build_ext --inplace

- name: Unit test
run: |
python3 -m unittest test
34 changes: 34 additions & 0 deletions .github/workflows/py314.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test in Python 3.14

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: 3.14

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install setuptools cython

- name: Build
run: |
python setup.py build_ext --inplace

- name: Unit test
run: |
python3 -m unittest test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ it may represent a significant bottleneck.

Whilst there are other fast Python JSON parsers, such as [pysimdjson](https://github.com/TkTech/pysimdjson), [libpy_simdjson](https://github.com/gerrymanoim/libpy_simdjson) or [orjson](https://github.com/ijl/orjson), they don't reach the raw speed that is provided by the brilliant [SIMDJSON](https://simdjson.org) project. SIMDJSON is C++ JSON parser based on [SIMD instructions](https://en.wikipedia.org/wiki/SIMD), reportedly the fastest JSON parser on the planet.

[![Python 3.14](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py314.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py314.yaml)
[![Python 3.13](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py313.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py313.yaml)
[![Python 3.12](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py312.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py312.yaml)
[![Python 3.11](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py311.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py311.yaml)
[![Python 3.10](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py310.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py310.yaml)
[![Python 3.9](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py39.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py39.yaml)
[![Python 3.8](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py38.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py38.yaml)
[![Python 3.7](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py37.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py37.yaml)

## Usage

Expand Down
14 changes: 8 additions & 6 deletions build-linux-wheel.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
cd /cysimdjson

rm -rf build cysimdjson.egg-info
/opt/python/cp36-cp36m/bin/pip3 install Cython wheel
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel

rm -rf build cysimdjson.egg-info
/opt/python/cp37-cp37m/bin/pip3 install Cython wheel
/opt/python/cp37-cp37m/bin/python3 setup.py bdist_wheel

rm -rf build cysimdjson.egg-info
/opt/python/cp38-cp38/bin/pip3 install Cython wheel
Expand All @@ -28,6 +22,14 @@ rm -rf build cysimdjson.egg-info
/opt/python/cp312-cp312/bin/pip3 install Cython wheel
/opt/python/cp312-cp312/bin/python3 setup.py bdist_wheel

rm -rf build cysimdjson.egg-info
/opt/python/cp313-cp313/bin/pip3 install setuptools Cython wheel
/opt/python/cp313-cp313/bin/python3 setup.py bdist_wheel

rm -rf build cysimdjson.egg-info
/opt/python/cp314-cp314/bin/pip3 install setuptools Cython wheel
/opt/python/cp314-cp314/bin/python3 setup.py bdist_wheel

cd /cysimdjson/dist
find . -name "cysimdjson-*-linux_x86_64.whl" | xargs -n 1 auditwheel repair -w /cysimdjson/dist
rm cysimdjson-*-linux_x86_64.whl
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
Expand Down
Loading