File tree Expand file tree Collapse file tree 4 files changed +87
-2
lines changed
Expand file tree Collapse file tree 4 files changed +87
-2
lines changed Original file line number Diff line number Diff line change 1+ # Changelog
2+ All notable changes to this project will be documented in this file.
3+
4+ The format is based on [ Keep a Changelog] ( https://keepachangelog.com/ )
5+
6+
7+ ## [ Unreleased]
8+ ### Added
9+ ### Changed
10+ ### Deprecated
11+ ### Removed
12+ ### Fixed
13+ ### Security
14+
15+
16+ ## [ 0.0.9] - 2017-11-28
17+ ### Added
18+ - Method to fully install an OS on a device.
19+ - Support for dynamically determining a devices default file system to be used by methods that deal with file management.
20+ - Several validations that ensure methods that perform actions on a device properly accomplished what they set out to do.
21+ - Several Exception classes to report when methods do not accomplish what they attempted to do.
22+ - Internal methods to "reconnect" to devices after a reboot; accepts a timeout to gauge if device takes longer than expected to boot up.
23+ - Internal method to validate that the device has booted the specified image.
24+ - Linting with Black
25+ - Official versioning in __ init__
26+ ### Changed
27+ - Defaulting methods that manage files to default to using the devices default file system, while also allowing users to specfiy the file system.
28+ - ASADevice to inherit from BaseDevice instead of IOSDevice.
29+ - Changed TextFSM parsing to open files using a context manager.
30+ ### Fixed
31+ - Issues with determining the boot variables for certain IOS versions and models.
32+ - Issue where IOS devices only supported booting files in "flash:" file system.
33+ - Issue with facts data not getting updated when calling the refresh_facts method.
Original file line number Diff line number Diff line change 1111except ImportError :
1212 from ConfigParser import SafeConfigParser
1313
14+ __version__ = "0.0.9"
15+
1416LIB_PATH_ENV_VAR = "PYNTC_CONF"
1517LIB_PATH_DEFAULT = "~/.ntc.conf"
1618
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools" , " wheel" ]
3+ build-backend = " flit.buildapi"
4+
5+ [tool .flit .metadata ]
6+ module = " pyntc"
7+ author = " Network to Code"
8+ author-email =
" [email protected] " 9+ home-page = " https://github.com/networktocode/pyntc"
10+ description-file = " README.md"
11+ requires = [
12+ " requests>=2.7.0" ,
13+ " jsonschema" ,
14+ " future" ,
15+ " netmiko" ,
16+ " paramiko" ,
17+ " pynxos>=0.0.3" ,
18+ " coverage" ,
19+ " mock>=1.3" ,
20+ " textfsm" ,
21+ " terminal" ,
22+ " f5-sdk" ,
23+ " bigsuds" ,
24+ " pyeapi" ,
25+ " junos-eznc" ,
26+ " scp" ,
27+ ]
28+
29+ [tool .black ]
30+ line-length = 120
31+ py36 = true
32+ include = ' \.pyi?$'
33+ exclude = '''
34+ /(
35+ \.git
36+ | \.tox
37+ | \.venv
38+ | _build
39+ | buck-out
40+ | build
41+ | dist
42+ | blib2to3
43+ | tests/data
44+ )/
45+ '''
Original file line number Diff line number Diff line change 1+ import re
12from setuptools import find_packages , setup
23
4+ with open ("pyntc/__init__.py" ) as pkg_init :
5+ # Create a dict of all dunder vars and their values in package __init__
6+ metadata = dict (re .findall ("__(\w+)__\s*=\s*\" (\S+?)\" " , pkg_init .read ()))
7+
38name = "pyntc"
4- version = "0.0.8"
9+ version = metadata [ "version" ]
510packages = find_packages ()
611package_data = {"pyntc" : ["templates/*.template" , "devices/tables/jnpr/*.yml" ]}
712
2833author = "Network To Code"
2934author_email = "[email protected] " 3035url = "https://github.com/networktocode/pyntc"
31- download_url = "https://github.com/networktocode/pyntc/tarball/0.0.8"
36+ download_url = "https://github.com/networktocode/pyntc/tarball/{}" . format ( version )
3237description = "A multi-vendor library for managing network devices."
3338
3439setup (
You can’t perform that action at this time.
0 commit comments