-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (20 loc) · 673 Bytes
/
setup.py
File metadata and controls
27 lines (20 loc) · 673 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
#!/usr/bin/env python
import json
from pathlib import Path
from setuptools import find_packages, setup
CURRENT_DIR = Path(__file__).parent
def get_long_description():
readme_md = CURRENT_DIR / "README.md"
with open(readme_md, encoding="utf8") as ld_file:
return ld_file.read()
if __name__ == "__main__":
# Provide static information in setup.json
# such that it can be discovered automatically
with open("setup.json", "r") as info:
kwargs = json.load(info)
setup(
packages=find_packages(),
long_description=get_long_description(),
long_description_content_type="text/markdown",
**kwargs,
)