Skip to content

Commit 1928d5d

Browse files
author
Miroslav Burýšek
committed
Implement changes from PyPI publish cycle
1 parent 7db6630 commit 1928d5d

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ cysimdjson/*.so
77
__pycache__
88
dist/
99
cysimdjson.egg-info/
10+
venv/

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Whilst there are other fast Python JSON parsers, such as [pysimdjson](https://gi
1515
[![Python 3.11](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py311.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py311.yaml)
1616
[![Python 3.10](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py310.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py310.yaml)
1717
[![Python 3.9](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py39.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py39.yaml)
18-
[![Python 3.8](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py38.yaml/badge.svg)](https://github.com/TeskaLabs/cysimdjson/actions/workflows/py38.yaml)
1918

2019
## Usage
2120

build-linux-wheel.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
cd /cysimdjson
2-
1+
#!/bin/bash
32

3+
set -e
44

5-
rm -rf build cysimdjson.egg-info
6-
/opt/python/cp38-cp38/bin/pip3 install Cython wheel
7-
/opt/python/cp38-cp38/bin/python3 setup.py bdist_wheel
5+
cd /cysimdjson
86

97
rm -rf build cysimdjson.egg-info
108
/opt/python/cp39-cp39/bin/pip3 install Cython wheel
@@ -28,6 +26,7 @@ rm -rf build cysimdjson.egg-info
2826

2927
rm -rf build cysimdjson.egg-info
3028
/opt/python/cp314-cp314/bin/pip3 install setuptools Cython wheel
29+
/opt/python/cp314-cp314/bin/python3 setup.py sdist
3130
/opt/python/cp314-cp314/bin/python3 setup.py bdist_wheel
3231

3332
cd /cysimdjson/dist

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import subprocess
2+
import sys
3+
4+
try:
5+
import setuptools # noqa: F401
6+
except ImportError:
7+
subprocess.check_call([sys.executable, "-m", "pip", "install", "setuptools"])
8+
19
from setuptools import setup, Extension
210
from os import path
311

412
from Cython.Build import cythonize
5-
import sys
613

714
this_directory = path.abspath(path.dirname(__file__))
815
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
@@ -30,7 +37,7 @@
3037

3138
setup(
3239
name='cysimdjson',
33-
version="24.12",
40+
version="26.27",
3441
description='High-speed JSON parser',
3542
long_description=long_description,
3643
long_description_content_type='text/markdown',
@@ -40,7 +47,6 @@
4047
classifiers=[
4148
'Development Status :: 5 - Production/Stable',
4249
'License :: OSI Approved :: Apache Software License',
43-
'Programming Language :: Python :: 3.8',
4450
'Programming Language :: Python :: 3.9',
4551
'Programming Language :: Python :: 3.10',
4652
'Programming Language :: Python :: 3.11',

0 commit comments

Comments
 (0)