-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (26 loc) · 996 Bytes
/
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
"""alie setup.py."""
from os.path import join
from os.path import abspath
from os.path import dirname
import json
from setuptools import find_packages
from setuptools import setup
ROOT = abspath(dirname(__file__))
# please put setup keywords in the setup.json to keep this file clean
with open(join(ROOT, "setup.json"), "r") as f:
SETUP = json.load(f)
# see 4 > https://packaging.python.org/guides/single-sourcing-package-version/
with open(join(ROOT, "alie", "VERSION"), "r") as f:
VERSION = f.read().strip()
setup(
# single source package version
version=VERSION,
# in combination with recursive-includes in MANIFEST.in, non-python files
# within the alie will be copied into the
# site-packages and wheels installation directories
include_package_data=True,
# return a list all Python packages found within the ROOT directory
packages=find_packages(),
# pass parameters loaded from setup.json including author and version
**SETUP
)