Support for relative imports to reuse step impls#360
Support for relative imports to reuse step impls#360BugDiver merged 5 commits intogetgauge:masterfrom kunalvishwasrao:feature/#359-reuse-step_impls-via-relative-imports
Conversation
Added support to reuse the step implementations from a different project using relative imports #359 Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com>
|
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 <kunal.vishwasrao@gmail.com>
|
@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 <kunal.vishwasrao@gmail.com>
|
@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 <kunal.vishwasrao@gmail.com>
kunalvishwasrao
left a comment
There was a problem hiding this comment.
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 <kunal.vishwasrao@gmail.com>
…on to getgauge#360) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com>
…on to getgauge#360) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com>
* 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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * 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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Support for relative imports to reuse step impls Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Update release dependencies Signed-off-by: BugDiver <vinayshankar00@gmail.com> Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Correctly loading the methods from relatively imported classs (addition to #360) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Update getgauge/impl_loader.py Correctly loading the methods from relatively imported classes (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com> Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Returning method_list in update_step_resgistry_with_class method (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Adding test class for relative import unittest (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Adding unittest for relative import (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Renaming method to update_step_registry_with_class (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Updating unittest for impl loader (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> * Bumping up python package version (#365) Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Kunal Vishwasrao <kunal.vishwasrao@gmail.com> Signed-off-by: BugDiver <vinayshankar00@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vinay Shukla <vinayshankar00@gmail.com> Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
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!😄