modern-leather-27612
11/03/2021, 8:45 PMrequirements.txt
. For some projects or some branches, we also pin internal dependencies. With a Pants-based monorepo, it makes sense to develop and test against the union of internal libraries, i.e., the source code as is. I can see how to cut different libraries from the monorepo as well. But I don't see a good solution to distributing libraries with pinned internal dependencies. Essentially, I'm asking how can I layer a packaged and possibly pinned view on top of the all sources in a big soup view of the monorepo with Pants. Any help in resolving this last remaining issue would be fantastic.happy-kitchen-89482
11/03/2021, 9:13 PMmodern-leather-27612
11/05/2021, 9:59 PMmodern-leather-27612
11/11/2021, 4:05 PMhappy-kitchen-89482
11/12/2021, 1:10 AMhappy-kitchen-89482
11/12/2021, 1:13 AMversion
in `python_distribution_B`'s provides={}
dict, and make the wheel for A declare that version in its install_requires
happy-kitchen-89482
11/12/2021, 1:15 AMpython_distribution
declares its own distribution name and version, and when Pants builds some dist A and notices that its libraries depend on other libraries in some other dist B, it "zooms out" those deps to make A depend on B at the version B currently declares for itself.happy-kitchen-89482
11/12/2021, 1:16 AMhappy-kitchen-89482
11/12/2021, 1:17 AMhappy-kitchen-89482
11/12/2021, 1:18 AMhappy-kitchen-89482
11/12/2021, 1:18 AMhappy-kitchen-89482
11/12/2021, 1:19 AMhappy-kitchen-89482
11/12/2021, 1:22 AMinstall_requires
.happy-kitchen-89482
11/12/2021, 1:25 AMhappy-kitchen-89482
11/12/2021, 1:26 AMprovides={}
we barf: https://github.com/pantsbuild/pants/blob/372fa36efb09d7d477436dbf927edb28537bc2f5/src/python/pants/backend/python/goals/setup_py.py#L221happy-kitchen-89482
11/12/2021, 1:28 AMinstall_requires
and allow a user-supplied version of foo to override the computed version)happy-kitchen-89482
11/12/2021, 1:30 AMmodern-leather-27612
11/12/2021, 7:53 PMhappy-kitchen-89482
11/12/2021, 7:59 PMhappy-kitchen-89482
11/12/2021, 8:01 PM