Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for python 3.11 #5

Merged
merged 1 commit into from
Jan 3, 2024
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
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "cython"]
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
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
jeblair marked this conversation as resolved.
Show resolved Hide resolved
Programming Language :: Python :: 3.12
project_urls =
Source = https://github.com/cloudtools/sha256
Tracker = https://github.com/cloudtools/sha256/issues
18 changes: 3 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
from setuptools import setup
from setuptools.extension import Extension
from setuptools.command.sdist import sdist as _sdist

cmdclass = {}


class sdist(_sdist):
def run(self):
from Cython.Build import cythonize
cythonize(['sha256.pyx'])
_sdist.run(self)
cmdclass['sdist'] = sdist
from Cython.Build import cythonize


setup(
name='sha256',
version='0.3',
version='1.0',
description='sha256 library with midstate',
author='Mark Peek',
author_email='mark@peek.org',
license="MIT",
cmdclass=cmdclass,
ext_modules=[Extension("sha256", ["sha256.c"])],
ext_modules=cythonize(['sha256.pyx']),
test_suite="tests",
)
2 changes: 1 addition & 1 deletion sha256.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import struct

from libc.stdint cimport uint64_t, uint32_t, uint8_t

__version__ = "0.3"
__version__ = "1.0"

cdef uint32_t k[64]

Expand Down