Skip to content

Commit

Permalink
add Python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed May 1, 2023
1 parent ccbd931 commit 255ca4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
CIBW_BEFORE_BUILD_LINUX: "python3 -m pip install cmake"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_BUILD: "cp310-macosx_x86_64 cp310-macosx_arm64 cp310-win_amd64 cp310-manylinux_x86_64"
CIBW_BUILD: "cp310-macosx_x86_64 cp310-macosx_arm64 cp310-win_amd64 cp310-manylinux_x86_64 cp311-macosx_x86_64 cp311-macosx_arm64 cp311-win_amd64 cp311-manylinux_x86_64"
- name: Deploy
uses: softprops/action-gh-release@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

NEO3VM
------
C++ implementations of cryptographic functions used in the NEO3 Blockchain with bindings for Python 3.8, 3.9 & 3.10.
C++ implementations of cryptographic functions used in the NEO3 Blockchain with bindings for Python 3.10 & 3.11.

The current version supports `mmh3` and EllipticCurve functions by wrapping (part of `smhasher <https://github.com/aappleby/smhasher>`_ and `micro-ecc <https://github.com/kmackay/micro-ecc>`_)
and exposing helper classes. ``SECP256R1`` (a.k.a ``NIST256P``) and ``SECP256K1`` are the only curves exposed, but others can easily
Expand All @@ -20,7 +20,7 @@ Or download the wheels from the Github releases page.

Windows users
=============
If installing fails with the error ``No Matching distribution found`` then upgrade your Python installation to use the latest post release version (i.e. ``3.8.8`` instead of ``3.8.0``)
If installing fails with the error ``No Matching distribution found`` then upgrade your Python installation to use the latest post release version (i.e. ``3.10.8`` instead of ``3.10.0``)

Usage
~~~~~
Expand Down
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from setuptools.command.install_lib import install_lib as install_lib_orig
from distutils.version import LooseVersion

if sys.version_info < (3, 8):
sys.exit('Python < 3.8 is not supported')
if sys.version_info < (3, 10):
sys.exit('Python < 3.10 is not supported')

exclude = ['*-obj*', 'tools']

Expand Down Expand Up @@ -94,19 +94,17 @@ def build_extension(self, ext):
author='Erik van den Brink',
author_email='[email protected]',
name='neo3crypto',
python_requires='>=3.8.*',
python_requires='>=3.10.0,<=3.12',
description="Native crypto functions for the NEO 3 Blockchain",
long_description=readme,
long_description_content_type="text/x-rst",
version='0.3',
version='0.4',
license='MIT',
url='https://github.com/CityOfZion/neo3crypto',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
"Programming Language :: C++"
],
Expand Down

0 comments on commit 255ca4f

Please sign in to comment.