-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use setting for gbasf2 setup file instead of install directory #162
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #162 +/- ##
==========================================
+ Coverage 59.20% 60.47% +1.27%
==========================================
Files 23 23
Lines 1554 1594 +40
==========================================
+ Hits 920 964 +44
+ Misses 634 630 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Usage of `gbasf2_install_directory` will cause a pending deprecation warning, but it can still be used and then the corresponding path to the `setup.sh` will be derived. * Rationale: b2luigi only needs to know which file to source to get the correct environment. The location or name of that file withing a gbasf2 install directory can change between gbasf2 releases. Providing the file path directly results in more simplicity and flexibility. * Additional enhancement: In addition, the setting is now only obtained in the `Gbasf2Process` class and not in the free helper functions, which now get the value via function arguments. With this, the setting can be provided via a Task class attribute and the value from the Task attribute will be used everywhere as expected. This resulted in much more boiler plate code, but also it made my helper function much more usable as library function without b2luigi settings.
95d7b40
to
715b355
Compare
Partly addresses #195 in that this helps setting the setupfile directly. But it seems there are remaining issues with the current gbasf2 releases that are not fixed by this and I don't have time to fix that right now. |
Usage of
gbasf2_install_directory
will cause a pending deprecation warning,but it can still be used and then the corresponding path to
the
setup.sh
will be derived.Rationale:
b2luigi only needs to know which file to source to get the correct
environment. The location or name of that file withing a gbasf2 install
directory can change between gbasf2 releases. Providing the file path directly
results in more simplicity and flexibility.
Additional enhancement:
In addition, the setting is now only obtained in the
Gbasf2Process
class andnot in the free helper functions, which now get the value via function
arguments. With this, the setting can be provided via a Task class attribute and
the value from the Task attribute will be used everywhere as expected.
This resulted in much more boiler plate code, but also it made my helper
function much more usable as library function without b2luigi settings.