This repository has been archived by the owner on May 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
59 lines (51 loc) · 1.37 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import setup, find_packages, Extension
long_description = """
siphashc
========
python c-module for `siphash`_, based on `floodberry's version`_.
Usage
~~~~~
.. code:: python
>>> from siphashc import siphash
>>> siphash('sixteencharstrng', 'i need a hash of this')
10796923698683394048L
.. _siphash: https://131002.net/siphash/
.. _floodberry's version: https://github.com/floodyberry/siphash
""".strip()
sipc = Extension(
"siphashc",
sources=[
'src/siphash/siphash.c',
'src/siphashc.c',
],
include_dirs=[
'src/siphash'
],
language='c')
setup(
name='siphashc',
version='0.7',
description='python module (in c) for siphash-2-4',
url='http://github.com/cactus/siphashc',
license="ISC",
ext_modules=[sipc],
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'setuptools',
],
tests_require=[
'nose',
'unittest2',
],
zip_safe=False,
)