Skip to content

Commit

Permalink
Add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkdream committed Mar 11, 2023
1 parent 0a0eac1 commit 1213d5c
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions setup.py
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",
],
},
)

0 comments on commit 1213d5c

Please sign in to comment.