Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textfsm window version check #1019

Merged
merged 7 commits into from
Apr 14, 2020
Merged

Conversation

vnitinv
Copy link
Contributor

@vnitinv vnitinv commented Apr 13, 2020

  • latest textfsm is not supported on windows.
  • Enable travis on windows.

Right now only around 800 test cases get executed for windows and others are skipped. will fix skipped one in future.

Ran 796 tests in 18.407s
OK (SKIP=64)

@coveralls
Copy link

coveralls commented Apr 13, 2020

Coverage Status

Coverage remained the same at 93.798% when pulling bb3877b on vnitinv:textfsm-win into f9cb254 on Juniper:master.

if sys.version_info[:2] == (2, 6):
install_reqs.append('importlib>=1.0.3')
if sys.platform == 'win32':
install_reqs.append('textfsm==0.4.1')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove importlib ?

Kindly add the comment saying win32 supports testfsm 0.4.1.

Copy link
Contributor Author

@vnitinv vnitinv Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont support python 2.6 and importlib was explicitly needed for that version.
>=2.7 python got importlib by default

Copy link
Collaborator

@dineshbaburam91 dineshbaburam91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@dineshbaburam91 dineshbaburam91 merged commit e40a10b into Juniper:master Apr 14, 2020
p-sherratt added a commit to p-sherratt/py-junos-eznc that referenced this pull request May 29, 2020
Juniper#1019 no longer addresses issue of textfsm import in windows because of a change in ntc-templates==1.4.2  :

ImportError: cannot import name 'clitable' from 'textfsm' (<redacted>\lib\site-packages\textfsm\__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants