forked from British-Oceanographic-Data-Centre/COAsT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (26 loc) · 881 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
from setuptools import setup
from coast import PACKAGE
def get_package(package_path="package.json"):
from types import SimpleNamespace
import json
with open(package_path, "r") as package_file:
_package = json.load(package_file)
return SimpleNamespace(**_package)
setup(
name=PACKAGE.name,
version=PACKAGE.version,
description=PACKAGE.description,
url=PACKAGE.url,
download_url=PACKAGE.download_url,
author=PACKAGE.author,
author_email=PACKAGE.author_email,
license=PACKAGE.license, # TODO,
setup_requires=PACKAGE.setup_requires,
classifiers=PACKAGE.classifiers,
keywords=PACKAGE.keywords,
project_urls=PACKAGE.project_urls,
install_requires=PACKAGE.install_requires,
python_requires=PACKAGE.python_requires,
packages=PACKAGE.packages,
include_package_data=PACKAGE.include_package_data
)