-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
54 lines (48 loc) · 1.69 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
from setuptools import find_packages, setup
with open("jncep/__init__.py") as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
break
with open("README.md") as f:
readme = f.read()
with open("requirements.txt") as f:
requirements = f.readlines()
with open("requirements-dev.txt") as f:
requirements_dev = f.readlines()
setup_args = dict(
name="jncep",
version=version,
description=(
"Command-line tool to generate EPUB files for J-Novel Club pre-pub novels"
),
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/gvellut/jncep",
author="Guilhem Vellut",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Utilities",
],
keywords="epub jnc jnovel",
packages=find_packages(exclude=["docs", "tests"]),
package_data={"jncep": ["res/*"]},
include_package_data=True,
install_requires=requirements,
extras_require={"dev": requirements_dev},
project_urls={
"Bug Reports": "https://github.com/gvellut/jncep/issues",
"Source": "https://github.com/gvellut/jncep",
},
entry_points={"console_scripts": ["jncep=jncep.jncep:main"]},
)
setup(**setup_args)