Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A setup_py task for the new python pipeline. (pantsbuild#4308)
Copied from the old one, with the previous special-casing of codegen removed (the new python tasks don't invoke codegen directly like the old ones did). However this task does still require some special handling of codegen: when selecting the targets to operate on we have to replace any codegen target roots with their corresponding synthetic targets, as those are the ones with the actual sources to publish. This change also copies the old task's unit tests, except the ones pertaining to codegen (which would no longer work without setting up and running codegen tasks in the tests). Instead, this change adds an integration test that ensures that we create an appropriate sdist from codegen targets, thus exercising the special handling mentioned above (and incidentally also verifying that our new pipeline does do the right thing regarding synthesizing library targets for generated code).
- Loading branch information