-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .gitignore, setup.py, requirements.in, and requirements.txt.
- Loading branch information
Showing
4 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
### https://raw.github.com/github/gitignore/9f044c43d2fa998acb2d468367a349fff609dc84/python.gitignore | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
networkx | ||
numpy | ||
-e git+https://github.com/rgmining/common.git#egg=rgmining_common-0.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile --output-file requirements.txt requirements.in | ||
# | ||
-e git+https://github.com/rgmining/common.git#egg=rgmining_common-0.9.0 | ||
decorator==4.0.10 # via networkx | ||
networkx==1.11 | ||
numpy==1.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# | ||
# setup.py | ||
# | ||
# Copyright (c) 2016 Junpei Kawamoto | ||
# | ||
# This file is part of rgmining-fraud-eagle. | ||
# | ||
# rgmining-fraud-eagle 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-fraud-eagle 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 Foobar. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# pylint: skip-file | ||
"""Package information of fraud_eagle package for review graph mining project. | ||
""" | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def _take_package_name(name): | ||
"""Returns only package name from a given name. | ||
If the given name is a URL, it takes only package name. Otherwise, | ||
returns the given name. | ||
Args: | ||
name: a package name or URL. | ||
Returns: | ||
the associated package name. | ||
""" | ||
name = name.strip() | ||
if name.startswith("-e"): | ||
name = name.split("=")[1] | ||
return name.split("-")[0] | ||
else: | ||
return name | ||
|
||
|
||
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 [_take_package_name(pkg_name) for pkg_name in fp.readlines()] | ||
|
||
|
||
setup( | ||
name='rgmining-fraud-eagle', | ||
version='0.9.0', | ||
author="Junpei Kawamoto", | ||
author_email="kawamoto.junpei@gmail.com", | ||
description="An implementation of Fraud Eagle algorithm", | ||
url="https://github.com/rgmining/frad-eagle", | ||
packages=find_packages(exclude=["tests"]), | ||
install_requires=_load_requires_from_file("requirements.txt"), | ||
dependency_links=[ | ||
"git+https://github.com/rgmining/common.git#egg=rgmining_common-0.9.0" | ||
], | ||
test_suite='tests.suite' | ||
) |