forked from ianBBB/boa-constructor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (37 loc) · 899 Bytes
/
setup.py
File metadata and controls
41 lines (37 loc) · 899 Bytes
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 __future__ import annotations
from pathlib import Path
from setuptools import find_packages, setup
ROOT = Path(__file__).parent.resolve()
# Install top-level modules (legacy Boa layout keeps many modules at repo root).
EXCLUDED_MODULES = {"setup"}
py_modules = sorted(
p.stem
for p in ROOT.glob("*.py")
if p.stem not in EXCLUDED_MODULES
)
setup(
packages=find_packages(exclude=("TestArea", "TestArea.*")),
py_modules=py_modules,
include_package_data=True,
package_data={
"": [
"*.cfg",
"*.rc.cfg",
"*.txt",
"*.htb",
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ico",
"*.xrc",
"*.xml",
"*.html",
"*.css",
"*.js",
"*.po",
"*.mo",
]
},
zip_safe=False,
)