-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·87 lines (72 loc) · 2.23 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
84
85
86
87
#!/usr/bin/env python3
"""
SUMMARY setup.py
Copyright (C) 2017 Canux CHENG.
All rights reserved.
LICENSE GNU General Public License v3.0.
:author: Canux CHENG [email protected]
:since: Wed 01 Nov 2017 09:13:48 AM EDT
DESCRIPTION:
"""
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
import super_devops
NAME = 'super_devops'
VERSION = super_devops.__version__
URL = 'https://github.com/crazy-canux/super-devops'
DESCRIPTION = 'Tons of devops tools used for testing, monitoring, logging...'
KEYWORDS = 'DevOps Monitoring Testing Logging'
def read(readme):
"""Give reST format README for pypi."""
extend = os.path.splitext(readme)[1]
if extend == '.rst':
import codecs
return codecs.open(readme, 'r', 'utf-8').read()
elif extend == '.md':
import pypandoc
return pypandoc.convert(readme, 'rst')
class InstInstall(install):
def run(self):
print("PreInst for super-devops.")
install.run(self)
print("PostInst for super-devops.")
INSTALL_REQUIRES = []
setup(
name=NAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
keywords=KEYWORDS,
author='Canux CHENG',
author_email='[email protected]',
maintainer='Canux CHENG',
maintainer_email='[email protected]',
long_description=read('README.rst'),
license='GPL',
platforms='any',
install_requires=INSTALL_REQUIRES,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
scripts=[],
data_files=[],
cmdclass={
"install": InstInstall
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries"
],
)