-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (56 loc) · 2.17 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
60
import os
import sys
from setuptools import setup, find_packages
from distutils.core import Extension
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
tests_require = ["nose", "coverage"]
setup(name='cryptacular',
version='1.4.1',
description='A password hashing framework with bcrypt and pbkdf2.',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: C",
"Topic :: Security :: Cryptography",
],
author='Daniel Holth',
author_email='[email protected]',
url='http://bitbucket.org/dholth/cryptacular/',
keywords='bcrypt password security pbkdf2 crypt hash',
license='MIT',
packages=find_packages(),
namespace_packages = ['cryptacular'],
include_package_data=True,
zip_safe=False,
#install_requires = ['pbkdf2', 'setuptools'],
tests_require = tests_require,
extras_require = dict(test=tests_require),
test_suite = 'nose.collector',
ext_modules=[
Extension('cryptacular.bcrypt._bcrypt',
sources = [
'crypt_blowfish-1.2/crypt_blowfish.c',
'crypt_blowfish-1.2/crypt_gensalt.c',
'crypt_blowfish-1.2/wrapper.c',
'cryptacular/bcrypt/_bcrypt.c',
# how do I compile .S with distutils?
# 'crypt_blowfish-1.0.3/x86.S',
],
define_macros = [ ('NO_BF_ASM', None), ('__SKIP_GNU', 1) ],
include_dirs = [
'crypt_blowfish-1.2/',
]
)
]
)