proud-dentist-22844
01/28/2023, 12:28 AMstevedore_extensions plugin is fairly generalizable, and could be useful for anyone that uses https://github.com/openstack/stevedore to load plugins at runtime. Stevedore uses the python entry points infrastructure to look up the available plugins.
This PR has a detailed description of the plugin. Is this something that could move into pants backends and be distributed with pants? What changes might be needed to make it more palatable?
https://github.com/StackStorm/st2/pull/5869proud-dentist-22844
01/28/2023, 12:33 AMcurved-television-6568
01/29/2023, 2:08 PMproud-dentist-22844
01/29/2023, 3:26 PMproud-dentist-22844
01/29/2023, 3:28 PMproud-dentist-22844
01/30/2023, 7:29 PMwitty-crayon-22786
01/30/2023, 7:52 PMproud-dentist-22844
01/30/2023, 8:30 PMpants...python.<goal>.<tool> , but that doesn't make much sense here because this is more about dep inference across a variety of goals.
Eventually, I imagine there will be a django plugin. I imagine this would be a sibling of that plugin. So where do these framework-specific bits go?
pants.backend.[experimental.]python.frameworks.stevedore
pants.backend.[experimental.]python.frameworks.django
or
pants.backend.[experimental.]python.stevedore
pants.backend.[experimental.]python.django
And, should I go for stevedore (mirroring the library's name) or stevedore_extensions (which hints at the nature of the backend)?proud-dentist-22844
01/30/2023, 8:31 PMdjango and stevedore go?bitter-ability-32190
01/30/2023, 8:32 PMcurved-television-6568
01/30/2023, 8:34 PMcurved-television-6568
01/30/2023, 8:35 PMpants.backend.[experimental.]python.frameworks.stevedore style.. πproud-dentist-22844
01/30/2023, 9:28 PMhappy-kitchen-89482
01/31/2023, 1:55 AMsrc/python/pants/backend/python/framework/django, and there will probably be a register.py in src/python/pants/backend/python/framework/experimental/django to signal that this is experimentalproud-dentist-22844
01/31/2023, 1:56 AMframework namespace?proud-dentist-22844
01/31/2023, 1:56 AMframeworks. I can switch to framework for my stevedore plugin.happy-kitchen-89482
01/31/2023, 2:34 AMframework yeah, could also do frameworks, I don't think I put much thought into singular vs plural. But I guess we do singular elsewhere, e.g., backend vs backends, lint vs linters etc.happy-kitchen-89482
01/31/2023, 2:34 AMproud-dentist-22844
01/31/2023, 2:35 AMhappy-kitchen-89482
01/31/2023, 2:36 AMproud-dentist-22844
01/31/2023, 2:37 AMproud-dentist-22844
01/31/2023, 2:37 AMcurved-television-6568
01/31/2023, 2:05 PMprobably be a register.py inwas this meant to beto signal that this is experimentalsrc/python/pants/backend/python/framework/experimental/django
src/python/pants/backend/experimental/python/framework/django?