-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fix packaging script files for CLI #765
Conversation
Codecov Report
@@ Coverage Diff @@
## main #765 +/- ##
==========================================
+ Coverage 69.28% 69.33% +0.05%
==========================================
Files 43 44 +1
Lines 4294 4295 +1
Branches 1047 1047
==========================================
+ Hits 2975 2978 +3
+ Misses 1108 1107 -1
+ Partials 211 210 -1
|
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.
Looks like a merge got botched
Co-authored-by: Mike Henry <[email protected]>
@mikemhenry thanks for the catch. |
Co-authored-by: Mike Henry <[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.
Would like to request tests before merging.
# Copyright (c) 2023 The Regents of the University of Michigan | ||
# All rights reserved. | ||
# This software is licensed under the BSD 3-Clause License. | ||
"""Import command line scripts.""" |
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.
Can we add very basic CLI tests? Even just flow --help
. See signac for an example of this.
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.
We have these tests see https://github.com/glotzerlab/signac-flow/blob/main/tests/test_shell.py.
My guess is that tests are run in the repo directory which has the file but the install doesn't due to setuptools package detection requiring an __init__.py
.
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.
I see. I'll approve this.
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 is why I run tests on installed packages without any source directory. Too many issues like this can occur.
Description
Adds the necessary
__init__.py
file.Motivation and Context
Version 0.26.0 is broken when installing.
Resolves: #763
Checklist: