hundreds-father-404
05/17/2022, 7:11 PMconf.py
. tailor
is going to think that should be python_sources
, along with default sources=
for python_sources
hundreds-father-404
05/17/2022, 7:12 PMtailor
so things Just Work? Particularly tricky is that pants.backend.python
isn't supposed to know about pants.backend.python.docs.sphinx
hundreds-father-404
05/17/2022, 7:16 PMbitter-ability-32190
05/17/2022, 7:18 PMcurved-television-6568
05/17/2022, 7:20 PMconf.py
, where as when it isn’t, it’ll just be a regular python_sources
hundreds-father-404
05/17/2022, 7:21 PMhundreds-father-404
05/17/2022, 7:21 PMThis goes back to my thought of the sources field having plugin-installed dependent valuesIt'd be useful, but I think would make things like our auto-generated docs complex on what the default for
python_sources
etc is
I fear a world where our online docs != the behavior in your own repocurved-television-6568
05/17/2022, 7:27 PMhundreds-father-404
05/17/2022, 7:28 PMcurved-television-6568
05/17/2022, 7:28 PMcurved-television-6568
05/17/2022, 7:28 PMweak=False
it’s not as granular… 😉zhundreds-father-404
05/17/2022, 7:29 PMweak: bool
. If weak=True
, give up if something else is trying to create it
Which avoids having to sync numbers across different backends (gives me CSS !important
vibes hehe)hundreds-father-404
05/17/2022, 7:29 PMcurved-television-6568
05/17/2022, 7:31 PMweak=False
for the same target..curved-television-6568
05/17/2022, 7:31 PMcurved-television-6568
05/17/2022, 7:32 PMhundreds-father-404
05/17/2022, 7:32 PMhundreds-father-404
05/17/2022, 7:33 PMwhat if there’s two backends that say weak=False for the same target..yeah, that's a weird one. it results in no one generating a target. But also, how realistic do we think it is that will happen?
hundreds-father-404
05/17/2022, 7:33 PMcurved-television-6568
05/17/2022, 7:33 PMprio=WEAK
prio=STRONG
prio=NAH
etc…happy-kitchen-89482
05/17/2022, 8:26 PMconf.py
to be tailored as some sphinx-related target?happy-kitchen-89482
05/17/2022, 8:28 PMpython_sources
for conf.py
because it is a python sourcehappy-kitchen-89482
05/17/2022, 8:28 PMhappy-kitchen-89482
05/17/2022, 8:28 PMpex_binary
doesn't have its own sources?hundreds-father-404
05/17/2022, 8:48 PMbitter-ability-32190
05/18/2022, 12:37 PMbitter-ability-32190
05/18/2022, 12:39 PMhundreds-father-404
05/18/2022, 12:42 PMpython_source
owns it, then we need to:
• now make sure it's in a source root
• deal with missing imports like alabaster
(at least according to https://pythonhosted.org/CodeChat/conf.py.html), triggering unowned_dependency_behavior
I literally didn't know this file existed a week ago, so very much not an expert. But fwict, we do not want python_source
to own this
Now, running Black on it would be awesome. But I think we need to rethink FieldSets to make that happen, such that we can say to run Black but not MyPy and Pylint etchundreds-father-404
05/18/2022, 12:43 PMAlso I'm really struggling to find a case where there's be multiple weak and no strong.It's all fairly contrived at this point. We've gone a year w/
tailor
and this is our first instance.
Even still there's almost always a precedent.
And if we find out we're wrong we can assign numerical priority to weak/strong for backwards compatAre you suggesting sticking w/
weak: bool
, or using numbers?bitter-ability-32190
05/18/2022, 2:02 PMhundreds-father-404
05/18/2022, 2:04 PMWEAK
, NORMAL
, STRONG
?bitter-ability-32190
05/18/2022, 2:05 PMcurved-television-6568
05/18/2022, 4:08 PMcurved-television-6568
05/18/2022, 4:09 PMbool
option either.. though)