-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (50 loc) · 1.49 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
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python3
import os
from typing import Any
from setuptools import find_packages, setup
def read_file(fname: str) -> str:
with open(fname, encoding="utf-8") as f:
return f.read()
def read_version(fname: str) -> Any:
exec(compile(read_file(fname), fname, "exec"))
return locals()["__version__"]
directory = os.path.abspath(os.path.dirname(__file__))
VERSION = read_version(os.path.join(directory, "tmplayer", "version.py"))
DESCRIPTION = "Minimalist music player for audio files with a pleasant UI."
LONG_DESCRIPTION = read_file(os.path.join(directory, "README.md"))
REQUIREMENTS = read_file(
os.path.join(directory, "requirements.txt")
).splitlines()
setup(
name="tmplayer",
version=VERSION,
description=DESCRIPTION,
author="Piotr Skowroński",
license="MIT",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
packages=find_packages(),
classifiers=[
"Topic :: Multimedia :: Sound/Audio",
"Environment :: Console",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
entry_points={
"console_scripts": [
"tmplayer=tmplayer.main:main",
],
},
install_requires=REQUIREMENTS,
python_requires=">=3.10",
extras_require={
"formatting": [
"black",
],
"linting": [
"flake8",
"mypy",
],
},
)