-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Drop dependency on 'google.apputils'. #165
Conversation
Use stdlib's 'unittest' instead.
seems like a no-brainer. @tseaver can you rebase? |
Unfortunately I don't think the rebase will be trivial. I wrote more about this here: #166 (comment) |
Specifically we've started depending on a feature of google-apputils test framework. I'd be happy to see us drop the google-apputils dependency, but we'd need a way to accommodate the need that |
Looks like this repo doesn't actually use upstream's |
It's true. We discovered that the open-source release of google-apputils hasn't actually been updated in a while, so it doesn't include |
Does that mean that this rebase will be relatively straightforward, then? |
No because our copy of |
@haberman |
Instructions/docs for this are in the Python README: https://github.com/google/protobuf/tree/master/python |
Hm, well I'm trying to rebase this and get the tests running - with the following change: diff --git a/python/setup.py b/python/setup.py
index c18818e..cf22b75 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -165,7 +165,7 @@ if __name__ == '__main__':
version = GetVersion(),
packages = [ 'google' ],
namespace_packages = [ 'google' ],
- google_test_dir = "google/protobuf/internal",
+ test_suite = 'google.protobuf.internal',
# Must list modules explicitly so that we don't install tests.
py_modules = [
'google.protobuf.internal.api_implementation',
@@ -195,11 +195,6 @@ if __name__ == '__main__':
'google.protobuf.text_format'],
cmdclass = { 'clean': clean, 'build_py': build_py },
install_requires = ['setuptools'],
- # TODO: Restore dependency once a Python 3 compatible google-apputils
- # is released.
- setup_requires = (['google-apputils']
- if sys.version_info[0] < 3 else
- []),
ext_modules = ext_module_list,
url = 'https://developers.google.com/protocol-buffers/',
maintainer = maintainer_email,
I get the following error:
Any idea what's going on? |
It looks like it is failing to load one of the test modules for some reason. These are probably the kinds of errors that will need to be sorted through for this change to be workable. |
Use stdlib's 'unittest' instead.