-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
38 lines (33 loc) · 1.16 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
import re
import setuptools
from distutils.util import convert_path
with open("README.md", "r") as description_file:
long_description = description_file.read()
with open("requirements.txt", "r") as requirements_file:
requirements = requirements_file.read().split("\n")
ver_path = convert_path("nndownload/nndownload.py")
with open(ver_path, encoding="utf8") as ver_file:
version = re.search(r'__version__ = "(.+)"', ver_file.read()).group(1)
setuptools.setup(
name="nndownload",
version=version,
author="AlexAplin",
description="nndownload allows you to process videos and other links from Niconico.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/AlexAplin/nndownload",
packages=["nndownload"],
install_requires=requirements,
python_requires=">=3.5.3",
entry_points={
"console_scripts": [
"nndownload=nndownload.nndownload:cli"
]
},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Natural Language :: English"
]
)