Skip to content

Commit 535b147

Browse files
committed
changes for PyPI upload.
1 parent d442832 commit 535b147

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

setup.py

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
# $ ./setup.py sdist
44

5+
# PyPI
6+
7+
# one time
8+
# $ ./setup.py register -r testpypi
9+
10+
# $ ./setup.py sdist upload -r testpypi
11+
512
from distutils.core import setup
613

714
version = 'snapshot'
@@ -16,16 +23,33 @@
1623
import time
1724
version = 'snapshot-' + time.strftime('%Y%m%d')
1825

26+
with open('README.txt') as file:
27+
long_description = file.read()
28+
1929
setup(name='pan-python',
2030
version=version,
21-
description='Python package for PAN-OS',
22-
long_description='Python interface to the PAN-OS XML API',
31+
description='Multi-tool set for Palo Alto Networks PAN-OS and ' +
32+
'Panorama API and XML configuration',
33+
long_description=long_description,
2334
author='Kevin Steves',
2435
author_email='[email protected]',
2536
url='https://github.com/kevinsteves/pan-python',
2637
license='ISC',
27-
#
28-
package_dir = {'': 'lib'},
38+
classifiers=[
39+
'Development Status :: 3 - Alpha',
40+
'Environment :: Console',
41+
'Intended Audience :: Developers',
42+
'Intended Audience :: End Users/Desktop',
43+
'License :: OSI Approved :: ISC License (ISCL)',
44+
'Programming Language :: Python',
45+
'Programming Language :: Python :: 2',
46+
'Programming Language :: Python :: 2.7',
47+
'Programming Language :: Python :: 3',
48+
'Programming Language :: Python :: 3.2',
49+
'Programming Language :: Python :: 3.3',
50+
],
51+
52+
package_dir={'': 'lib'},
2953
packages=['pan'],
3054
scripts=['bin/panxapi.py', 'bin/panconf.py']
31-
)
55+
)

0 commit comments

Comments
 (0)