-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (29 loc) · 848 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
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
"""
Setup script for pybanker (python3).
"""
# core python packaes
import setuptools
# third party packages
# custom packages
import git_tools
_LIB_DIR = 'lib'
class InfoCommand(setuptools.Command):
"""Show basic info about the package."""
description = 'show basic package info'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print('Version: {}'.format(git_tools.version_from_tag()))
def main():
setup_args = dict()
setup_args['version'] = git_tools.version_from_tag()
setup_args['package_dir'] = {'': _LIB_DIR}
setup_args['packages'] = setuptools.find_packages(_LIB_DIR)
setup_args['cmdclass'] = {'info': InfoCommand}
setuptools.setup(**setup_args)
if __name__ == '__main__':
main()