-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (23 loc) · 802 Bytes
/
setup.py
File metadata and controls
27 lines (23 loc) · 802 Bytes
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
import json
import os
from setuptools import setup
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join('dash_d3cloud', 'package.json')) as f:
package = json.load(f)
package_name = package["name"].replace(" ", "_").replace("-", "_")
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=package_name,
version=package["version"],
author=package['author'],
author_email=package["author_email"],
url=package["url"],
packages=[package_name],
package_data={package_name: ['*.json'] + ['*.js']},
include_package_data=True,
license=package['license'],
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[]
)