commit | 2f5142d1f9c88e8f41bdc34f087c9051581a7b99 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Tue Nov 03 10:23:45 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 03 10:25:37 2020 -0800 |
tree | 6fc717d45d76fe0015a450ec5c92e7240e1276d7 | |
parent | 3248d1d643e67b58c48590afa4f2f7a8b4e7be5a [diff] |
Refactor validation of Python package and source names PyCommon: - Rename validateSrcs() to getPythonSources() and split validation functionality into the constructor, with a boolean flag to enable it only for code paths that already called validateSrcs(). - Make validatePackageName() private; its previous explicit call site and two implicit call sites (via initBinary()) are now covered by the constructor. - Apply source code auto-formatting, add use of String.format(). Also move hyphen behavior tests, in preparation for allowing hyphens in OSS Bazel Python rules. Work toward #9171. PiperOrigin-RevId: 340472826
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md