forked from IAMconsortium/pyam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·83 lines (69 loc) · 2.05 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
from __future__ import print_function
import glob
import os
import shutil
from setuptools import setup, Command, find_packages
from setuptools.command.install import install
# Thanks to http://patorjk.com/software/taag/
logo = r"""
______ __ __ ______ __ __
/\ == \ /\ \_\ \ /\ __ \ /\ "-./ \
\ \ _-/ \ \____ \ \ \ __ \ \ \ \-./\ \
\ \_\ \/\_____\ \ \_\ \_\ \ \_\ \ \_\
\/_/ \/_____/ \/_/\/_/ \/_/ \/_/
"""
INFO = {
'version': '0.1.0',
}
class Cmd(install):
"""Custom clean command to tidy up the project root."""
def initialize_options(self):
install.initialize_options(self)
def finalize_options(self):
install.finalize_options(self)
def run(self):
install.run(self)
dirs = [
'pyam.egg-info',
'build',
]
for d in dirs:
print('removing {}'.format(d))
shutil.rmtree(d)
def main():
print(logo)
packages = [
'pyam',
]
pack_dir = {
'pyam': 'pyam',
}
entry_points = {
'console_scripts': [
# list CLIs here
],
}
package_data = {
'pyam': ['region_mappings/*'],
}
cmdclass = {
'install': Cmd,
}
setup_kwargs = {
"name": "pyam",
"version": INFO['version'],
"description": 'Analyze Integrated Assessment Model Results'
'Trajectories',
"author": 'Matthew Gidden & Daniel Huppmann',
"author_email": 'matthew.gidden@gmail.com & huppmann@iiasa.ac.at',
"url": 'http://github.com/iiasa/pyam',
"packages": packages,
"package_dir": pack_dir,
"entry_points": entry_points,
"cmdclass": cmdclass,
"package_data": package_data,
}
rtn = setup(**setup_kwargs)
if __name__ == "__main__":
main()