rapid7 / nexpose-client-python

DEPRECATED : Rapid7 Nexpose API client library written in Python
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
25 stars 20 forks source link

Fix py2/py3 compatibility due to relative import issues #24

Closed gschneider-r7 closed 6 years ago

gschneider-r7 commented 7 years ago

Description

Use relative imports since this is a proper package. Get rid of the hacky scripts that make the project importable for the demo and test scripts, since they are no longer needed.

Motivation and Context

Fixes #23

How Has This Been Tested?

So far I have tested it locally with virtual environments for 2.7 and 3.6. I also have this branch running on travis-ci for the full suite of tested versions, which is passing after fixing imports on the tests.

Types of changes

Checklist:

gschneider-r7 commented 6 years ago

Tested with a built wheel that the relative imports work correctly when fully deployed on both Python 2.7 and 3.6.