-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update project internals #36
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
===========================================
+ Coverage 66.86% 81.78% +14.91%
===========================================
Files 10 8 -2
Lines 329 313 -16
===========================================
+ Hits 220 256 +36
+ Misses 109 57 -52
Continue to review full report at Codecov.
|
Makefile
Outdated
clean-build: | ||
rm --force --recursive build/ | ||
rm --force --recursive dist/ | ||
rm --force --recursive *.egg-info |
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.
this might delete your developer installation!
Makefile
Outdated
rm --force --recursive *.egg-info | ||
|
||
upload: | ||
twine upload dist/* |
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.
add a dependency chain here.
.PHONY clean-build build upload
clean-build:
build: clean-build
upload: build
this way we can just say upload and are always sure that the build is clean.
mdbenchmark/generate.py
Outdated
click.echo('Now run `mdbenchmark start` to submit jobs.') | ||
click.echo('Finished generating all benchmarks.') | ||
click.echo('You can now submit the jobs with {}.'.format( | ||
click.style('mdbenchmark start', bold=True))) |
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.
benchmark submit
4403ff0
to
0b3acd3
Compare
@kain88-de Besides the missing changelog fragments, this PR should be finished. I have got two questions:
|
Oh, I just noticed a weird edge case with Putting several changes on multiple lines does also not work in |
* We explicitly test all messages printed to the console errors warnings. * Test the `guess_ncores` utility function.
Several options.
|
It's not tested anymore in this repo. But the code has been tested before. We only use it as a backup now anyway.
No just a 1 for error occured. There is no real consistency with exit codes in TUI applications. So let's just stick with 0-OK or 1-Error. |
@kain88-de I can't find any other suitable replacement, nor does anyone comment on this issue in the If you are fine with the PR, we can merge and then I would finally prepare a new release (to finally have the bugfix for |
- Added `Makefile` to project. - Updated help text and docstrings for `generate`, `submit` and `analyze`. - Rephrased and formatted messages printed to the console. - `mdbenchmark generate` will now _first_ look for the `.tpr` file and only then do everything else. - Added unit tests for all messages generated via `click.echo()` and `click.BadParameter()`. - Add unit test for `guess_ncores()` utility function.
Changes made in this pull request:
Makefile
to project.generate
,submit
andanalyze
.mdbenchmark generate
will now first look for the.tpr
file and only then do everything else.click.echo()
andclick.BadParameter()
.guess_ncores()
utility function.PR Checklist
./changelog/
(more information)?[ ] Issue raised/referenced?