-
Notifications
You must be signed in to change notification settings - Fork 15
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
fixed paths for pip install #53
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for the nice work and the (much needed) explanation :)
I'll try my best not to make this one stale.
Unfortunately (?), you few style issues have been caught by the CI:
- trailing whitespace (W291)
- missing new lines (E302 / W292 )
Would you mind fixing these (or for the later disabling in the .travis file) ? Otherwise, I can merge it and fix this myself/
Bumped a new commit with fixes for those errors |
Wow, that was fast! |
Many thanks for the 3 iterations! Now, the CI is detecting more interesting issues... which may be caused by a few things that were done improperly in my original code. I'll try to get a better understanding of what we have... |
mmm that's weird, I haven't run the tests but the package worked fine for me.. |
it might help to keep you test code and your package code separate, that might be the cause of error (it complains about relative imports) |
FYI, I've started to try out a few things on https://github.com/SylvainDe/DidYouMean-Python/tree/testingPr53 with very limited success. I'll keep you posted if I do thing something interesting in the future and merge your PR at that point. |
sounds good, good luck! |
@SylvainDe ping for this or any of the three PRs attacking the same problem |
Hi @SylvainDe,
I know you have another PR that fixes this module's imports to make it work with
pip install
(#52), but it's a bit outdated so I thought I'd open a new one.The fix is fairly simple, where before you had:
now it's
notice the
.
beforedidyoumean_common_tests
, that tells python's importer to import those functions from thedidyoumean_common_tests
ofdidyoumean
.Similarly:
becomes
Hope that this helps clarify things a little bit, it might take a bit to wrap your head around how to import stuff (I know it took me quite a while).
Btw I've moved
readme_examples.py
outside of the package's folder because generally code for examples and tests should be separate from the package's code (e.g. see folder structure here).Feel free to move it back if you prefer