-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Improve PyPI packaging #71
Conversation
Thanks for submitting! I see that your commit messages talk about the tests. On my end, though, both the tox tests and Docker tests are failing. That could be a local problem on my end. Can you verify that they both work for you? FYI, if you haven't run the Docker tests yet, I'd suggest re-syncing with |
In effect, this tests that the setup.py configuration is correct. coverage combine and coverage:paths are added to keep the displayed coverage paths as src/ssh_audit/*.py instead of .tox/$envname/**/site-packages/ssh_audit/*.py
Python 3 defaults to UTF-8 encoding. https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations
Shouldn't need to be an executable. Related: git has this file tracked as chmod -x.
I think it's a local problem on your computer. What error are they failing with? Tox passes on my machine and in Travis too. I haven't run the Docker tests as my Docker install is slightly broken at the moment. If you could run them on this branch that would be great. Not sure when I'll get around to figuring out what broke my install... I've also rebased this onto the latest master. |
I can confirm both
I am not familiar with the docker tests, but maybe some paths need to be updated? cc @jtesta Other than that - the PR looks great! I noticed you deleted the |
Thanks! I removed |
@gschaffner Thanks for doing this work! It was a big help! |
@jugmac00 And thanks for helping review this PR! |
Yep, I'm working on #47 now (in my file_split branch). It's a mess of
untangling circular dependencies...
I also found that having external files makes Windows packaging much
harder & messy, so I'm planning on merging them to an internal dict (see
#75).
After all that, then creating updated Snap, PyPI, Windows, and Docker
builds should be much easier.
…On 10/14/20 7:14 PM, Ganden Schaffner wrote:
@jtesta <https://github.com/jtesta> Glad to help!
BTW, it looks like the snap packaging files still need an update. (I had
just moved them without modification since I am not familiar with snap.)
I'm guessing that you are waiting until after #47
<#47> to fix them, but I
wanted to bump you to make sure it's on your radar.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#71 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWYA65NZQGPWHHYT3KKBW3SKYWDZANCNFSM4SA2V32Q>.
--
Joseph S. Testa II
Founder & Principal Security Consultant
Positron Security
|
Hi! Thanks for the great work on this program.
This draft PR closes #46.
A couple notes:
src
directory. For info about the benefits of this, check out https://blog.ionelmc.ro/2014/05/25/python-packaging/ and setup.py #46 (comment).ssh-audit.py
wrapper for backwards compatibilityimport sshaudit.sshaudit
toimport ssh_audit.ssh_audit
to adhere to what the vast majority of Python projects with a hyphenated name use. Can revert tosshaudit.sshaudit
if backwards compatibility is a concern here.windows_build.txt
needs checking; I haven't tested the changes I made there.And minor notes:
git mv
's.ssh_audit
fixture is somewhat unnecessary now and could be removed if you want.__main__.py
to work around Relative imports broken in pylint 2.5.2 pylint-dev/pylint#3651