-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (48 loc) · 1.77 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from media_downloader.version import __version__, __author__
from pathlib import Path
import os
import re
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
readme = Path("README.md").read_text()
version = __version__
requirements = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"), session=PipSession()
)
readme = re.sub(r"Version: [0-9]*\.[0-9]*\.[0-9][0-9]*", f"Version: {version}", readme)
with open("README.md", "w") as readme_file:
readme_file.write(readme)
description = "Download audio/videos from the internet!"
setup(
name="media-downloader",
version=f"{version}",
description=description,
long_description=f"{readme}",
long_description_content_type="text/markdown",
url="https://github.com/Knuckles-Team/media-downloader",
author=__author__,
author_email="knucklessg1@gmail.com",
license="MIT",
packages=["media_downloader"],
include_package_data=True,
install_requires=[str(requirement.requirement) for requirement in requirements],
py_modules=["media_downloader"],
package_data={"media_downloader": ["media_downloader"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: Public Domain",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
entry_points={
"console_scripts": ["media-downloader = media_downloader.media_downloader:main"]
},
)