-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
33 lines (26 loc) · 1.05 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
import json
from pathlib import Path
from setuptools import find_packages, setup
MODULE_DIR = Path(__file__).resolve().parent
with open(MODULE_DIR.joinpath("setup.json")) as handle:
SETUP_JSON = json.load(handle)
with open(MODULE_DIR.joinpath("requirements.txt")) as handle:
REQUIREMENTS = [f"{_.strip()}" for _ in handle.readlines()]
with open(MODULE_DIR.joinpath("requirements_testing.txt")) as handle:
TESTING = [f"{_.strip()}" for _ in handle.readlines()]
with open(MODULE_DIR.joinpath("requirements_dev.txt")) as handle:
DEV = [f"{_.strip()}" for _ in handle.readlines()] + TESTING
setup(
long_description=open(MODULE_DIR.joinpath("README.md")).read(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=["tests", "profiles"]),
python_requires=">=3.9",
install_requires=REQUIREMENTS,
extras_require={"dev": DEV, "testing": TESTING},
entry_points={
"console_scripts": [
"aiida-optimade = aiida_optimade.cli.cmd_aiida_optimade:cli",
],
},
**SETUP_JSON,
)