File: setup.py

package info (click to toggle)
linux-show-player 0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,896 kB
  • sloc: python: 12,408; sh: 154; makefile: 17; xml: 8
file content (44 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env python3

import os
import re
from setuptools import find_packages, setup

import lisp


def find_files(directory, regex='.*', rel=''):
    """Search for files that match `regex` in `directory`."""
    paths = []
    for path, directories, file_names in os.walk(directory):
        for filename in file_names:
            file_path = os.path.join(path, filename)
            if re.match(regex, file_path):
                paths.append(file_path[len(rel):])
    return paths

# List the directories with icons to be installed
lisp_icons = find_files('lisp/ui/styles/icons', rel='lisp/ui/styles/')

# Setup function
setup(
    name='linux-show-player',
    author=lisp.__author__,
    author_email=lisp.__email__,
    version=lisp.__version__,
    license=lisp.__license__,
    url=lisp.__email__,
    description='Cue player for live shows',
    install_requires=[
        'sortedcontainers',
        'mido',
        'python-rtmidi',
        'JACK-Client',
        'scandir;python_version<"3.5"'
    ],
    packages=find_packages(),
    package_data={
        '': ['i18n/*.qm', '*.qss', '*.cfg'],
    },
    scripts=['linux-show-player']
)