-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
93 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Please read http://napalm.readthedocs.io/en/latest/contributing/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include requirements.txt | ||
include napalm_comware/templates/*.j2 | ||
include napalm_comware/utils/textfsm_templates/*.tpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
napalm>=3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"""setup.py file.""" | ||
|
||
from setuptools import setup, find_packages | ||
import re | ||
|
||
|
||
with open("requirements.txt", "r") as fs: | ||
reqs = [r for r in fs.read().splitlines() if ( | ||
len(r) > 0 and not r.startswith("#"))] | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
__author__ = "Eric Wu <[email protected]>" | ||
|
||
# get version without importing | ||
with open("napalm_comware/__init__.py", "r") as f: | ||
VERSION = str(re.search('__version__ = "(.+?)"', f.read()).group(1)) | ||
|
||
|
||
setup( | ||
name="napalm-comware-ssh", | ||
version=VERSION, | ||
author="Eric Wu", | ||
author_email="[email protected]", | ||
description="NAPALM driver for H3C/HPE Comware V7 network devices.", | ||
license="Apache 2.0", | ||
long_description_content_type="text/markdown", | ||
long_description=long_description, | ||
url="https://github.com/xdai555/napalm-comware-ssh", | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/xdai555/napalm-comware-ssh/issues", | ||
}, | ||
classifiers=[ | ||
"Topic :: Utilities", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS", | ||
], | ||
packages=find_packages(exclude=("test*", "*demo.py")), | ||
include_package_data=True, # declarations in MANIFEST.in | ||
install_requires=reqs, | ||
) |