forked from aiidateam/reentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
22 lines (19 loc) · 689 Bytes
/
setup.py
File metadata and controls
22 lines (19 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf8 -*-
"""
Install configuration for setuptools / pip
"""
from os import path
from setuptools import setup, find_packages
import json
README_PATH = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
JSON_PATH = path.join(path.dirname(path.abspath(__file__)), 'setup.json')
# Provide static information in setup.json
# such that it can be discovered automatically
with open(JSON_PATH, 'r') as info:
kwargs = json.load(info)
setup(packages=find_packages(),
include_package_data=True,
package_data={'': ['js_data', 'README.rst']},
long_description=open(README_PATH).read(),
long_description_content_type='text/x-rst',
**kwargs)