commit | 9e543208a72300a4f8677fe725550fe8dc242bac | [log] [tgz] |
---|---|---|
author | Stephen Thorne <sthorne@google.com> | Mon Jul 17 10:29:27 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jul 17 10:30:08 2023 -0700 |
tree | 7f23a59a2957324ebaf2891063c858cd78a2b740 | |
parent | cadd68c54d85f4c5b2369f95babc8ddc6d1d515f [diff] |
Update parameterized.CoopTestCase to work with python3 metaclasses. By setting and accessing __metaclass__, we were not achieving the goals of this function, which is to make it possible to have both the functionality of paramterized.TestCase and another TestCase instance with its own metaclass. Because there are client classes that are using CoopTestCase to combine parameterized.TestCase with another class that isn't using a metaclass we need to support that use-case. We do it by returning a simple multiple inheritance subclass without a combined metaclass, and emit a warning telling the author they don't need to use this method. PiperOrigin-RevId: 548732415
This repository is a collection of Python library code for building Python applications. The code is collected from Google's own Python code base, and has been extensively tested and used in production.
To install the package, simply run:
pip install absl-py
Or install from source:
python setup.py install
To run Abseil tests, you can clone the git repo and run bazel:
git clone https://github.com/abseil/abseil-py.git cd abseil-py bazel test absl/...
Please refer to smoke_tests/sample_app.py as an example to get started.
See the Abseil Python Developer Guide.
The current repository includes an initial set of libraries for early adoption. More components and interoperability with Abseil C++ Common Libraries will come in future releases.
The Abseil Python library is licensed under the terms of the Apache license. See LICENSE for more information.