-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (45 loc) · 1.18 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
import os.path
import setuptools
import subprocess
with open("README.md") as f:
long_description = f.read()
version = subprocess.check_output([
"git",
"--git-dir",
os.path.join(os.path.dirname(__file__), ".git"),
"tag"
]).decode("utf-8").strip().split("\n")[-1]
current_dir = os.path.dirname(os.path.realpath(__file__))
url = subprocess.check_output([
"git",
"--git-dir",
os.path.join(os.path.dirname(__file__), ".git"),
"config",
"--get",
"remote.origin.url"
]).decode("utf-8").strip()
setuptools.setup(
name="plex_importer",
version=version,
author="jasmith79",
author_email="[email protected]",
description="Imports Apple playlists for use in Plex Media Center.",
long_description=long_description,
long_description_content_type="text/markdown",
url=url,
packages=["plex_importer"],
python_requires='>=3.6',
install_requires=[
"plexapi",
"tqdm",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
entry_points={
"console_scripts": [
"pleximport = plex_importer.app:main",
]
},
)