|
1 | 1 | # -*- coding: utf-8 -*-
|
| 2 | +from setuptools import setup |
2 | 3 |
|
3 |
| -# DO NOT EDIT THIS FILE! |
4 |
| -# This file has been autogenerated by dephell <3 |
5 |
| -# https://github.com/dephell/dephell |
| 4 | +packages = ["panos"] |
6 | 5 |
|
7 |
| -try: |
8 |
| - from setuptools import setup |
9 |
| -except ImportError: |
10 |
| - from distutils.core import setup |
| 6 | +package_data = {"": ["*"]} |
11 | 7 |
|
| 8 | +install_requires = ["pan-python>=0.17.0,<0.18.0"] |
12 | 9 |
|
13 |
| -import os.path |
| 10 | +setup_kwargs = { |
| 11 | + "name": "pan-os-python", |
| 12 | + "version": "1.8.0", |
| 13 | + "description": "Framework for interacting with Palo Alto Networks devices via API", |
| 14 | + "long_description": 'Palo Alto Networks PAN-OS SDK for Python\n========================================\n\nThe PAN-OS SDK for Python (pan-os-python) is a package to help interact with\nPalo Alto Networks devices (including physical and virtualized Next-generation\nFirewalls and Panorama). The pan-os-python SDK is object oriented and mimics\nthe traditional interaction with the device via the GUI or CLI/API.\n\n* Documentation: http://pan-os-python.readthedocs.io\n\n-----\n\n[](https://pypi.python.org/pypi/pan-os-python)\n[](https://pypi.python.org/pypi/pan-os-python)\n[](https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/LICENSE)\n[](http://pan-os-python.readthedocs.io/en/latest/?badge=latest)\n[](https://github.com/PaloAltoNetworks/pan-os-python/discussions)\n\n[](https://github.com/semantic-release/semantic-release)\n[](https://conventionalcommits.org/)\n[](https://github.com/dephell/dephell)\n[](https://github.com/PaloAltoNetworks/pan-os-python/graphs/contributors/)\n\n-----\n\nFeatures\n--------\n\n- Object model of Firewall and Panorama configuration\n- Multiple connection methods including Panorama as a proxy\n- All operations natively vsys-aware\n- Support for high availability pairs and retry/recovery during node failure\n- Batch User-ID operations\n- Device API exception classification\n\nStatus\n------\n\nPalo Alto Networks PAN-OS SDK for Python is considered stable. It is fully tested\nand used in many production environments. Semantic versioning is applied to indicate\nbug fixes, new features, and breaking changes in each version.\n\nInstall\n-------\n\nInstall using pip:\n\n```shell\npip install pan-os-python\n```\n\nUpgrade to the latest version:\n\n```shell\npip install --upgrade pan-os-python\n```\n\nIf you have poetry installed, you can also add pan-os-python to your project:\n \n```shell\npoetry add pan-os-python\n```\n\nHow to import\n-------------\n\nTo use pan-os-python in a project:\n\n```python\nimport panos\n```\n\nYou can also be more specific about which modules you want to import:\n\n```python\nfrom panos import firewall\nfrom panos import network\n```\n\n\nA few examples\n--------------\n\nFor configuration tasks, create a tree structure using the classes in\neach module. Nodes hierarchy must follow the model in the\n[Configuration Tree](http://pan-os-python.readthedocs.io/en/latest/configtree.html).\n\nThe following examples assume the modules were imported as such:\n\n```python\nfrom panos import firewall\nfrom panos import network\n```\n\nCreate an interface and commit:\n\n```python\nfw = firewall.Firewall("10.0.0.1", api_username="admin", api_password="admin")\neth1 = network.EthernetInterface("ethernet1/1", mode="layer3")\nfw.add(eth1)\neth1.create()\nfw.commit()\n```\n\nOperational commands leverage the \'op\' method of the device:\n\n```python\nfw = firewall.Firewall("10.0.0.1", api_username="admin", api_password="admin")\nprint fw.op("show system info")\n```\n\nSome operational commands have methods to refresh the variables in an object:\n\n```python\n# populates the version, serial, and model variables from the live device\nfw.refresh_system_info()\n```\n\nSee more examples in the [Usage Guide](http://pan-os-python.readthedocs.io/en/latest/usage.html).\n\nUpgrade from pandevice\n----------------------\n\nThis `pan-os-python` package is the evolution of the older `pandevice` package. To\nupgrade from `pandevice` to `pan-os-python`, follow these steps.\n\nStep 1. Ensure you are using python3\n\n [Python2 is end-of-life](https://www.python.org/doc/sunset-python-2/) and not\n supported by `pan-os-python`.\n\nStep 2. Uninstall pandevice:\n\n```shell\npip uninstall pandevice\n # or\npoetry remove pandevice\n```\n\nStep 3. Install pan-os-python:\n\n```shell\npip3 install pan-os-python\n # or\npoetry add pan-os-python\n```\n\nStep 4. Change the import statements in your code from `pandevice` to `panos`. For example:\n\n```python\nimport pandevice\nfrom pandevice.firewall import Firewall\n\n # would change to\n\nimport panos\nfrom panos.firewall import Firewall\n```\n\nStep 5. Test your script or application\n\n There are no known breaking changes\n between `pandevice v0.14.0` and `pan-os-python v1.0.0`, but it is a major\n upgrade so please verify everything works as expected.\n\nContributors\n------------\n\n- Brian Torres-Gil - [btorresgil](https://github.com/btorresgil)\n- Garfield Freeman - [shinmog](https://github.com/shinmog)\n- John Anderson - [lampwins](https://github.com/lampwins)\n- Aditya Sripal - [AdityaSripal](https://github.com/AdityaSripal)\n\nThank you to [Kevin Steves](https://github.com/kevinsteves), creator of the [pan-python library](https://github.com/kevinsteves/pan-python)\n', |
| 15 | + "author": "Palo Alto Networks", |
| 16 | + "author_email": "[email protected]", |
| 17 | + "maintainer": None, |
| 18 | + "maintainer_email": None, |
| 19 | + "url": "https://github.com/PaloAltoNetworks/pan-os-python", |
| 20 | + "packages": packages, |
| 21 | + "package_data": package_data, |
| 22 | + "install_requires": install_requires, |
| 23 | + "python_requires": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", |
| 24 | +} |
14 | 25 |
|
15 |
| -readme = "" |
16 |
| -here = os.path.abspath(os.path.dirname(__file__)) |
17 |
| -readme_path = os.path.join(here, "README.rst") |
18 |
| -if os.path.exists(readme_path): |
19 |
| - with open(readme_path, "rb") as stream: |
20 |
| - readme = stream.read().decode("utf8") |
21 | 26 |
|
22 |
| - |
23 |
| -setup( |
24 |
| - long_description=readme, |
25 |
| - name="pan-os-python", |
26 |
| - version="1.7.3", |
27 |
| - description="Framework for interacting with Palo Alto Networks devices via API", |
28 |
| - python_requires="!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4.0,>=2.7", |
29 |
| - project_urls={ |
30 |
| - "documentation": "https://pan-os-python.readthedocs.io", |
31 |
| - "homepage": "https://github.com/PaloAltoNetworks/pan-os-python", |
32 |
| - "repository": "https://github.com/PaloAltoNetworks/pan-os-python", |
33 |
| - }, |
34 |
| - author="Palo Alto Networks", |
35 |
| - |
36 |
| - license="ISC", |
37 |
| - keywords="panos pan-os-python", |
38 |
| - classifiers=[ |
39 |
| - "Development Status :: 5 - Production/Stable", |
40 |
| - "Intended Audience :: Developers", |
41 |
| - "License :: OSI Approved :: ISC License (ISCL)", |
42 |
| - "Natural Language :: English", |
43 |
| - "Programming Language :: Python :: 3", |
44 |
| - "Programming Language :: Python :: 3.5", |
45 |
| - "Programming Language :: Python :: 3.6", |
46 |
| - "Programming Language :: Python :: 3.7", |
47 |
| - "Programming Language :: Python :: 3.8", |
48 |
| - ], |
49 |
| - packages=["examples", "panos"], |
50 |
| - package_dir={"": "."}, |
51 |
| - package_data={"examples": ["*.md"]}, |
52 |
| - install_requires=["pan-python==0.*,>=0.17.0"], |
53 |
| - extras_require={ |
54 |
| - "dev": [ |
55 |
| - "bandit==1.*,>=1.6.2", |
56 |
| - 'black==19.*,>=19.10.0; python_version == "3.*" and python_version >= "3.6.0"', |
57 |
| - 'dephell==0.*,>=0.8.3; python_version == "3.*" and python_version >= "3.6.0"', |
58 |
| - 'fissix==19.*,>=19.2.0; python_version == "3.*" and python_version >= "3.6.0"', |
59 |
| - "flake8==3.*,>=3.7.9", |
60 |
| - 'flake8-bugbear==20.*,>=20.1.2; python_version == "3.*" and python_version >= "3.6.0"', |
61 |
| - "flake8-builtins==1.*,>=1.4.2", |
62 |
| - 'flake8-comprehensions==3.*,>=3.1.4; python_version == "3.*" and python_version >= "3.5.0"', |
63 |
| - "flake8-docstrings==1.*,>=1.5.0", |
64 |
| - 'flake8-eradicate==0.*,>=0.2.4; python_version == "3.*" and python_version >= "3.6.0"', |
65 |
| - "flake8-logging-format==0.*,>=0.6.0", |
66 |
| - "flake8-mock==0.*,>=0.3.0", |
67 |
| - "flake8-mutable==1.*,>=1.2.0", |
68 |
| - "flake8-pep3101==1.*,>=1.3.0", |
69 |
| - "flake8-pytest==1.*,>=1.3.0", |
70 |
| - "flake8-string-format==0.*,>=0.2.3", |
71 |
| - "flake8-variables-names==0.*,>=0.0.3", |
72 |
| - "isort==4.*,>=4.3.21", |
73 |
| - "m2r==0.*,>=0.2.1", |
74 |
| - "pep8-naming==0.*,>=0.9.1", |
75 |
| - 'pytest==5.*,>=5.3.2; python_version == "3.*" and python_version >= "3.5.0"', |
76 |
| - 'pytest-cov==2.*,>=2.8.1; python_version == "3.*" and python_version >= "3.5.0"', |
77 |
| - 'sphinx==2.*,>=2.3.1; python_version == "3.*" and python_version >= "3.5.0"', |
78 |
| - 'sphinx-autobuild==0.*,>=0.7.1; python_version == "3.*" and python_version >= "3.5.0"', |
79 |
| - 'sphinx-rtd-theme==0.*,>=0.4.3; python_version == "3.*" and python_version >= "3.5.0"', |
80 |
| - ] |
81 |
| - }, |
82 |
| -) |
| 27 | +setup(**setup_kwargs) |
0 commit comments