]> git.lizzy.rs Git - nhentai.git/blobdiff - setup.py
0.2.18
[nhentai.git] / setup.py
index 9da606d4df387f8f8326cb792adf147066c32afd..d0f6562ddce025f4b93381b4d6c5e939ded3d1c6 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,18 +1,32 @@
+# coding: utf-8
+from __future__ import print_function, unicode_literals
+import sys
+import codecs
 from setuptools import setup, find_packages
+from nhentai import __version__, __author__, __email__
+
 
 with open('requirements.txt') as f:
     requirements = [l for l in f.read().splitlines() if l]
 
+
+def long_description():
+    with codecs.open('README.md', 'rb') as f:
+        if sys.version_info >= (3, 0, 0):
+            return str(f.read())
+
 setup(
     name='nhentai',
-    version='0.1',
+    version=__version__,
     packages=find_packages(),
 
-    author='Ricter',
-    author_email='ricterzheng@gmail.com',
-    keywords='nhentai, dojinshi',
-    description='nhentai.net dojinshis downloader',
+    author=__author__,
+    author_email=__email__,
+    keywords='nhentai, doujinshi',
+    description='nhentai.net doujinshis downloader',
+    long_description=long_description(),
     url='https://github.com/RicterZ/nhentai',
+    download_url='https://github.com/RicterZ/nhentai/tarball/master',
     include_package_data=True,
     zip_safe=False,
 
@@ -23,4 +37,4 @@ setup(
         ]
     },
     license='MIT',
-)
\ No newline at end of file
+)