forked from 4Catalyzer/pykubectl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (42 loc) · 1.42 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
from setuptools import Command, setup, find_packages
import subprocess
# -----------------------------------------------------------------------------
def system(command):
class SystemCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.check_call(command, shell=True)
return SystemCommand
# -----------------------------------------------------------------------------
setup(
name="PyKubeCtl",
version='0.1.6',
description="A python bridge to kubectl",
url='https://github.com/4Catalyzer/pykubectl',
author="Giacomo Tagliabue",
author_email='[email protected]',
license='MIT',
classifiers=(
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
),
keywords='kubernetes docker ci cd',
packages=find_packages(),
install_requires=(
'PyYAML >= 3.11',
),
cmdclass={
'clean': system('rm -rf build dist *.egg-info'),
'package': system('python setup.py sdist bdist_wheel'),
'publish': system('twine upload dist/*'),
'release': system('python setup.py clean package publish'),
},
)