-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
63 lines (55 loc) · 1.83 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
from setuptools import setup, find_packages
from importlib import import_module
from os import path
import re
def getTextFromFile(filename, fallback):
try:
with open(
path.join(path.abspath(path.dirname(__file__)), filename), encoding="utf-8"
) as f:
output = f.read()
except Exception:
output = fallback
return output
PACKAGE_NAME = 'avp'
SOURCE_DIRECTORY = 'src'
SOURCE_PACKAGE_REGEX = re.compile(rf'^{SOURCE_DIRECTORY}')
PACKAGE_DESCRIPTION = 'Create audio visualization videos from a GUI or commandline'
avp = import_module(SOURCE_DIRECTORY)
source_packages = find_packages(include=[SOURCE_DIRECTORY, f'{SOURCE_DIRECTORY}.*'])
proj_packages = [SOURCE_PACKAGE_REGEX.sub(PACKAGE_NAME, name) for name in source_packages]
setup(
name='audio_visualizer_python',
version=avp.__version__,
url='https://github.com/djfun/audio-visualizer-python',
license='MIT',
description=PACKAGE_DESCRIPTION,
author=getTextFromFile('AUTHORS', 'djfun, tassaron'),
long_description=getTextFromFile('README.md', PACKAGE_DESCRIPTION),
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Intended Audience :: End Users/Desktop',
'Topic :: Multimedia :: Video :: Non-Linear Editor',
],
keywords=[
'visualizer', 'visualization', 'commandline video',
'video editor', 'ffmpeg', 'podcast'
],
packages=proj_packages,
package_dir={PACKAGE_NAME: SOURCE_DIRECTORY},
include_package_data=True,
install_requires=[
'Pillow==9.1.1',
'PyQt5',
'numpy',
'pytest',
'pytest-qt',
],
entry_points={
'console_scripts': [
f'avp = {PACKAGE_NAME}.__main__:main'
],
}
)