From 0b9a70d59b71a57353ada0e5a9bb3f1f33389906 Mon Sep 17 00:00:00 2001 From: ricterz Date: Sun, 10 May 2015 00:11:19 +0800 Subject: [PATCH] add setup.py --- nhentai.py | 2 ++ setup.py | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 setup.py 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