-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 895 Bytes
/
Copy pathsetup.py
File metadata and controls
45 lines (40 loc) · 895 Bytes
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
import ast
import os
import re
from setuptools import setup
PACKAGE_NAME = 'code2vec'
with open(os.path.join(PACKAGE_NAME, '__init__.py')) as f:
match = re.search(r'__version__\s+=\s+(.*)', f.read())
version = str(ast.literal_eval(match.group(1)))
setup(
# metadata
name=PACKAGE_NAME,
version=version,
# options
packages=[PACKAGE_NAME],
include_package_data=True,
zip_safe=False,
python_requires='>=3.4',
install_requires=[
'click==7.0',
'gensim==3.6.0',
],
extras_require={
'test': [
'coverage',
'pytest>=3',
'tox',
],
'dev': [
'flake8',
'isort',
'mypy',
'pyformat',
'yapf',
],
},
entry_points='''
[console_scripts]
{pkg}={pkg}.cli:main
'''.format(pkg=PACKAGE_NAME),
)