mirror of
https://github.com/yihong0618/Kindle_download_helper.git
synced 2025-11-22 07:59:04 +08:00
34 lines
970 B
Python
34 lines
970 B
Python
import os
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
def read_requirements(path):
|
|
results = []
|
|
for line in open(path, encoding="utf-8"):
|
|
line = line.strip()
|
|
if not line:
|
|
continue
|
|
req, _, comment = line.partition("#")
|
|
results.append(req.strip())
|
|
return results
|
|
|
|
|
|
setup(
|
|
name="kindle_download",
|
|
author="yihong0618",
|
|
author_email="zouzou0208@gmail.com",
|
|
url="https://github.com/yihong0618/kindle_download_helper",
|
|
license="GPL-3.0-or-later",
|
|
version="1.4.0",
|
|
description="Download all your kindle books and `DeDRM` script.",
|
|
long_description="Download all your kindle books and `DeDRM` script.",
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
install_requires=read_requirements(
|
|
os.path.join(os.path.dirname(__file__), "requirements.txt")
|
|
),
|
|
entry_points={
|
|
"console_scripts": ["kindle_download = kindle_download_helper.cli:main"],
|
|
},
|
|
)
|