Skip to content

Commit

Permalink
Merge pull request #308 from simplejson/pure-python-wheel
Browse files Browse the repository at this point in the history
Build pure python wheel
  • Loading branch information
etrepum committed Feb 5, 2023
2 parents c891b95 + fb7f400 commit 64f1248
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-and-deploy.yml
Expand Up @@ -67,13 +67,18 @@ jobs:
with:
python-version: '3.11'

- name: Build sdist
run: python setup.py sdist
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel

- name: Build sdist and wheel
run: DISABLE_SPEEDUPS=1 python setup.py sdist bdist_wheel

- uses: actions/upload-artifact@v2
if: "github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')"
with:
path: dist/*.tar.gz
path: |
dist/*.tar.gz
dist/*-none-any.whl
upload_pypi:
needs: [build_wheels, build_sdist]
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.txt
@@ -1,3 +1,8 @@
Version 3.18.2 released 2023-02-04

* Distribute a pure python wheel for Pyodide
https://github.com/simplejson/simplejson/pull/308

Version 3.18.1 released 2023-01-03

* Remove unnecessary `i` variable from encoder module namespace
Expand Down
2 changes: 1 addition & 1 deletion conf.py
Expand Up @@ -44,7 +44,7 @@
# The short X.Y version.
version = '3.18'
# The full version, including alpha/beta/rc tags.
release = '3.18.1'
release = '3.18.2'

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -12,7 +12,7 @@
DistutilsPlatformError

IS_PYPY = hasattr(sys, 'pypy_translation_info')
VERSION = '3.18.1'
VERSION = '3.18.2'
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"

with open('README.rst', 'r') as f:
Expand Down Expand Up @@ -118,7 +118,7 @@ def run_setup(with_binary):
**kw)

try:
run_setup(not IS_PYPY)
run_setup(not IS_PYPY and os.environ.get('DISABLE_SPEEDUPS') != '1')
except BuildFailed:
if os.environ.get('REQUIRE_SPEEDUPS') or os.environ.get('CIBUILDWHEEL', '0') == '1':
raise
Expand Down
2 changes: 1 addition & 1 deletion simplejson/__init__.py
Expand Up @@ -118,7 +118,7 @@
"""
from __future__ import absolute_import
__version__ = '3.18.1'
__version__ = '3.18.2'
__all__ = [
'dump', 'dumps', 'load', 'loads',
'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
Expand Down

0 comments on commit 64f1248

Please sign in to comment.