Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

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

Merged
gschneider-r7 merged 8 commits into
masterfrom
fix_imports_py2_py3
Oct 2, 2017
Merged

Fix py2/py3 compatibility due to relative import issues#24
gschneider-r7 merged 8 commits into
masterfrom
fix_imports_py2_py3

Conversation

@gschneider-r7

@gschneider-r7 gschneider-r7 commented Sep 1, 2017

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have updated the documentation accordingly (if changes are required).
  • I have added tests to cover my changes.
  • All new and existing tests passed.

TODO: Figure out how to get imports working properly for tests and demo
script without hacky hacks.
@gschneider-r7 gschneider-r7 changed the title [WIP] Fix py2/py3 compatibility due to relative import issues Fix py2/py3 compatibility due to relative import issues Oct 2, 2017
@gschneider-r7

gschneider-r7 commented Oct 2, 2017

Copy link
Copy Markdown
Contributor Author

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

@gschneider-r7
gschneider-r7 merged commit 362a89a into master Oct 2, 2017
@gschneider-r7
gschneider-r7 deleted the fix_imports_py2_py3 branch October 5, 2017 00:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

module 'nexpose' has no attribute 'NexposeSession' in version 0.1.3

1 participant