-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·99 lines (89 loc) · 3.25 KB
/
setup.py
File metadata and controls
executable file
·99 lines (89 loc) · 3.25 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python
'''
Installation script for setup from pip
pysa - reverse a complete computer setup
Copyright (C) 2013 MadeiraCloud Ltd.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@author: Thibault BRONCHAIN
'''
import os
import sys
import shutil
#import subprocess
import setuptools
from distutils.core import setup
#from distutils.command.install import install
#from distutils.command.sdist import sdist
DISTNAME = 'Pysa'
VERSION = '0.3b5'
DESCRIPTION = 'Reverse your Servers Configuration'
LONG_DESCRIPTION = open('README.txt').read()
MAINTAINER = 'Thibault BRONCHAIN - MadeiraCloud Ltd.'
MAINTAINER_EMAIL = 'pysa@mc2.io'
LICENSE = 'LICENSE.txt'
URL = 'http://madeiracloud.github.io/pysa/'
DOWNLOAD_URL = 'http://pypi.python.org/packages/source/P/Pysa/Pysa-'+VERSION+'.tar.gz'
#PACKAGES = ['pysa']
#PACKAGE_DIR = {'pysa': 'pysa'}
SCRIPTS = ['bin/pysa2puppet', 'bin/pysa']
#def abspath(path):
# return os.path.abspath(os.path.join(os.path.dirname(__file__), path))
#
#class pysa_install(install):
# user_options = install.user_options
#
# def initialize_options(self):
# install.initialize_options(self)
#
# def run(self):
# install.run(self)
#
# man_dir = abspath("./docs/man/")
# output = subprocess.Popen(
# [os.path.join(man_dir, "pysa_man.sh")],
# stdout=subprocess.PIPE,
# stderr=subprocess.PIPE,
# cwd=man_dir,
# env=dict({"PREFIX": self.prefix}, **dict(os.environ))
# ).communicate()[0]
# print output
#
#class pysa_sdist(sdist):
# def run(self):
# sdist.run(self)
if __name__ == "__main__":
pkg = setuptools.find_packages()
setup(name=DISTNAME,
version=VERSION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
download_url=DOWNLOAD_URL,
license=LICENSE,
packages = pkg,
# packages=PACKAGES,
# package_dir=PACKAGE_DIR,
scripts=SCRIPTS,
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Topic :: System',
],
# cmdclass={"install": pysa_install, "sdist": pysa_sdist},
)