big-xylophone-43403
06/24/2021, 4:21 PMextras_requires
Pants correctly adds them to extras_requires
in the generated setup.py . How do I tell Pants to not add them in install_requires
?big-xylophone-43403
06/24/2021, 4:21 PMtest
goal?happy-kitchen-89482
06/24/2021, 4:30 PMextras_requires
manually in your `python_distribution`'s provides=
value?happy-kitchen-89482
06/24/2021, 4:30 PMinstall_requires
?big-xylophone-43403
06/24/2021, 4:37 PMhappy-kitchen-89482
06/24/2021, 4:38 PMpython_distribution
targets involved, one for the extra and the main one that adds the extra in its extra_requires
?big-xylophone-43403
06/24/2021, 4:44 PMextra_requires
is a mix of 3rdparty and first party packages. The first party code is in the same namespaced repoenough-analyst-54434
06/24/2021, 4:47 PMenough-analyst-54434
06/24/2021, 4:52 PMenough-analyst-54434
06/24/2021, 5:13 PMAlso, how do I make those dependencies available for my test goal?So, instead of testing the distribution's files and extras files directly, you want tests to go through the hoop of building the distribution into a wheel for example, then installing that wheel in the test sandbox?
enough-analyst-54434
06/24/2021, 5:16 PMenough-analyst-54434
06/24/2021, 5:18 PMenough-analyst-54434
06/24/2021, 5:21 PMbig-xylophone-43403
06/24/2021, 5:49 PMbig-xylophone-43403
06/24/2021, 5:50 PMhappy-kitchen-89482
06/24/2021, 6:01 PMimport
statements that reference the code then you may need to manually add a dependency in the BUILD file. But this should bypass the distribution entirely and just be a direct 1stparty library dependency.happy-kitchen-89482
06/24/2021, 6:02 PMpython_tests
target that (directly or indirectly) `import`s something from a python_library
target in the same repo then it should work already, regardless of how that python_library
target is published as a distribution.happy-kitchen-89482
06/24/2021, 6:03 PMimport
statement that allows pants to infer the dependency? if so then you just need to add it manually in the appropriate BUILD file.happy-kitchen-89482
06/24/2021, 6:04 PMextras_requires
, when you add it manually I guess you hard-code the version of the requirement?happy-kitchen-89482
06/24/2021, 6:04 PMinstall_requires
and extras_requires
if you could help us spec it out.big-xylophone-43403
06/24/2021, 6:18 PMinstall_requires
, does it have any affect on my tests.big-xylophone-43403
06/24/2021, 6:18 PMBut regarding the, when you add it manually I guess you hard-code the version of the requirement?extras_requires
big-xylophone-43403
06/24/2021, 6:19 PMpython_distribution
provideshappy-kitchen-89482
06/25/2021, 12:51 AMinstall_requires
, we'd need to figure out a solution, but it wouldn't affect tests either way.big-xylophone-43403
07/13/2021, 7:39 PMhappy-kitchen-89482
07/13/2021, 9:03 PM