-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
44 lines (33 loc) · 1.04 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
# coding=utf-8
"""
pycodesim
=========
A Python Code Similarity Detection Doll, just for fun.
用于计算python代码相似度的玩具。
背景
----
基于抽象语法树,有三种方法,第一种是最简单的jaccard相似度,第二种是树的编辑距离,第三种是遍历合适大小的子树计算anti-unification(不完全是)
demo
----
::
code_sim('codes/code1.py', 'codes/code2.py', 'jaccard')
code_sim('codes/code1.py', 'codes/code2.py', 'tree_edit')
code_sim('codes/code1.py', 'codes/code2.py', 'fake_anti_uni')
"""
from setuptools import setup
setup(
name='pycodesim',
version='0.0.2',
packages=['pycodesim'],
url='https://github.com/inuyasha2012/pycodesim',
license='MIT',
author='inuyasha2012',
author_email='[email protected]',
description='A Python Code Similarity Detection Doll, just for fun. ',
long_description=__doc__,
install_requires=['zss'],
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
]
)