-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (26 loc) · 913 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
# -*- coding: utf-8 -*-
"""Define the setup for the `aiida-basis` plugin."""
try:
import fastentrypoints # pylint: disable=unused-import
except ImportError:
# This should only occur when building the package, i.e. for `python setup.py sdist/bdist_wheel`
pass
def setup_package():
"""Install the `aiida-basis` package."""
import json
from setuptools import setup, find_packages
filename_setup_json = 'setup.json'
filename_description = 'README.md'
with open(filename_setup_json, 'r') as handle:
setup_json = json.load(handle)
with open(filename_description, 'r') as handle:
description = handle.read()
setup(
include_package_data=True,
packages=find_packages(),
long_description=description,
long_description_content_type='text/markdown',
**setup_json
)
if __name__ == '__main__':
setup_package()