-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
77 lines (65 loc) · 2.5 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from glob import glob
from setuptools import setup
# from distutils.core import setup
from distutils.extension import Extension
USE_CYTHON = False # command line option, try-import, ...
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [Extension("pwmodel/_fast", ["src/pwmodel/_fast"+ext])]
# data = glob('src/pwmodel/data/*')
# print(data)
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name='pwmodels',
version='1.3.2',
description='A simple password model generating tool',
long_description="This module creates different useful password models, such as ngram model or PCFG mdoel.",
url="https://github.com/rchatterjee/pwmodels.git",
author="Rahul Chatterjee",
author_email="[email protected]",
license="Apache",
python_requires='>=3',
# classifiers=[
# # How mature is this project? Common values are
# # 3 - Alpha
# # 4 - Beta
# # 5 - Production/Stable
# 'Development Status :: 3 - Alpha',
# # Indicate who your project is intended for
# 'Intended Audience :: Password Researchers',
# 'Topic :: Password Modeling',
# # Pick your license as you wish (should match "license" above)
# 'License :: MIT',
# # Specify the Python versions you support here. In particular, ensure
# # that you indicate whether you support Python 2, Python 3 or both.
# 'Requires-Python: >=3',
# 'Programming Language :: Python :: 3.6',
# ],
keywords="password model ngram pcfg cracking".split(),
packages=['pwmodel'], # find_packages(exclude(['contrib', 'docs', 'tests*'])),
ext_modules=extensions,
# ext_modules=cythonize("pwmodel/_fast.pyx"),
package_dir={'': 'src'},
include_package_data=True,
# package_data={
# '': ["*.txt", "*.rst"],
# 'src/pwmodel': data,
# },
dependency_links=["https://github.com/fujimotos/polyleven/archive/0.3.tar.gz"],
setup_requires=[
'cython',
'wheel'
],
install_requires=[
'dawg', 'cython', 'marisa_trie', 'polyleven',
'python-levenshtein', 'numpy' # for readpw
# 'git://github.com/fujimotos/polyleven'
],
scripts=['scripts/buildmodel.py', 'scripts/pwhistogram.py']
# data_files=[('src/pwmodel/data/', ['ngram-0-phpbb.dawg', 'ngram-3-phpbb.dawg', 'ngram-4-phpbb.dawg'])]
)