forked from NOAA-GFDL/MDTF-diagnostics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (47 loc) · 1.65 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
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
# Leave option to run commands post-install
# see https://stackoverflow.com/a/36902139
def _post_install():
pass
class PostDevelopCommand(develop):
"""Post-installation for development mode, same as install for now."""
def run(self):
_post_install()
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
_post_install()
install.run(self)
with open("README.md", 'r') as f:
long_description = f.read()
packages = find_packages()
setup(
name='MDTF-diagnostics',
version='3.0',
description='Process-oriented diagnostics for weather and climate simulations',
license='LGPLv3',
long_description=long_description,
long_description_content_type='text/markdown',
author='MDTF Collaboration',
author_email='[email protected]',
url="https://github.com/NOAA-GFDL/MDTF-diagnostics",
classifiers=[
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
],
scripts=[
'mdtf_framework.py'
],
packages=packages,
cmdclass={ # hook for post-install commands
'develop': PostDevelopCommand,
'install': PostInstallCommand
}
# install_requires=[...] #external packages as dependencies
)