-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support for relative imports to reuse step impls #360
Support for relative imports to reuse step impls #360
Conversation
Added support to reuse the step implementations from a different project using relative imports #359 Signed-off-by: Kunal Vishwasrao <[email protected]>
Personally I don’t have enough knowledge or time to review/validate this, especially without automated tests for all the paths. This does seem quite convoluted to me though, and potentially creating a lot of opportunity for issues in weird cases. |
Signed-off-by: Kunal Vishwasrao <[email protected]>
@zabil @kunalvishwasrao Can we also try to move the logic to append the path from |
@BugDiver, sure sounds good, will update that. |
Signed-off-by: Kunal Vishwasrao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kunalvishwasrao Thank you for contributing to gauge-python. Your pull request has been labeled as a release candidate 🎉🎉. Merging this PR will trigger a release. Please bump up the version as part of this PR.Instructions to bump the version can found at CONTRIBUTING.md If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done. |
Signed-off-by: Kunal Vishwasrao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BugDiver,
Thanks for approving the PR. I've bumped up the gauge-python version too. Can you please let me know if its ready to be merged?
Thanks!😄
…on to getgauge#360) Signed-off-by: Kunal Vishwasrao <[email protected]>
…on to getgauge#360) Signed-off-by: Kunal Vishwasrao <[email protected]>
…on to getgauge#360) Signed-off-by: Kunal Vishwasrao <[email protected]>
* Bump the pip-dependencies group with 2 updates (#358) Bumps the pip-dependencies group with 2 updates: [importlib-metadata](https://github.com/python/importlib_metadata) and [setuptools](https://github.com/pypa/setuptools). Updates `importlib-metadata` from 7.1.0 to 7.2.1 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](python/importlib_metadata@v7.1.0...v7.2.1) Updates `setuptools` from 70.0.0 to 70.1.0 - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](pypa/setuptools@v70.0.0...v70.1.0) --- updated-dependencies: - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip-dependencies - dependency-name: setuptools dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Kunal Vishwasrao <[email protected]> * Bump the pip-dependencies group across 1 directory with 3 updates (#362) Bumps the pip-dependencies group with 3 updates in the / directory: [debugpy](https://github.com/microsoft/debugpy), [importlib-metadata](https://github.com/python/importlib_metadata) and [setuptools](https://github.com/pypa/setuptools). Updates `debugpy` from 1.8.1 to 1.8.2 - [Release notes](https://github.com/microsoft/debugpy/releases) - [Commits](microsoft/debugpy@v1.8.1...v1.8.2) Updates `importlib-metadata` from 7.2.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](python/importlib_metadata@v7.2.1...v8.0.0) Updates `setuptools` from 70.1.0 to 70.1.1 - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](pypa/setuptools@v70.1.0...v70.1.1) --- updated-dependencies: - dependency-name: debugpy dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip-dependencies - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: pip-dependencies - dependency-name: setuptools dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Kunal Vishwasrao <[email protected]> * Support for relative imports to reuse step impls Signed-off-by: Kunal Vishwasrao <[email protected]> * Update release dependencies Signed-off-by: BugDiver <[email protected]> Signed-off-by: Kunal Vishwasrao <[email protected]> * Correctly loading the methods from relatively imported classs (addition to #360) Signed-off-by: Kunal Vishwasrao <[email protected]> * Update getgauge/impl_loader.py Correctly loading the methods from relatively imported classes (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> Co-authored-by: Zabil Cheriya Maliackal <[email protected]> Signed-off-by: Kunal Vishwasrao <[email protected]> * Returning method_list in update_step_resgistry_with_class method (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> * Adding test class for relative import unittest (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> * Adding unittest for relative import (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> * Renaming method to update_step_registry_with_class (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> * Updating unittest for impl loader (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> * Bumping up python package version (#365) Signed-off-by: Kunal Vishwasrao <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Kunal Vishwasrao <[email protected]> Signed-off-by: BugDiver <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vinay Shukla <[email protected]> Co-authored-by: Zabil Cheriya Maliackal <[email protected]>
Added support to reuse the step implementations from a different project using relative imports #359
Hey @chadlwilson, @BugDiver,
It would be really great if you could review this pull request and help me with the approval of pending workflow checks for merging this PR.
Thanks!😄