forked from JuDFTteam/aiida-kkr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (23 loc) · 900 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
#!/usr/bin/env python
from __future__ import absolute_import
from setuptools import setup, find_packages
import json
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.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)
# finihed reading everything in
setup(
packages=find_packages(),
# add long_description from readme.md:
long_description = long_description, # add contents of README.md
long_description_content_type ='text/markdown', # This is important to activate markdown!
# add rest of the things defined in setup.json
**kwargs
)