-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (34 loc) · 1.09 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
from collections import defaultdict
from pathlib import Path
from setuptools import setup, find_namespace_packages
def frontend_files():
source = Path("frontend/build")
target = Path("djenius/www")
dirs = defaultdict(list)
for f in sorted(source.rglob("*")):
if f.is_dir():
continue
relf = f.relative_to(source)
dirs[target / relf.parent].append(f)
for directory, targets in dirs.items():
yield str(directory), [str(t) for t in targets]
setup(
name="djenius",
author="Alexandre Macabies",
version="1.0",
description="A collaborative jukebox for no-Internet environments.",
url="https://github.com/prologin/djenius/",
packages=find_namespace_packages(include=["djenius.*"]),
data_files=list(frontend_files()),
install_requires=[
"aiohttp~=3.0",
"aioprometheus~=20.0",
"dataclasses_json~=0.5",
"djenius-base~=1.0",
"sortedcontainers~=2.0",
"whoosh~=2.0",
],
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
)