diff --git a/nhentai.py b/nhentai.py index 8b52037..fd829b9 100644 --- a/nhentai.py +++ b/nhentai.py @@ -1,4 +1,6 @@ +#!/usr/bin/env python #coding: utf-8 + from hentai.cmdline import cmd_parser, banner from hentai.parser import dojinshi_parser, search_parser, print_dojinshi from hentai.dojinshi import Dojinshi diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..abc497a --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + +with open('requirements.txt') as f: + requirements = [l for l in f.read().splitlines() if l] + +setup( + name='nhentai', + version='0.1', + packages=find_packages(), + + author='Ricter', + author_email='ricterzheng@gmail.com', + keywords='nhentai, dojinshi', + description='nhentai.net dojinshis downloader', + url='https://github.com/RicterZ/nhentai', + include_package_data=True, + + install_requires=requirements, + entry_points={ + 'console_scripts': [ + 'nhentai = nhentai:main', + ] + } +) \ No newline at end of file