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
Cleanup setup.py #281
Cleanup setup.py #281
Conversation
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
CLAs look good, thanks! |
In this project we use 2-space indentation for Python. Would you mind updating the files to reflect this? |
@haberman done |
@haberman do you use 4-space indent for continuations? |
packages = [ 'google' ], | ||
namespace_packages = [ 'google' ], | ||
test_suite = 'google.protobuf.internal', | ||
# Must list modules explicitly so that we don't install tests. |
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.
Doesn't this comment still apply? Seems like we were listing individual modules for a reason.
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 believe that's covered by exclude google/protobuf/internal/*_test.py
in MANIFEST.in
@haberman added a few commits to get tests passing under 2.6. PTAL? |
@haberman this is green; mind having a once-over? |
Any chance this works with Python 2.5? Also, ideally we'd be able to actually test it under Python 2.5/2.6 using Travis. It's hard to keep things compatible if we are not regularly testing that compatibility. Hopefully this could be added to the Travis build without too much trouble? |
@haberman I did a lot of googling this morning to work out how to get travis to build a matrix of languages and versions of those languages (currently this project tests with multiple JDKs), and landed on this (still open) issue: travis-ci/travis-ci#2877, so it seems that this isn't possible without quite a bit of work, right now. I have another commit locally that makes the tests pass under 2.5 - I'll push it now, but it's pretty ugly and way more invasive. Also, the cpp implementation does compile with 2.5, because it uses |
@haberman what are you thinking? |
Sorry for the delay -- I'm trying to nail down whether it's feasible to drop 2.5 support right now by freezing the runtime used by AppEngine's 2.5 runtime. If we do that, then we can set the minimum supported version to either 2.6 or 2.7 and avoid a lot of pain. |
Makes sense! Let me know. |
Ok, we have a green-light to remove Python 2.5 compatibility from this repo! |
I am inclined to say that we drop support for Python < 2.7. Thoughts? |
Yep, I'm in agreement. Want me to update this PR to do that? |
maintainer_email='protobuf@googlegroups.com', | ||
license='New BSD License', | ||
classifiers=[ | ||
'Programming Language :: Python :: 2.7', |
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 suffices to support only 2.7, right?
Sure. If we don't have to worry about Python 2.6, this PR gets a lot shorter/simpler, right? |
Yeah, the last two commits are gone |
Green |
Thanks so much for this work and for your patience. If you are able, since you are modifying this part of the code already, could you possibly take a look at this bug and see if it would make sense to fix as part of this PR also? I'm not too familiar with Python setuptools, so I don't know the right answer here. The main symptom is that when I tried to upload protobuf-python v3.0.0-alpha-2 to PyPI using the command If you'd rather punt on this, that's ok too. I just wanted to mention it now since it seems like a prime time to address it. |
I don't know the solution either; let's punt and maybe @tseaver can contribute a fix on top of this PR. |
Would you mind closing #161?
|
Roughly a combination of #131 and #161 and closes both. @haberman