Pin napalm-base
Eliminate pylama.ini; replace with setup.cfg Add requirements-dev.txt Implement __version__ solution
This commit is contained in:
1 parent
9d805f8f3b
commit
225b3256fc
5 files changed
+26
-8
No files matched your search
@@ -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',)
|
||||
@@ -1,6 +0,0 @@
|
||||
[pylama]
|
||||
linters = mccabe,pep257,pep8,pyflakes
|
||||
ignore = D203,
|
||||
|
||||
[pylama:pep8]
|
||||
max_line_length = 120
|
||||
@@ -0,0 +1,7 @@
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-json
|
||||
pytest-pythonpath
|
||||
pylama
|
||||
flake8-import-order
|
||||
-r requirements.txt
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
napalm_base
|
||||
napalm-base==0.17.0
|
||||
pyFG
|
||||
Reference in new issue
Block a user