-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (51 loc) · 1.73 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
import re
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
with open('wnget/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
with open(path.join(here, 'requirements.txt')) as f:
req_install = list(filter(None, f.readlines()))
setup(
name='wnget',
version=version,
description='web novel getter, a web scraping and ebook generation tool.',
long_description=long_description,
url='https://github.com/unixwars/wnget',
author='Taher Shihadeh',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Topic :: Documentation',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
],
keywords='webscraper epub ebook webnovel',
setup_requires=['pytest-runner'] + req_install,
tests_require=['pytest', 'tox'] + req_install,
install_requires=req_install,
packages=find_packages(exclude=['contrib', 'doc', 'test*']),
package_dir={'wnget': 'wnget'},
package_data={
'': ['LICENSE', 'README.md'],
'wnget': ['data/*'],
},
include_package_data=True,
entry_points={
'console_scripts': [
'wnget=wnget.main:wnget',
'wnbook=wnget.main:wnbook',
'wnlocal=wnget.main:wnlocal',
],
},
)