Pin napalm-base

Eliminate pylama.ini; replace with setup.cfg
Add requirements-dev.txt
Implement __version__ solution
This commit is contained in:
Kirk Byers committed 2016-10-14 12:53:03 -07:00
1 parent 9d805f8f3b
commit 225b3256fc
5 files changed
+26 -8

No files matched your search

+12 -1
View File
@@ -13,4 +13,15 @@
# the License.
"""napalm_fortios package."""
from fortios import FortiOSDriver
# Import stdlib
import pkg_resources
# Import local modules
from napalm_fortios.fortios import FortiOSDriver
try:
__version__ = pkg_resources.get_distribution('napalm-fortios').version
except pkg_resources.DistributionNotFound:
__version__ = "Not installed"
__all__ = ('FortiOSDriver',)
-6
View File
@@ -1,6 +0,0 @@
[pylama]
linters = mccabe,pep257,pep8,pyflakes
ignore = D203,
[pylama:pep8]
max_line_length = 120
+7
View File
@@ -0,0 +1,7 @@
pytest
pytest-cov
pytest-json
pytest-pythonpath
pylama
flake8-import-order
-r requirements.txt
+1 -1
View File
@@ -1,2 +1,2 @@
napalm_base
napalm-base==0.17.0
pyFG
+6
View File
@@ -0,0 +1,6 @@
[pylama]
linters = mccabe,pep8,pyflakes
ignore = D203,C901
[pylama:pep8]
max_line_length = 100