forked from drunkdream/weread-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a0eac1
commit 1213d5c
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import setuptools | ||
|
||
import weread_exporter | ||
|
||
with open("README.md", "rb") as fp: | ||
README = fp.read().decode() | ||
|
||
|
||
with open("requirements.txt") as fp: | ||
text = fp.read() | ||
REQUIREMENTS = text.split("\n") | ||
|
||
|
||
def find_packages(): | ||
packages = [] | ||
for pkg in setuptools.find_packages(): | ||
if not pkg.startswith("test"): | ||
print(pkg) | ||
packages.append(pkg) | ||
return packages | ||
|
||
|
||
setuptools.setup( | ||
author="drunkdream", | ||
author_email="[email protected]", | ||
name="weread-exporter", | ||
license="MIT", | ||
description="Export weread books to epub/pdf/mobi format.", | ||
version=weread_exporter.VERSION, | ||
long_description=README, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/drunkdream/weread-exporter", | ||
packages=find_packages(), | ||
python_requires=">=3.7", | ||
install_requires=REQUIREMENTS, | ||
extras_require={}, | ||
classifiers=[ | ||
# Trove classifiers | ||
# (https://pypi.python.org/pypi?%3Aaction=list_classifiers) | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Intended Audience :: Developers", | ||
], | ||
entry_points={ | ||
"console_scripts": [ | ||
"weread-exporter = weread_exporter.__main__:main", | ||
], | ||
}, | ||
) |