This repository was archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (43 loc) · 1.38 KB
/
setup.py
File metadata and controls
48 lines (43 loc) · 1.38 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import sys
from setuptools import setup
from Cython.Build import cythonize
NAME = 'saltwinshell'
DESC = 'Agentless Salt for Windows, compatible with salt-ssh'
PYVER = 'Py3'
if sys.version_info.major == 2:
PYVER = 'Py2'
# Version info -- read without importing
_locals = {}
with open('saltwinshell/version.py') as fp:
exec(fp.read(), None, _locals)
VERSION = _locals['version']
setup(name=NAME,
version=VERSION,
description=DESC,
author='VMware, Inc.',
author_email='saltproject@vmware.com',
url='https://saltproject.io/',
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Development Status :: 5 - Production/Stable',
],
packages=['saltwinshell'],
install_requires=[
'smbprotocol',
'pywinrm',
'pyopenssl',
],
data_files=[
('saltwinshell',['enable_winrm.ps1']),
('saltwinshell',['Synchronous-ZipAndUnzip.psm1']),
('saltwinshell',['Salt-Env-{0}-AMD64-{1}.zip'.format(VERSION, PYVER)]),
('saltwinshell',['Salt-Env-{0}-x86-{1}.zip'.format(VERSION, PYVER)]),
],
ext_modules=cythonize('saltwinshell/core.pyx'),
)