Skip to content

Commit

Permalink
utilize consoleoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
yknaka committed Oct 26, 2021
1 parent 8f50446 commit edf7373
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 36 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.txt
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pandas
consoleoptions
circlify
matplotlib
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()


def _requires_from_file(filename):
return open(filename).read().splitlines()


setuptools.setup(
name="yknsshanalysis",
version="1.2.0",
version="1.3.0",
author="Yuki NAKAMURA",
author_email="naka_yk@live.jp",
description="Analyze auth.log",
Expand All @@ -23,6 +28,7 @@
py_modules=['yknsshanalysis'],
packages=setuptools.find_packages(where="src"),
python_requires=">=3.6",
install_requires=_requires_from_file('requirements.txt'),
entry_points={
'console_scripts': [
'yknsshanalysis = yknsshanalysis:main'
Expand Down
1 change: 0 additions & 1 deletion src/option/__init__.py

This file was deleted.

24 changes: 0 additions & 24 deletions src/option/get_option.py

This file was deleted.

11 changes: 1 addition & 10 deletions src/yknsshanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,11 @@
import circlify
import matplotlib.pyplot as plt
import pickle
from option import get_option as get_option
import consoleoptions as get_option

whois_list = ["http://ipinfo.io/xxx", "http://ipwhois.app/json/xxx", "https://ipapi.co/xxx/json"]


def _trim(string):
if len(string) == 0:
return ''
elif string[0] == '\'' or string[0] == '\"':
return string[1:-1]
else:
return string


def main(args=sys.argv):
# オプションの初期値を設定
optionDict = {}
Expand Down

0 comments on commit edf7373

Please sign in to comment.