-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
49 lines (40 loc) · 1.09 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
#!/usr/bin/env python
# coding=utf-8
from setuptools import setup
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def get_tag(self):
python, abi, plat = _bdist_wheel.get_tag(self)
# We don't contain any python source
python, abi = 'py2.py3', 'none'
return python, abi, plat
version = '1.1.0'
setup(
name='ebook',
version=version,
author='jachinlin',
author_email='[email protected]',
url='https://github.com/jachinlin/ebook-py',
description='ebook tool',
license='MIT',
keywords='kindle ebook mobi epub',
packages=['ebook'],
package_data={'ebook': [
'templates/*',
'bin/linux/kindlegen',
'bin/mac/kindlegen'
]},
install_requires=[
'Jinja2'
],
entry_points={
'console_scripts': [
'make_epub=ebook:make_epub',
'make_mobi=ebook:make_mobi',
],
},
cmdclass={'bdist_wheel': bdist_wheel}
)