-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
90 lines (82 loc) · 2.75 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
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# setup.py
#
# Copyright (c) 2017 Junpei Kawamoto
#
# This file is part of rgmining-script.
#
# rgmining-script is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# rgmining-script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rgmining-script. If not, see <http://www.gnu.org/licenses/>.
#
"""Package information about a synthetic dataset for review graph mining.
"""
from os import path
from setuptools import setup, find_packages
def read(fname):
"""Read a file.
"""
return open(path.join(path.dirname(__file__), fname)).read()
def load_requires_from_file(filepath):
"""Read a package list from a given file path.
Args:
filepath: file path of the package list.
Returns:
a list of package names.
"""
with open(filepath) as fp:
return [pkg_name.strip() for pkg_name in fp.readlines()]
setup(
name='rgmining-script',
use_scm_version=True,
author="Junpei Kawamoto",
author_email="kawamoto.junpei@gmail.com",
description="Analyzing scripts for Review Graph Mining Project.",
long_description=read("README.rst"),
url="https://github.com/rgmining/script",
py_modules=[
"analyze",
"dataset"
],
packages=find_packages(exclude=["tests"]),
entry_points={
"console_scripts": [
"analyze = analyze:main",
"dataset = dataset:main"
],
},
setup_requires=[
"setuptools_scm"
],
install_requires=load_requires_from_file("requirements.txt"),
extras_require={
"rsd": ["rgmining-rds"],
"fraud-eagle": ["rgmining-fraud-eagle"],
"fraudar": ["rgmining-fraudar"],
"synthetic-dataset": ["rgmining-synthetic-dataset"],
"tripadvisor": ["rgmining-tripadvisor-dataset"],
"amazon": ["rgmining-amazon-dataset"]
},
test_suite='tests.suite',
license="GPLv3",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Information Analysis"
]
)