-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
37 lines (34 loc) · 1.2 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
34
35
36
37
#!/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!
# install_requires=[
# 'numpy',
# 'pandas',
# 'masci-tools',
# 'aiida-core',
# 'pytz',
# 'humanfriendly',
# 'pycifrw', # structure_analyzer
# 'spglib', # structure_analyzer
# # 'aiida-kkr', # plugins.kkr
# ],
# add rest of the things defined in setup.json
**kwargs
)