forked from kevinsteves/pan-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·61 lines (51 loc) · 1.64 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
#!/usr/bin/env python
# $ ./setup.py sdist
# PyPI
# one time
# $ ./setup.py register -r testpypi
# $ ./setup.py sdist upload -r testpypi
from distutils.core import setup
version = 'snapshot'
version = None
if version is None:
import sys
sys.path[:0] = ['lib']
from pan.xapi import __version__
version = __version__
elif version == 'snapshot':
import time
version = 'snapshot-' + time.strftime('%Y%m%d')
with open('README.txt') as file:
long_description = file.read()
setup(name='pan-python',
version=version,
description='Multi-tool set for Palo Alto Networks' +
' PAN-OS, Panorama, WildFire and AutoFocus',
long_description=long_description,
author='Kevin Steves',
author_email='kevin.steves@pobox.com',
url='https://github.com/kevinsteves/pan-python',
license='ISC',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
package_dir={'': 'lib'},
packages=['pan', 'pan/afapi', 'pan/licapi'],
scripts=[
'bin/panxapi.py',
'bin/panconf.py',
'bin/panwfapi.py',
'bin/panafapi.py',
'bin/panlicapi.py',
],
)