Ah! Mostly. I'd seen reference to the hash # dec...
# general
e
Ah! Mostly. I'd seen reference to the hash # declarator but hadn't understood what it was. Let me try that
h
did you see the deprecation instructions with
update-build-files --fix-python-macros
? It will automate fixing most this for you, and will log what you need to manually fix
e
Well, I did see that (a while ago), and I ran it, and things broke so I reverted then and am trying to step through it now manually. Sorry for not reporting the issues I was having--I should have taken better notes.
Ah, it was this I think when I ran `--fix-python-macros`:
Copy code
MappingError: Failed to parse ./BUILD:
__call__() got an unexpected keyword argument 'name'
(three
file
targets with
name
, one
python_requirements
with
name
maybe never mind; pingponging between versions is confusing my brain
h
the deprecation is tough because being in a mixed state does not work. I recommend going back to the old macros, then following the instructions exactly and making sure it works with
./pants dependencies ::
. Land as distinct commit
lmk if you need help. It's unfortunate the deprecation had to happen - but super important to fix one of our biggest broken windows